WiFi Curtain
![WiFi Curtains](/proxy/?url=https://content.instructables.com/FA6/M4QG/JYMTEC71/FA6M4QGJYMTEC71.jpg&filename=WiFi Curtains)
![IMG_20190727_152217.jpg](/proxy/?url=https://content.instructables.com/F63/R445/JYMTBT05/F63R445JYMTBT05.jpg&filename=IMG_20190727_152217.jpg)
![IMG_20190727_152039.jpg](/proxy/?url=https://content.instructables.com/FOX/XVLW/JYMTBM69/FOXXVLWJYMTBM69.jpg&filename=IMG_20190727_152039.jpg)
![IMG_20190728_084647.jpg](/proxy/?url=https://content.instructables.com/FRT/I9DS/JYMTBVA5/FRTI9DSJYMTBVA5.jpg&filename=IMG_20190728_084647.jpg)
![IMG_20190728_084926.jpg](/proxy/?url=https://content.instructables.com/F7X/CBKF/JYMTBVDW/F7XCBKFJYMTBVDW.jpg&filename=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](/proxy/?url=https://content.instructables.com/FL0/LH0Y/JYMTBVTS/FL0LH0YJYMTBVTS.png&filename=breadboard prototype.png)
![IMG_20190727_151907.jpg](/proxy/?url=https://content.instructables.com/FW8/U3ZC/JYMTBM3X/FW8U3ZCJYMTBM3X.jpg&filename=IMG_20190727_151907.jpg)
![IMG_20190727_152316.jpg](/proxy/?url=https://content.instructables.com/FVK/VUQC/JYMTBT9S/FVKVUQCJYMTBT9S.jpg&filename=IMG_20190727_152316.jpg)
![IMG_20190727_152236.jpg](/proxy/?url=https://content.instructables.com/FNF/XJ59/JYMTBT3V/FNFXJ59JYMTBT3V.jpg&filename=IMG_20190727_152236.jpg)
![IMG_20190727_152250.jpg](/proxy/?url=https://content.instructables.com/FA1/6D7L/JYMTBT6E/FA16D7LJYMTBT6E.jpg&filename=IMG_20190727_152250.jpg)
![IMG_20190727_152342.jpg](/proxy/?url=https://content.instructables.com/FJ6/80D5/JYMTBTD7/FJ680D5JYMTBTD7.jpg&filename=IMG_20190727_152342.jpg)
![IMG_20190728_090239.jpg](/proxy/?url=https://content.instructables.com/FVU/A3PV/JYMTBTJA/FVUA3PVJYMTBTJA.jpg&filename=IMG_20190728_090239.jpg)
![IMG_20190727_152407.jpg](/proxy/?url=https://content.instructables.com/FUM/ROAF/JYMTBTHE/FUMROAFJYMTBTHE.jpg&filename=IMG_20190727_152407.jpg)
![IMG_20190728_092347.jpg](/proxy/?url=https://content.instructables.com/F4X/IVE8/JYMTBTSD/F4XIVE8JYMTBTSD.jpg&filename=IMG_20190728_092347.jpg)
![IMG_20190728_091647.jpg](/proxy/?url=https://content.instructables.com/FZU/BSO7/JYMTBTMN/FZUBSO7JYMTBTMN.jpg&filename=IMG_20190728_091647.jpg)
![pcb_schematic.png](/proxy/?url=https://content.instructables.com/FOP/J4BX/JYMTBVSJ/FOPJ4BXJYMTBVSJ.png&filename=pcb_schematic.png)
![pcb.png](/proxy/?url=https://content.instructables.com/F8I/7Y9D/JYMTBVR6/F8I7Y9DJYMTBVR6.png&filename=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.
Mounting
![IMG_20190728_114945.jpg](/proxy/?url=https://content.instructables.com/FYF/WIEP/JYMTE2RF/FYFWIEPJYMTE2RF.jpg&filename=IMG_20190728_114945.jpg)
![IMG_20190728_114919.jpg](/proxy/?url=https://content.instructables.com/F0N/897I/JYMTBVK7/F0N897IJYMTBVK7.jpg&filename=IMG_20190728_114919.jpg)
![IMG_20190728_112446.jpg](/proxy/?url=https://content.instructables.com/FUI/T84U/JYMTBVGD/FUIT84UJYMTBVGD.jpg&filename=IMG_20190728_112446.jpg)
![67235475_470275707135925_1849279155196133376_n.jpg](/proxy/?url=https://content.instructables.com/FA7/88Q1/JYMTBV0X/FA788Q1JYMTBV0X.jpg&filename=67235475_470275707135925_1849279155196133376_n.jpg)
![IMG_20190727_151951.jpg](/proxy/?url=https://content.instructables.com/FJT/7OGC/JYMTBUVF/FJT7OGCJYMTBUVF.jpg&filename=IMG_20190727_151951.jpg)
![IMG_20190727_151958.jpg](/proxy/?url=https://content.instructables.com/FO3/0H4Z/JYMTBUWP/FO30H4ZJYMTBUWP.jpg&filename=IMG_20190727_151958.jpg)
![IMG_20190728_084333.jpg](/proxy/?url=https://content.instructables.com/FHD/7PLH/JYMTBU8B/FHD7PLHJYMTBU8B.jpg&filename=IMG_20190728_084333.jpg)
![IMG_20190728_084423.jpg](/proxy/?url=https://content.instructables.com/FPJ/JI2P/JYMTBUQW/FPJJI2PJYMTBUQW.jpg&filename=IMG_20190728_084423.jpg)
![IMG_20190728_084447.jpg](/proxy/?url=https://content.instructables.com/F4U/QNYF/JYMTBUS5/F4UQNYFJYMTBUS5.jpg&filename=IMG_20190728_084447.jpg)
![IMG_20190728_084355.jpg](/proxy/?url=https://content.instructables.com/FR8/BK67/JYMTBUCK/FR8BK67JYMTBUCK.jpg&filename=IMG_20190728_084355.jpg)
![IMG_20190728_084403.jpg](/proxy/?url=https://content.instructables.com/FG7/8428/JYMTBUII/FG78428JYMTBUII.jpg&filename=IMG_20190728_084403.jpg)
![IMG_20190727_152419.jpg](/proxy/?url=https://content.instructables.com/FK9/6GHA/JYMTBV6D/FK96GHAJYMTBV6D.jpg&filename=IMG_20190727_152419.jpg)
![IMG_20190727_152445.jpg](/proxy/?url=https://content.instructables.com/FMJ/IZLM/JYMTBV7N/FMJIZLMJYMTBV7N.jpg&filename=IMG_20190727_152445.jpg)
![IMG_20190728_100851.jpg](/proxy/?url=https://content.instructables.com/FJ0/7BRN/JYMTBTTO/FJ07BRNJYMTBTTO.jpg&filename=IMG_20190728_100851.jpg)
![IMG_20190728_101138.jpg](/proxy/?url=https://content.instructables.com/FMW/FFQ3/JYMTBTZW/FMWFFQ3JYMTBTZW.jpg&filename=IMG_20190728_101138.jpg)
![IMG_20190728_112449.jpg](/proxy/?url=https://content.instructables.com/FPL/A2U4/JYMTBVHQ/FPLA2U4JYMTBVHQ.jpg&filename=IMG_20190728_112449.jpg)
![67669492_476790096508845_6634685455306588160_n.jpg](/proxy/?url=https://content.instructables.com/FJH/R56W/JYMTBV3W/FJHR56WJYMTBV3W.jpg&filename=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](/proxy/?url=https://content.instructables.com/FI8/DUZ2/JYMTE559/FI8DUZ2JYMTE559.png&filename=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.