WiFi Curtain

by Barteky in Circuits > Remote Control

2128 Views, 10 Favorites, 0 Comments

WiFi Curtain

WiFi Curtains
IMG_20190727_152217.jpg
IMG_20190727_152039.jpg
IMG_20190728_084647.jpg
IMG_20190728_084926.jpg

In this tutorial i will show you how to make WiFi controlled courtain. You can control curtains by using app on Android phone or buttons connected to your microcontroler. App source code you can find on my GITHUB. If you follow my instructions it easy to make and it should cost no more than 30 $.

Downloads

Supplies

It's easier if you have 3D printer but not nessesary if you figure it out for your own how to mount everything


Part list:

-Nodemcu - http://pl.aliexpress.com/item/32266751149.html?sp...

- Stepstick ( I use A4988)

-LM2596 - http://pl.aliexpress.com/item/32266751149.html?sp...

- 2 monostable buttons http://pl.aliexpress.com/item/32266751149.html?sp...

-DC jack http://pl.aliexpress.com/item/32266751149.html?sp...

- 2 limit switch http://pl.aliexpress.com/item/32266751149.html?sp...

- Stepper motor Nema 17 42 x 42 x 34 eg. http://pl.aliexpress.com/item/32266751149.html?sp...

- GT2 Belt 6mm (You need to measure your curtain rod. Buy 2 x length of the curtain rod + 1 meter for losses) http://pl.aliexpress.com/item/32266751149.html?sp...

- Pulley with bearing i use 20 teeth 5 mm x 7mm http://pl.aliexpress.com/item/32266751149.html?sp...

- Some jumper wires

- Rope (about half of length of your curtain rod)

-12V power supply (be sure it have enough power for your stepper motor) http://pl.aliexpress.com/item/32266751149.html?sp...

- 2 x 8 2.54 male pin http://pl.aliexpress.com/item/32266751149.html?sp...

- 3 x double 5mm screw pins http://pl.aliexpress.com/item/32266751149.html?sp...

-PCB with my scheme.

If you have 3D printer 3D printed parts:

- Motor holder - wall and Belt tensioner - wall or Motor holder - curtain rod and Belt tensioner - curtain rod (if it fits to your curtain rod)

- Belt tensioner - bearing

- case

- case cover

You can download STL-s from here or my Thingiverse

profile

Electronics

breadboard prototype.png
IMG_20190727_151907.jpg
IMG_20190727_152316.jpg
IMG_20190727_152236.jpg
IMG_20190727_152250.jpg
IMG_20190727_152342.jpg
IMG_20190728_090239.jpg
IMG_20190727_152407.jpg
IMG_20190728_092347.jpg
IMG_20190728_091647.jpg
pcb_schematic.png
pcb.png

1.Make PCB from scheme (You can download Eagle project from here)

2.If you have PCB you need to solder 5mm screw pins and 2.54 pins to it like on photo.

3.You need to solder cables to buttons, limit switches (probably you will need long cables) and LM2596. Pay attention that you need connect 12V (for stepper motor) and 3.3V (for Nodemcu) to your PCB.

4. Now connect Nodemcu to your computer, edit my sketch (change your WiFi SSID and PASSWORD) and upload it.

5. If you have everything prepeared you can connect everything like it on fritzing scheme.

6. Now you can push button and if motor starts to spin you can go to the next step.

Downloads

Mounting

IMG_20190728_114945.jpg
IMG_20190728_114919.jpg
IMG_20190728_112446.jpg
67235475_470275707135925_1849279155196133376_n.jpg
IMG_20190727_151951.jpg
IMG_20190727_151958.jpg
IMG_20190728_084333.jpg
IMG_20190728_084423.jpg
IMG_20190728_084447.jpg
IMG_20190728_084355.jpg
IMG_20190728_084403.jpg
IMG_20190727_152419.jpg
IMG_20190727_152445.jpg
IMG_20190728_100851.jpg
IMG_20190728_101138.jpg
IMG_20190728_112449.jpg
67669492_476790096508845_6634685455306588160_n.jpg

1. Place every electronic parts in case and screw case cover with 3mm screw.

2. Place motor holder on right side of the window and belt tensioner on left side of the window.

3. Mount the belt and tie curtains to belt like it on photo.( i use zip ties).

4. Tie rope to limit switch and end of right curtain. Rope should pull limit switch when curtains is closed.

Android APP

67392548_2655457187821073_7861039226953924608_n.png

You can download app from here or go to my GITHUB where you can find app source code. In app you need to find your Nodemcu IP adress (you can check it in your router settings). Then you click CONNECT (if your IP adress is correct you should see green text "CONNECTED") Click "OPEN" to open curtains, click "CLOSE" to close curtains, click and hold "HOLD TO OPEN" your curtains will open as long as you hold this button, click and hold "HOLD TO CLOSE" for your curtains close as long as you hold this button.

Remember your phone need to be connect to the same WiFi as Nodemcu. You can find here all files to download. If you have any troubles or questions fell free to ask.

Downloads