All Projects → psled → Esp8266 Window

psled / Esp8266 Window

Licence: isc
ESP8266-based motorized window shade Arduino sketch

Labels

Projects that are alternatives of or similar to Esp8266 Window

Adc test
Tutorial: Make the Arduino Analog Readings more precise
Stars: ✭ 25 (+212.5%)
Mutual labels:  arduino
Thermal printer
Demo Code for the Thermal Printer available from SparkFun Electronics
Stars: ✭ 26 (+225%)
Mutual labels:  arduino
Purr
hackathon project, anxiety bracelet
Stars: ✭ 7 (-12.5%)
Mutual labels:  arduino
Pocketetris
Compact Tetris clone
Stars: ✭ 26 (+225%)
Mutual labels:  arduino
Irelectra
Electra A/C IR Encoder for IRremote
Stars: ✭ 26 (+225%)
Mutual labels:  arduino
Panstamp sketches
Basic Arduino sketches fro panStamp
Stars: ✭ 7 (-12.5%)
Mutual labels:  arduino
Rubber Ducky Library For Arduino
An Arduino library that allows you to use a cheap Arduino (Leonardo) as a Rubber Ducky
Stars: ✭ 25 (+212.5%)
Mutual labels:  arduino
Solarmonk
energy powered by the sun ☀️
Stars: ✭ 8 (+0%)
Mutual labels:  arduino
Ws2811 Spectrum Analyzer
"Waterfall" spectrum analyzer using WS2811 string RGB LEDs. Pictures/videos and info can be found at www.12vtronix.com
Stars: ✭ 26 (+225%)
Mutual labels:  arduino
Backtothefuture Clock
All code and documents releated to my BackToTheFuture clock: http://hackaday.io/project/709-Back-To-The-Future-Time-Circuit-Clock
Stars: ✭ 7 (-12.5%)
Mutual labels:  arduino
Si5351mcu
Arduino Si5351 library tuned for size and click free.
Stars: ✭ 26 (+225%)
Mutual labels:  arduino
Iot cloudcloud
Stars: ✭ 26 (+225%)
Mutual labels:  arduino
Wi Pwn
ESP8266 Deauther ​with a material design WebUI 📶
Stars: ✭ 839 (+10387.5%)
Mutual labels:  arduino
Music Reactive Ws2812b Arduino
LED STRIP WS2812B reacting to music connected through your AUX 3.5mm Jack as seen on cine-light youtube
Stars: ✭ 26 (+225%)
Mutual labels:  arduino
Flora
FLORA and Pixel class examples
Stars: ✭ 7 (-12.5%)
Mutual labels:  arduino
Uduino
Simple and easy connection between Arduino and Unity
Stars: ✭ 25 (+212.5%)
Mutual labels:  arduino
Oil Pumpjack
Oil Pumpjack: open source materials to create your own oil pumpjack managed by an Arduino
Stars: ✭ 27 (+237.5%)
Mutual labels:  arduino
Wordclock
Arduino nano code for a WS2812B/Neopixel Wordclock
Stars: ✭ 8 (+0%)
Mutual labels:  arduino
Twiliopoweroutlet
Power Outlet Controlled by Twilio, Pusher, and Arduino
Stars: ✭ 7 (-12.5%)
Mutual labels:  arduino
Vexmotor
vexMotor Arduino library. This library simplifies the interface between Arduino and the VEX motors through the VEX Motor Controller 29.
Stars: ✭ 7 (-12.5%)
Mutual labels:  arduino

ESP8266 Window

An Arduino code for ESP8266 module which trasform your standard window shade into wireless motorized one.

Why

Because I always wanted to have a motorized window shade. However, they used to be quite expensive for my budget so I decided to build my own. Plus, I really wanted to find a practical application for an ESP8266 module which was lying around for some time. It's nice to see what this tiny wireless module can actually do.

Requirements

  • ESP8266 module (obviously, I used first generation ESP-01)
  • Continuous rotation servo (I used PowerHD AR-3603HB)
  • Two limit switches with rollers (for detecting open / close position)

Except above main components we will need as usual: a breadboard, couple wires and resistors and some power supply (keep in mind that ESP8266 works on 3.3V and my servo for example works on 5V).

Last but not least, we need also a spare time, cause even if software and electronic parts are pretty straightforward, a physical mounting a servo on the shade could be quite tricky actually. Maybe 3D printer could help here.

Installation

First, download and install ESP8266 Arduino if you haven't done this before.

Then connect everything electronically and prepare the valid mounting for both servo and limit switches.

In my servo I have replaced the potentiometer with two 2k Ohm resistors and in this particular unit and this configuration the middle point seems to be around 85 degrees (not 90 like it ideally should be). Depending on servo you use either calibrate the pot accordingly or change above values in code.

Finally, upload code from this repository to your ESP8266 module.

You could probably start using your brand new motorized window shade by now although controlling it directly through HTTP requests could be quirky. Because of that you can check out the Homebridge plugin. It was created to allows you to integrate your ESP8266 module with Apple HomeKit platform and Siri.

Usage

  • Current position
GET /window/currentPosition HTTP/1.1
  • Position state
GET /window/positionState HTTP/1.1
  • Target position
POST /window/targetPosition HTTP/1.1
Content-Type: application/json

{
  "value": 78
}

TODO

  • Fix calculating open / close percentage. At the moment we are using a single timer for both opening / closing shade but this speed can vary. Moreover, that kind of method seems to be quite unreliable in long-term so finding something better would be appreciated.

License

ISC

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].