DIY - Alexa Curtain Control System - (3D Printable, Echo, Adafruit Feather Huzzah ESP8266)
HTML-код
- Опубликовано: 26 сен 2024
- In this project, we show you how to 3D print and assemble your very own Alexa connected curtain control system. It's low cost and easy to build.
👇 More info below 👇
It's based on an ESP8266 Adafruit Feather Huzzah, which connects to Alexa using its onboard wifi chip. If you're into home automation its an ideal addition to your gadgetry.
Support future projects, see DIY Machines' Amazon Wish List: www.amazon.co....
==========
List of items used in this project and where to find them:
■ Stepper Motor: geni.us/Stepper...
■ A4988 Stepper Motor Driver: geni.us/a4988
■ Adafruit Feather Huzzah ESP8266: geni.us/Feather...
■ Mini Breadboard: geni.us/MiniBre...
■ Breadboard Jumper Cables: geni.us/JumperW...
■ Braided fishing wire: geni.us/Braided...
■ USB A to USB Micro B Cable: geni.us/USBAtoUSBB
■ Capacitor: geni.us/Capacitor
■ Switched Battery Holder: geni.us/8aaBatt...
■ Nuts and Bolts: geni.us/NutsAnd...
■ 3D Printer Filament: geni.us/3DJake
(As an Amazon Associate I earn from qualifying purchases. This helps to pay for the next project.)
I use a Prusa MK3S for my projects and highly recommend both it and the Prusa Mini. If I inspired you to take up 3D printing please consider purchasing a printer via this link: shop.prusa3d.co...
Prusa support my channel when you use that link at no cost to yourself. :)
■ Battery powered glue gun: geni.us/BoschBa...
==========
The code can be downloaded from here: github.com/DIY...
3D printed parts can be downloaded from here: www.thingivers...
Discord server for this project: / discord
==========
SAY THANKS:
Buy me a coffee to say thanks: ko-fi.com/diym...
Support us on Patreon: / diymachines
SUBSCRIBE:
■ / @diymachines
DISCORD server: / discord
INSTAGRAM: www.instagram....
FACEBOOK: / diymachines
==========
List of camera and lighting equipment I use:
Sony A7 III: geni.us/Sony-A...
Tamron 28-75mm F2.8 RXD A036SF Lens for Sony-FE : geni.us/Tamron...
Aputure Amaran HR672C: geni.us/Aputur...
Aputure MC: geni.us/FAPGL
RØDE VideoMic Pro+: geni.us/RodeVi...
Blue Snowball iCE: geni.us/BlueSn...
Philips Hue Lightstrip Plus: geni.us/Philip...
Disclaimer:
This video is shared for demonstration purposes only.
By far the most elegant DIY automated curtain design. Congrats!
Thanks. :)
I was just talking with my daughter about automating our living room curtains. Thank you very much for this.
I hope you enjoyed the project, let me know what you think in the comments below. Please like it (if you did) and share with anyone who might want to build one of their own. Thanks for watching. Lewis - DIY Machines.
just a question.
i want to make something similar but am going to use a wemos D1 arduino version, with a reprap shield,
how do i program it so it will run for X minutes, and stop when time is over or endstop is reached?
Thanks
I Believe I have an idea to make this commercial maybe a kickstarter project going to see if I can do a rough project with your example.
Thanks for a great video and inspiration. Just wondering can the same be done with andriod and Google devices? Also is it possible to buy the 3d printed molds as a kit? For those who don't have a 3d printer :'(
@@arfan521 search for 3D printing services,I sent them to print it for me .
Thank you for this tutorial, I have implemented this on an ikea rail curtain with a worm-gear motor instead of a stepper motor with reed switches as end stops.
The only unfortunate thing is I used mono fishing line instead of the braided line as recommended in this video description. This caused stretching of one line as the motor is pulling the curtain, resulting in one taut, and one slack line. Due to this, the slack line gets reeled into the wrong slot by chance, causing the whole thing to fail.
In conclusion, use a zero stretch braided line as mentioned in the video description. Don't go the cheap route and get the mono fishing line as it stretches a lot.
Truly genius Idea for rod curtains. This is exactly what I needed as I was brain storming ways to push/pull two curtains using single motor.
Thank you 😊
I am a newbie to alexa and trying to make one automatic curtains like this. I am using rod curtains too. Can we use it as roll up and roll down using single motor instead of pushing and pulling with all those threads nonsense.? please help in making this. I dont know the circuit
You sound like such a polite gentleman. Thanks a lot for this!! Wish you all the success.
Thank you. :)
As for the wifi issue you don't need to keep connection alive the whole time the motor spins, you can do it in between. Once the command has been received, let the motor open/close the curtain fully, then re-check wifi connectivity.
Very nice project well done !
Hello, have you any idea exactly how I could do this?
I noticed a couple people saying that their capacitors exploded when they were trying this out.
If your capacitor explodes, here's the three most likely reasons and how to fix them:
1. Your capacitor is plugged in the wrong way. Make sure that the negative terminal (the shorter leg) is in the same row as ground.
2. There is too much voltage running through the capacitor. I'm not an electrical engineer, but I used a 50v capacitor and it worked fine. Since it's running off a 12v battery pack, I suspect you could also use a 25v or 35v capacitor without any issues.
3. Your motor driver is overheating and heating up the capacitor. If your motor driver came with a heat sink, you can stick it straight to the top of the board, and it should help cool it down.
Thank you for sharing some advice. It's appreciated.
@@DIYMachines No problem! Thanks for the awesome video! I really enjoyed the build
Awesome! The whole video is great, but the line thing in the middle of the video for opening both curtains was worth the like!
If you use a routine within the Alexa app, you'll be able to say "Alexa, open curtain" and "Alexa, close curtain".
Wow! Your channel deserves a lot more attention!
Suggestion: I would have loved it if there was an animation about the way you tied the threads. It was a lil hard to get that logic right the first time..
Anyway, wonderful! Thanks.
Thank you Tejas. :) Yes an animation would have made it much more easier to follow. It was tricky to explain.
This is definitively the best tutorial on DIY automated curtains on RUclips! I have done a lot of search on the topic. Thanks again for the great video. I am still waiting for the 3D printed lawn mower. :)
Hello, thanks. :) I'm still working on its design. I want to make it as good a value and simple as possible.
Just a suggestion, define a variable near the top of your code for the travel time setting from line 91 and use the variable on line 91. Also do the same for the switch name (line 60), the SSID and Password. In essence, you will be defining a config block that will allow the user to be able to make all the definitions necessary and have it at the top of the code so they don't have to go digging around trying to find things.
Very good suggestion Donny. I will do that on my next project. It would make it much easy for the user and for me to explain in the video. I won't amend this one as people will still try to follow the instructions in the video. Thanks.
Great instructional video mate. This is the way instructional videos should be done. Cheers.
Thanks 👍
Thank you I've been looking for smart curtains I won't have to replace my rod for this is perfect, your instructions are clear and easy to follow. Great tutorial
Thanks Isabelle. :)
Stunning quality! Really nice explination! Liked and subscribed in the hope the RUclips algorithm's will promote your channel a bit more :)
Thanks. :)
nice video
I was wondering how can I add support for Google Assistant and/or Apple Home..
thanks
23:33 I'm no expert on Arduino but.. it sounds like the stepper motor is stalling out. That tiny driver is very current limited. As far as blaming it on your band width I can't see that to be the case. The wifi is sending a simple on or off command, once the microcontroller receives that it executes the code that's stored on the microcontroller. Put in a stepper driver that can handle more current and I bet you your "bandwidth" problem goes away.
you have genuine ideas in general as well as at the 3d printing design 👌🙂
Thanks. :)
LOL. when you were saying alexa commands, my alexa in the kitchen started playing music and the one in living room said she couldnt find device called curtains!!!!! I so want to make this now that i have added everything to a new list in my 'long river' account ;-) BTW, liked & subbed :)
Yes, I should blank out the trigger words like 'Alexa' next time I publish a video using the voice assistants.
sir your tutorial is really good,,each step has been described well..awesome idea
Very inspirational. I'd be wary of automating it for when the house is not occupied as there is no fail safe mode (limit switches, over current detection, motor temp cutout etc)
And very nice use of a custom printed enclosure to protect and hide the gubbins behind the fabric.
However it fails on the WAF, there is no way I could use such noisy motors in my house. I think it may be caused by the cheap and cheerful motor drives, maybe a Trinamic based drive would quieten things down.
I am too lazy 😔😔 so I thought I will make my room automated 🤭. But after watching this video 😂 gezzz I don't want to do it anymore.
This is fantastic!! Thank you for such wonderful clear videos! one suggestion I would love is if you could design an automated hydroponics garden with a water level sensor ;) thank you!
Awesome and informative tutorial! I'll be trying this soon. Thank you so much!
Thanks. :)
Hey did you make it ? Can I use a generic esp8266
?
14:20, you mislead because if you bring the string from over the center hanger and then tie the left curtain it will obviously pull the curtain towards the right side.
How do you cater for when something goes wrong, e.g. the curtain gets stuck before it reaches the open/closed position? Especially when adding limit switches, you don't want that motor running all the time when you're away on holiday. Thinking in terms of adding overcurrent detection, but is that not a build-in feature somewhere already?
Thanks for wonderful vedio...you are clearly explained about this vedio... Very useful for my project
Brilliant! We really enjoyed watching this :)
Thanks Mr Shepherd. :)
How will it sense, the curtain is closed or open? What will happen if we command open curtain when it is already open
I just ended Mine yesterday, My curtains and Alexa were opening and closing while watching the video over and over again to spot details that I missed since at that point it had the original voice command, the length and running time fits Ok with my window size, need to replace the phone charger I used to power it has too low voltage and mha so the nema has more torque, while that, used oil to smooth where the curtains got stuck because of friction, I have wood rings so I passed the stings along the center of the whole setup and made the strings go in a straight line, at the ends I used a piece of curved straw to ease friction and maintain in place the string ,My setup was about 26-28 Us
Yes, maybe next time I make a video which includes Alexa commands I'll beep out the word Alexa in the video so as not to create havoc with peoples devices. :)
Hi there is no manual operations? if not you are relaying on alexa 100%?
Only thing I'd like to see different is using MQTT to control it via Home Assistant. Not quiet something I can bring about myself. That said, the hardware implementation is great and an easy to understand tutorial.
That would be cool, likewise that's not something I have the knowledge to do - though I think other have added it themselves. Glad you like the hardware.
If I want to change tha batteries for a power adapter. What should i search for? volts and amperes?
Hello, did you ever determine a way to eliminate the 'pause' from the spinning of the motor? I've modified your design slightly, but the pause could cause damage, as it is not predictable!
Thanks.
How can we use Nodemcu instead of this... If so what pins to be used..
Thanks in advance
I love your projects. So clever and useful. It was funny though when you blurred out your SSID but then later the code comment had the SSID! :D
Oops, well spotted.
Very well done..thank you
Tried to find the product but he built this himself
Thanks for the great project. I'll attempt doing the same thing using z wave switch.
Do i need to have a computer always conected to the ESP? if positive, what can i do to get free from it? i think this should be as clean as possible and almost imperceptible to see something wired to the dispositive. In the other hand, congrats and thanks for your job, its quite impressive! you deserve a lot more subscribers, please dont stop making content like this.
Hi Lukas, thanks for the compliment. You do not need to leave a computer plugged into the ESP. In this project, once completed, the ESP is the computer.
if the battery pack is used directly to the driver to power the nema17.. then the usb to esp needs to be in at all times right?
Otherwiae what powers the esp?
Will this system only work if you have a centre bracket? My rod is only supported at the two ends :(
What code would I need to add a manual push button as well?
Very nice project. What happend is for some reason we lose position somewhere in the midle? Then is there no procedure how to align system again
Thank you. If it loses position in the middle we are ok. The next time the curtain tries to move and it gets to the end of its run the stepper motor will just 'slip' a few turns. It's noisy but OK. After this everything should be back to normal.
Hi, It´s amazing proyect!!!, I have a question, if i wish to add two push buttons to open and close curtains without internet, how do you do it?, Thanks
Hi, I have followed your tutorial but Alexa is unable to discover the device, do you have an idea of what I could try?
I'm looking to create my own system like yours, I have bay windows which use a curtain track rather than a pole. I'm going to see if this is suitable (need to figure out how much it weighs in total), or if not, something like a wall mounted box that will simply pull the blinds open with a time based condition.
Would an esp32 work better than esp8266 for retaining wifi connection while driving the curtain? It has more processing power
After 5 years, wondering how you have done this self made design and 3D printing 5 years ago.😮
I have a question now, not sure you will be looking in this comment. How are strings/threads connected at the end of the screen fixtures? Are there any pulleys or gear that you route them through? If we put them directly on the curtain brackets they may be cut after few operations, damage the area it’s in contact with ?
I like it
Can we use Nodemcu insted of Feather Huzzah and what are the pins?
Thnk you ✌
yes, google nodemcu pinout and feather huzzah pinout
put both pictures side by side and compare the numbers
if any are different change them in the code or wiring
as long as both microcontrollers are esp8266 based, that's all you should have to change
if you want to use an esp32-based MCU, you may have to change a couple of libraries but I haven't started this project yet so I will let you know
I'll be using an ESP32 devkit
I wish id found this before i started to automate my curtains! im almost finished the project but might mod it to include some of your ideas, im curious to know how long your batteries lasted.
Thanks Mark, the batteries lasted at least three weeks (I had to scavenge its parts for another project). Some other have modified the project to run entirely without batteries which could be an option.
Doesn’t need a pulley where the braid goes around the end poles?
I too have same doubts year later while I am watching this video. May be sewing machine’s bobbin can do the trick but need some kind of 3D printed mount to keep the bobbin in the end poles.
You are genius!
i bet you could make this a lot smaller with using a custom pcb or these hole pcbs
I searched for some items on aliexpress, but I couldn't find any similar items. Can you help me with which item to buy? I'm from Brazil
Bro u are doing great.keep it up
Brilliant
Thank you. :)
Great project, i'm going to try this as soon as my 3d printer is delivered! Can this automation done via MQTT? I use hassio as my main automation hub and would love to have it integrated with it!
Yes but you need to alter the software to include response to mqtt. The PubSub client is good for that. As you use hassio intake it you already have an mqtt broker
i was wounding how much torque i would need for the curtains. thanks
it is possible to use with Google Home / nest devices?
I'd assume so but the code might need to be significantly different.
It is possible, with IFTTT.
Hi, I found the spindle part file on thingsiverse a bit different to the vid, I printed it too and the rod on top is a bit shorter on thingsiverse(missing a level). Can you please help solve the issue?
u r actually great
Thanks!
Having problems connecting to alexa...any1 have a solution...its after uploading the code...it uploads and nothing
Same here. Did you end up finding a solution. I'm looking through the comments to see if anyone found anything
For the capacitor should it be 25 volts or 16 volts?
I think add a little more edit and u deserve to hv a million subscribers sir
Do you have to keep a computer connected to it? I have alot of curtains in my house and only 1 laptop 😅
Hi! Thank you for your projects! I have a slightly different board (NodeMCU 8266). Can I use the same code with a different board as long as I switch to the correct board in Arduino IDE?
Does it have to stay connected to laptop when we want to use it ?
Hi, great video! Anyway to have this put the curtain in 3 positions? Open, Closed and Cleaning for instance? Is it due to the the restrictions of it emulating the Wemo plug?
It's a wonderful project, it works for me. But i don't know why the system not validate the actual status, i can to say to Alexa "Open the curtain" two or three times and the program not check if the curtain was opened, there is a bug....
Good job! But why you use а4988? maybe better use noiseless driver?
Do you need to keep the PC hooked up to the Feather Huzzah?
I would like to say I have this running on my bench. I have not hooked it up to any curtains yet. I have to say this is awesome!
My only problem is that you could say "turn off" or "turn on" multiple times in a row and cause all kinds of havoc with the curtains and pulling mechanics. I am thinking of adding some kind of limit switches but I am no coder.
Hi S Griffith. You don’t need to keep it hooked up to your PC after you have uploaded the program. Limit switches would be a good idea. You would just need to change the section of the code that controls how many times the motor turns forwards or backwards to go until it detected a contact at one of the limit switches. I don’t have the time at the moment but plenty of people have made some excellent suggestions for improvements so I hope to do a V2 next year.
@@DIYMachines I am looking forward to checking out your V2.
I took your electronics design and combined it with another persons mechanical design on thingsverse and came up with something. ruclips.net/video/7RhAGZRs8Xc/видео.html I am still a little nervous about giving it duplicate commands and the motor going the same direction twice. I tried pulling a motor wire to simulate a electrical stop but the motor just goes crazy. Still....cant wait for V2! :)
@@DIYMachines Could you point me in the right direction as to what I need to change to get Alexa to respond to the commands correctly? Is that what they are referring to the callback function?
Nicly done cheers. I'd set up a routine so u could say alexa close the curtains. instead of turn curtains off.
Hello, thank you for providing this tutorial. This is my first time using Arduino or doing this kind of project. I figured out that I had to specify the board to be the Adafruit Huzzah board in the Arduino IDE, however I am still failing to upload the code. I keep getting this error message: Arduino: 1.8.8 (Windows 10), Board: "Adafruit Feather HUZZAH ESP8266, 80 MHz, Flash, Enabled, 4M (no SPIFFS), v2 Lower Memory, Disabled, None, Only Sketch, 115200"
Sketch uses 350728 bytes (33%) of program storage space. Maximum is 1044464 bytes.
Global variables use 40684 bytes (49%) of dynamic memory, leaving 41236 bytes for local variables. Maximum is 81920 bytes.
warning: espcomm_sync failed
error: espcomm_open failed
error: espcomm_upload_mem failed
error: espcomm_upload_mem failed
This report would have more information with
"Show verbose output during compilation"
option enabled in File -> Preferences.
I would appreciate any and all help.
se puede hacer esto con Google Home??
Me gustó mucho tu video!!!
ok. i did it...alexa found new device, but it does not working alexa says all the time device is unresponsive
I'm looking at getting this printed by a 3rd party, are the dimensions on the file in mm? And not sure what infill percentage to use
32 dislikes are by mistake -- touch screens
:) Thanks.
Is it possible to set this up using TMC stepper drivers instead of the A4988 and a
ESP8266 ESP-01S? I have a lot of the TMC2130 & TMC2208 & TMC2209 and
ESP8266 ESP-01S ESP01S from past 3D printer builds.
You totally could use TMC drivers, and probably should. All my newer projects used the TMC drivers. I think they are worth the additional cost.
@@DIYMachines thank you. Do I need to change anything in the code?
I am a beginner and will like to know if i can use an Ardruino Uno together with a NodMCU ESP8266....If yes..can you send me the code or assist in connecting the devices?
Thanks
me too
The fishing wire part its hard to see and understand.. a schematic would make a very complete video..
it is not completly clear on the video hor the capacitor should be connected, doesnt show exactly how it is, from this point of view i see the negative leg is connected to the 12V possitive when you are connecting the batteries, so thats why i dont understand, please help me clarify this, I clearly see the negative leg being connected with the possitive on 5:58
I know this is old post but for anyone looking for diagram check the thingiverse link, scroll to your write side thumbnails. He has put the connections with necessary colored lines and components mentioned.
exit status 1
ESP8266WiFi.h: No such file or directory and so on... downloaded Arduino ide and your codes. but keep getting all the issues with include
#include
#include
#include
Do you know how to fix it?
, this is lovely.... but I still may end up buying ready stuff... :-)
Innovative idea. 😉
Hi, i have one more question: can the esp get strom by the usb cabel too? Ore is this just for data transvering?
I have trouble finding the device in the alexa app. Do I need to linnk Wemo as a skill?
No. I use this same method to control some relays.
Is it a bug?
Alexa says "decking curtains not responding," but performs the orders.
If I say "Alexa decking curtains on" or off.
Thank you
Hi, yes it is a bug. I tried to work it out but could not. I'm assuming that the curtain opener should send some sort of response back to Alexa to confirm that it has successfully completed the action Alexa asked us to do..
@@DIYMachines
OK. The bug is not significant .. It works fine. thank you
Reconfigure all setup through IFTTT much better command recognizing
@@nitin9411166 thank you
Same issue, How to Solve it???
Hey man! I can’t wait to give this a go. I’m just thinking, is there any way to connect it to a 12 V power supply/outlet? That way there’d be no need to go through batteries.
yup, use a cheap buck converter. Attach it to your supply but not the board until you meter out the correct voltage and your done.
Hey, can you post the part number of the stepper motor? I'm having trouble to find it :)
my esp 8266 is not having any "14" named option.. it says d1,d2 and so on till d8.. what shall i do??
switch.h - no such file or directory, going to library manager and installing 'switch' library isnt an help either.
When i include library's I usually add a remark with the version number and author name after it, solves these kinds of things when things dont work later
If i want to use google, what can i do to change the alexa code?
I loved this project. Well explained. Thanks a lot. I have a couple of questions/suggestions: I see you used a 100 microfarad 50v capacitor. Can I use a 100 microfarad 35v capacitor instead? Will the voltage matter in this project? Also in some other videos if you can explain how the voltage on a capacitor matters.
Yes, 35V is plenty good. As long as the cap rating exceeds the voltage it's seeing (12v in this case) , you are GTG.
This isn't working... The device isn't detected by alexa... Is there any new method?
Would it be possible to power the stepper motor with a 12v power adapter? You'll have to have a cable running to the outlets for the chips anyway, and then you won't have to change the batteries every once in a while.
I'm going to try this when the parts I ordered get in from AliExpress. I'm going to try with a 5V 2A USB brick first because from what I'm reading input voltage isn't as important for stepper motors as current, and the rated current for the one he lists is 2A
@@bertrum2k did you get this working with a USB brick?
@@bertrum2k Make sure you meet the stepper motor's minimum voltage spec. The one I got needs at least 8V so I'm using a 12v adapter.
Hey DIY Machine, one question: The Little platin, the ESP8267 is very expencif for me so, can i use a same model, but another one? So if you tipp in Amazon the name in there are some for 10-15 dollar. Can i use them too? Sorry for my bad Englisch, im german 😀. ?
Would this step motor work for a vertical curtain?
because it tells me "the device is not responding" .... it works though
Where do I find Adafruit Feather Huzzah ESP826?