{"id":399,"date":"2018-08-08T23:20:14","date_gmt":"2018-08-09T03:20:14","guid":{"rendered":"http:\/\/www.thesmarthomehookup.com\/test_install\/?p=399"},"modified":"2023-04-24T15:47:01","modified_gmt":"2023-04-24T19:47:01","slug":"diy-motorized-roller-shades-for-your-smart-home-with-wifi-mqtt-and-voice-control","status":"publish","type":"post","link":"http:\/\/www.thesmarthomehookup.com\/test_install\/diy-motorized-roller-shades-for-your-smart-home-with-wifi-mqtt-and-voice-control\/","title":{"rendered":"DIY Motorized Roller Shades for your smart home with WiFi, MQTT, and Voice Control"},"content":{"rendered":"<p><iframe width=\"560\" height=\"315\" src=\"https:\/\/www.youtube.com\/embed\/ocOO-8X_-Rk\" frameborder=\"0\" allow=\"autoplay; encrypted-media\" allowfullscreen=\"\"><\/iframe><\/p>\n<h3><strong>Smart Shades<\/strong><\/h3>\n<p>\u201cAlexa, turn off the chair shade\u201d<\/p>\n<p>Today on the hookup we\u2019re going to make a motorized smart shade that can be controlled with amazon echo and your MQTT smart home controller for around $125.<\/p>\n<p>Lets start out by taking a look at each of the products we\u2019re going to use for this project.<\/p>\n<p>I used this shade from amazon.com, it\u2019s available in 4 by 6, 6 by 6, 8 by 6, and 10 by 6.&nbsp; I specifically used the 6 by 6 version, but my setup would work fine for the 4 by 6 and the 8 by 6 also.&nbsp; The 10 by 6 version might be a bit much for a single motor to handle, so I\u2019d steer clear of that.<\/p>\n<p><a href=\"http:\/\/www.thesmarthomehookup.com\/test_install\/wp-content\/uploads\/2018\/08\/amazonShade.jpg\"><img decoding=\"async\" src=\"http:\/\/www.thesmarthomehookup.com\/test_install\/wp-content\/uploads\/2018\/08\/amazonShade-300x153.jpg\" alt=\"\" width=\"300\" height=\"153\"><\/a><\/p>\n<p>Roller Shade:<a href=\"https:\/\/amzn.to\/2nkbQqI\"> https:\/\/amzn.to\/2nkbQqI<\/a><\/p>\n<p>I like these shades because they significantly reduce the amount of sunlight passing through without completely blocking the view of the pool, they let a decent amount of breeze through, and they are very weather resistant.&nbsp; They fit my needs perfectly, but if you\u2019re looking for a blackout shade, these aren\u2019t going to cut it.<\/p>\n<p>Next we need a motor to move these things.&nbsp; I opted for a planetary geared stepper motor with a 5:1 gear ratio.&nbsp; Stepper online makes super high quality stepper motors for relatively cheap.&nbsp; When I made my original project I purchased them on amazon for around $45 each, but they were nice enough to send me one to make this video, so thanks stepper online.<\/p>\n<p><a href=\"http:\/\/www.thesmarthomehookup.com\/test_install\/wp-content\/uploads\/2018\/08\/stepperStepper.jpg\"><img decoding=\"async\" src=\"http:\/\/www.thesmarthomehookup.com\/test_install\/wp-content\/uploads\/2018\/08\/stepperStepper-300x141.jpg\" alt=\"\" width=\"300\" height=\"141\"><\/a><\/p>\n<p>Geared Stepper Motor (stepper online): <a href=\"https:\/\/goo.gl\/DW3Bgw\">https:\/\/goo.gl\/DW3Bgw<\/a><\/p>\n<p><a href=\"http:\/\/www.thesmarthomehookup.com\/test_install\/wp-content\/uploads\/2018\/08\/amazonStepper.jpg\"><img decoding=\"async\" src=\"http:\/\/www.thesmarthomehookup.com\/test_install\/wp-content\/uploads\/2018\/08\/amazonStepper-300x153.jpg\" alt=\"\" width=\"300\" height=\"153\"><\/a><\/p>\n<p>Geared Stepper Motor (amazon): <a href=\"https:\/\/amzn.to\/2nkomGN\">https:\/\/amzn.to\/2nkomGN<\/a><\/p>\n<p>Lets talk briefly about the important differences between a stepper motor and a normal DC motor.&nbsp; When you apply current to a DC motor it spins in one direction, raise the voltage and it spins faster, flip the polarity and it spins in the opposite direction.&nbsp; Those are all useful things, but one thing you can\u2019t do with a DC motor is move it to a specific location and lock it in that location.&nbsp; Here\u2019s where a stepper motor shines.&nbsp; A stepper motor uses 4 wires instead of 2.&nbsp; Applying current to two of those wires will advance the motor exactly 1 step.&nbsp; If I want it to go the next step I\u2019ll need apply current to the other two wires.&nbsp; The motor we selected has a step angle of .35 degrees, which means every step rotates the shaft by only .35 degrees.&nbsp; This is really useful information when we consider that this will allow us to know the exact amount that our shades have been rolled down at any given time.&nbsp; For this specific case we know that we\u2019ll need to do 1028 steps in order to move 360 degrees without using microstepping.<\/p>\n<p>The decision to use a planetary gears is just as important as the decision to use a stepper motor.&nbsp; Planetary gears allow us to amplify the torque of the stepper motor by a factor of 5 in this case, and that\u2019s important because it means that a less torquey stepper motor will still be able to supply the needed rotational force to roll the shades up and down, but the other reason it is important is that it also makes it 5 times more difficult for the weight of the shades to rotate the shaft of the stepper which will prevent slippage between steps.&nbsp; When I made my shades over a year ago I tried every non-geared high torque stepper motor available on amazon, but none of them worked exactly how I wanted them to.&nbsp; Another good option for this project would have been to use a DC motor with a motor encoder, but I like stepper motors, so that\u2019s what I used.<\/p>\n<p>Since a stepper motor needs to have a relatively large current pulsed rapidly, you\u2019ll also need a stepper motor driver to handle the heavy lifting.&nbsp; I really like the quality of the products from stepper online so I asked them to send me one of their drivers.&nbsp; Unfortunately, I didn\u2019t do enough research before requesting the driver from them, and the one I got wasn\u2019t compatible with the 3.3V logic that the ESP8266 outputs.&nbsp; I went ahead and bought the same driver that I used for my first two shades, it works flawlessly and it\u2019s one of the cheapest ones on amazon.<\/p>\n<p><a href=\"http:\/\/www.thesmarthomehookup.com\/test_install\/wp-content\/uploads\/2018\/08\/amazonDriver.jpg\"><img loading=\"lazy\" decoding=\"async\" src=\"http:\/\/www.thesmarthomehookup.com\/test_install\/wp-content\/uploads\/2018\/08\/amazonDriver-300x149.jpg\" alt=\"\" width=\"300\" height=\"149\"><\/a><\/p>\n<p>Stepper Driver: <a href=\"https:\/\/amzn.to\/2AReI85\">https:\/\/amzn.to\/2AReI85<\/a><\/p>\n<p>For a microcontroller I used an ESP8266 based node-mcu because I\u2019m very comfortable with them.&nbsp; If you\u2019re going to be placing these outside far away from your wireless router I\u2019d recommend checking out the wemos D1 pro since it has an external wifi antenna.&nbsp; My Arduino sketch will work on the nodeMCU and the wemos D1 pro without modification, so go with whatever one you\u2019re most comfortable with.<\/p>\n<p><a href=\"http:\/\/www.thesmarthomehookup.com\/test_install\/wp-content\/uploads\/2018\/08\/d1pro.jpg\"><img loading=\"lazy\" decoding=\"async\" src=\"http:\/\/www.thesmarthomehookup.com\/test_install\/wp-content\/uploads\/2018\/08\/d1pro-300x144.jpg\" alt=\"\" width=\"300\" height=\"144\"><\/a><\/p>\n<p>D1 Mini Pro: <a href=\"https:\/\/amzn.to\/2Msm17L\">https:\/\/amzn.to\/2Msm17L<\/a><br \/>\nExternal WiFi Antenna: <a href=\"https:\/\/amzn.to\/2MsmfvD\">https:\/\/amzn.to\/2MsmfvD<\/a><\/p>\n<p><a href=\"http:\/\/www.thesmarthomehookup.com\/test_install\/wp-content\/uploads\/2018\/08\/nodemcu.jpg\"><img loading=\"lazy\" decoding=\"async\" src=\"http:\/\/www.thesmarthomehookup.com\/test_install\/wp-content\/uploads\/2018\/08\/nodemcu-300x152.jpg\" alt=\"\" width=\"300\" height=\"152\"><\/a><\/p>\n<p>We\u2019ll also need a way to power our microcontroller.&nbsp; Since we will already have a 12V power source for our stepper motors a buck converter is all we need to step that down to 5V.&nbsp; If you\u2019d rather not mess with a buck converter you can also just power it with a USB cord and wall charger.<\/p>\n<p><a href=\"http:\/\/www.thesmarthomehookup.com\/test_install\/wp-content\/uploads\/2018\/08\/wallpower.jpg\"><img loading=\"lazy\" decoding=\"async\" src=\"http:\/\/www.thesmarthomehookup.com\/test_install\/wp-content\/uploads\/2018\/08\/wallpower-300x143.jpg\" alt=\"\" width=\"300\" height=\"143\"><\/a><\/p>\n<p>5V Power Supply: <a href=\"https:\/\/amzn.to\/2MsSWcr\">https:\/\/amzn.to\/2MsSWcr<\/a><\/p>\n<p><a href=\"http:\/\/www.thesmarthomehookup.com\/test_install\/wp-content\/uploads\/2018\/08\/buck.jpg\"><img loading=\"lazy\" decoding=\"async\" src=\"http:\/\/www.thesmarthomehookup.com\/test_install\/wp-content\/uploads\/2018\/08\/buck-300x144.jpg\" alt=\"\" width=\"300\" height=\"144\"><\/a><\/p>\n<p>Buck Converter: <a href=\"https:\/\/amzn.to\/2MsPiPu\">https:\/\/amzn.to\/2MsPiPu<\/a><\/p>\n<p>Those are the main parts that I needed to buy, but lets quickly talk about everything that I already had around from previous projects that I used in this project:&nbsp; You\u2019ll need wire, I used cat6 cable because I had it around. it has 4 twisted pairs, and I used one twisted pair for each of the 4 wires on the stepper motor.&nbsp; If I was going to buy wire specifically for this problem I\u2019d get one of these 250ft spools of four core 18 gauge wire, for $30, it\u2019s an absolute steal, that\u2019s like 12 cents a foot.<\/p>\n<p><a href=\"http:\/\/www.thesmarthomehookup.com\/test_install\/wp-content\/uploads\/2018\/08\/4-conductor.jpg\"><img loading=\"lazy\" decoding=\"async\" src=\"http:\/\/www.thesmarthomehookup.com\/test_install\/wp-content\/uploads\/2018\/08\/4-conductor-300x144.jpg\" alt=\"\" width=\"300\" height=\"144\"><\/a><\/p>\n<p>4 Core 18AWG Wire:<a href=\"https:\/\/amzn.to\/2OjVmdA\"> https:\/\/amzn.to\/2OjVmdA<\/a><\/p>\n<p><a href=\"http:\/\/www.thesmarthomehookup.com\/test_install\/wp-content\/uploads\/2018\/08\/jumpers.jpg\"><img loading=\"lazy\" decoding=\"async\" src=\"http:\/\/www.thesmarthomehookup.com\/test_install\/wp-content\/uploads\/2018\/08\/jumpers-300x146.jpg\" alt=\"\" width=\"300\" height=\"146\"><\/a><\/p>\n<p>Jumper Wires: <a href=\"https:\/\/amzn.to\/2OQzzeE\">https:\/\/amzn.to\/2OQzzeE<\/a><\/p>\n<p>You\u2019ll also need some wire to hook up the stepper motor driver, male to female jumper wires are perfect for this, and it means you won\u2019t have to solder anything.&nbsp; You\u2019ll need an AC adapter, I used an old one 12 volt one from an HP printer, you want between 12 and 19V, more volts = more torque, 2 amps should be plenty.&nbsp; You\u2019ll also need some jumper wires, and some M3 screws.&nbsp; Of course, all of the specific parts I used are linked in the description.<\/p>\n<p><a href=\"http:\/\/www.thesmarthomehookup.com\/test_install\/wp-content\/uploads\/2018\/08\/m3.jpg\"><img loading=\"lazy\" decoding=\"async\" src=\"http:\/\/www.thesmarthomehookup.com\/test_install\/wp-content\/uploads\/2018\/08\/m3-300x140.jpg\" alt=\"\" width=\"300\" height=\"140\"><\/a><\/p>\n<p>M3 Screws: <a href=\"https:\/\/amzn.to\/2KCWuXT\">https:\/\/amzn.to\/2KCWuXT<\/a><\/p>\n<p>I also used a 3D printer to make the connector hub between the the stepper motor and the shade.&nbsp; If you don\u2019t have a 3d printer there are probably lots of different places around you to access one.&nbsp; Do a google search for a maker space in your local area and you may be surprised how many there are. &nbsp;Sometimes you can even 3d print at your local library.&nbsp; I\u2019d recommend printing this part with at least 80% infill and 3 to 4 shells.&nbsp; If you use less than that the hub may strip itself out.<\/p>\n<p>I might regret doing this, because I\u2019m really not interested in getting into the 3d printing business, but as a last resort if you can\u2019t find anywhere else, I\u2019m going to add a $10 tier to my patreon page called \u201c3d printer\u201d and I\u2019ll print out the part for this project and send it to you as your reward for that tier.<\/p>\n<p>3d Printed Hub STL File: <a href=\"https:\/\/github.com\/thehookup\/MQTT_Motorized_Shades\/blob\/master\/ShadeHub.stl\">https:\/\/github.com\/thehookup\/MQTT_Motorized_Shades\/blob\/master\/ShadeHub.stl<\/a><\/p>\n<p><a href=\"http:\/\/www.thesmarthomehookup.com\/test_install\/wp-content\/uploads\/2018\/08\/patreon_home.jpg\"><img loading=\"lazy\" decoding=\"async\" src=\"http:\/\/www.thesmarthomehookup.com\/test_install\/wp-content\/uploads\/2018\/08\/patreon_home-300x229.jpg\" alt=\"\" width=\"300\" height=\"229\"><\/a><\/p>\n<p>Patreon: <a href=\"https:\/\/www.patreon.com\/thehookup\">https:\/\/www.patreon.com\/thehookup<\/a><\/p>\n<p>So if you needed to buy absolutely everything that I just mentioned this project is going to run you around $150, I built mine for around $175 for the pair, but I only had to buy the motors, drivers, and shades, and I had all the rest of the parts laying around as leftovers from previous projects.<\/p>\n<p>&nbsp;<\/p>\n<p><a href=\"http:\/\/www.thesmarthomehookup.com\/test_install\/wp-content\/uploads\/2018\/08\/parts-list.jpg\"><img loading=\"lazy\" decoding=\"async\" src=\"http:\/\/www.thesmarthomehookup.com\/test_install\/wp-content\/uploads\/2018\/08\/parts-list-300x218.jpg\" alt=\"\" width=\"300\" height=\"218\"><\/a><\/p>\n<p>Lets build it!<\/p>\n<p>We\u2019ll start out by making some modifications to our shades.&nbsp; Start by removing the mounting plug from the end of the rod, we\u2019re going to replace this with our 3d printed part that has the mounting hub for the stepper motor.&nbsp; Next you\u2019ll need to modify the end that comes with the pull chain.&nbsp; Start by removing the screw from the front and pull off the rod mount.&nbsp; Inside there\u2019s a clutch to stop the shade from moving when the chain isn\u2019t under tension.&nbsp; You can remove the clutch and gear set completely.&nbsp; When you replace the rod mount onto the shaft just offset the notches so they aren\u2019t in the middle of the little prongs on the spring.&nbsp; You can remove sets of these springs if you need to in order to change the amount of resistance to rolling.&nbsp; If your stepper motor doesn\u2019t seem powerful enough to unroll your shade you can remove a few springs, if your shade is unrolling by itself add them back.<\/p>\n<p>Next we need to modify our mounting brackets to accommodate our stepper motor.&nbsp; This part was actually super hard for me to get the holes right. &nbsp;Luckily I\u2019ve done all the hard work for you and created a PDF file with a template for where to drill the holes.&nbsp; Make sure when you print out the PDF file you have \u201cactual size\u201d checked and not fit to page, or shrink to fit, or any of those other options. The bracket we\u2019re going to modify is the one without the tab, remove the 8 screws on the back of the bracket and tape the template onto the face. Drill out the mounting holes and attach your stepper motor with the M3 screws<\/p>\n<p>Mounting Holes Template: <a href=\"https:\/\/github.com\/thehookup\/MQTT_Motorized_Shades\/blob\/master\/mounting_template.pdf\">https:\/\/github.com\/thehookup\/MQTT_Motorized_Shades\/blob\/master\/mounting_template.pdf<\/a><\/p>\n<p>Next we\u2019ll move on to the code.&nbsp; My code is fairly simple and utilizes the AH_easydriver library for stepper motors.&nbsp; The code is based off the fact that these shades will go from completely rolled to completely unrolled in 13 full rotations.&nbsp;&nbsp; If you\u2019re using a different shade you\u2019ll want to change the unrolled variable to something other than 13.&nbsp; If you\u2019re going the Arduino route you\u2019ll also need to edit the user configuration section with your wifi and mqtt information.<\/p>\n<p>Arduino Code: <a href=\"https:\/\/github.com\/thehookup\/MQTT_Motorized_Shades\/blob\/master\/ShadeMCU_CONFIGURE.ino\">https:\/\/github.com\/thehookup\/MQTT_Motorized_Shades\/blob\/master\/ShadeMCU_CONFIGURE.ino<\/a><\/p>\n<p>If you\u2019re against using the Arduino IDE and you\u2019d rather use the flashesp8266 tool that DrZzs lovingly refers to as esp easy, I\u2019ve also uploaded a bin file with a configuration portal so you can avoid having to install different libraries.&nbsp; After flashing the bin file to your microcontroller you\u2019ll notice a new wireless network pop up called \u201cShadeConfig\u201d, connect to it and navigate to 192.168.4.1.&nbsp; Put in your wireless SSID, password, and mqtt information.&nbsp; The MQTT client ID will be used to create unique mqtt topics for each of your shades, so make sure you remember it and make sure it doesn\u2019t have any spaces in it.&nbsp; I\u2019ve also added a number of rotations input in case you want to use this with another shade that requires a different number of rotations to fully unroll.&nbsp; If you\u2019re using the same shade as me, leave this number at 13.<\/p>\n<p>ESPFlashEZ Program: <a href=\"https:\/\/github.com\/letscontrolit\/ESPEasy\/releases\">https:\/\/github.com\/letscontrolit\/ESPEasy\/releases<\/a><br \/>\nESPEZ Shade Bin File: <a href=\"https:\/\/github.com\/thehookup\/MQTT_Motorized_Shades\/blob\/master\/Shades_Portal_Config.ino.nodemcu.bin\">https:\/\/github.com\/thehookup\/MQTT_Motorized_Shades\/blob\/master\/Shades_Portal_Config.ino.nodemcu.bin<\/a><\/p>\n<p>You\u2019ll need to set up a way to control the shades by sending them MQTT values.&nbsp; I personally use home assistant, but most of the popular home automation platforms should be able to handle the task.&nbsp; I\u2019ve configured mine as an input slider, with an an automation to send the value we select to the MQTT topic specified in the code.&nbsp; That topic is shadePosition\/ and the client id you selected.&nbsp; It\u2019s very important that you use a retain flag here, because our MQTT server is going to store our shade\u2019s position for us in the event of a reboot.<\/p>\n<p>Configuration YAML Additions: <a href=\"https:\/\/github.com\/thehookup\/MQTT_Motorized_Shades\/blob\/master\/shade.yaml\">https:\/\/github.com\/thehookup\/MQTT_Motorized_Shades\/blob\/master\/shade.yaml<\/a><\/p>\n<p>Once you\u2019ve got your code loaded up and your MQTT messages configured you can test it with your stepper motor and driver.<\/p>\n<p><a href=\"http:\/\/www.thesmarthomehookup.com\/test_install\/wp-content\/uploads\/2018\/08\/schematic.jpg\"><img loading=\"lazy\" decoding=\"async\" src=\"http:\/\/www.thesmarthomehookup.com\/test_install\/wp-content\/uploads\/2018\/08\/schematic-300x300.jpg\" alt=\"\" width=\"300\" height=\"300\"><\/a><\/p>\n<p>This driver has 3 pins that need to be connected to your microcontroller:&nbsp; The DIR positive input on the driver connects to GPIO4, which is marked as D2 on the node-mcu, The PUL positive input on the driver connects to GPIO 0 marked as D3 on the node-mcu, and the ENA positive input connects to GPIO13 which is D7.&nbsp; You\u2019ll also need to connect each of the negative inputs to your board.&nbsp; I connected them with a single wire to my nodeMCU and then just bridged the connections together with small pieces of wire.<\/p>\n<p>Next you\u2019ll attach the 4 wires of your stepper motor to the driver.&nbsp; The black wire connects to A positive, Green to A negative, Red to B positive and Blue to B negative and attach your 12V power supply to Vdc and Ground.<\/p>\n<p>Remember if you\u2019re using a buck converter you\u2019ll need to attach it to your input voltage and then turn the set screw on the top of the board until the output voltage is correct.&nbsp; I try to shoot for around 4.8 volts on the nodeMCU.<\/p>\n<p>Before we plug it in, lets double check that our dip switches are in the right place.&nbsp; Our stepper motor is rated for 1.68 amps, so we\u2019re going to set the current limiting driver to 1.34 amps RMS just to make sure we don\u2019t overload our motor.&nbsp; We also want to set the resolution to 800 pulses per revolution.<\/p>\n<p>This means our dip switch setup is going to on off off, and on on off.<\/p>\n<p>Alright! Lets test it out. &nbsp;To test it I\u2019d recommend turning the shaft of the motor manually before you plug it in to line it up with one of the screws we want to make sure that our motor moves in full rotations, so send your motor a command to move 13 full rotations and if it rotates 13 times and ends up in roughly the same position that it started you\u2019re ready to install.<\/p>\n<p>Mount the brackets loosely on either side of the shade and slide the mounting hub onto the stepper motor shaft.&nbsp; Once everything is in place, slide the brackets closer together to make everything fit nicely, and tighten the mounting bracket screws.<\/p>\n<p>Before you plug in your microcontroller and driver you want to make sure that you\u2019ve sent the message \u201c13\u201d to the mqtt topic with a retain flag.&nbsp; With home assistant all I needed to do was slide my slider all the way to the end.&nbsp; You also want to start with your shade completely unrolled, not only because it\u2019s much easier to mount it this way, but also because that corresponds to position 13.&nbsp; Now it\u2019s time to plug it in and test it out.&nbsp; The sleep function on a stepper driver turns off all power to the motor at specific positions, not only does this save power, but it puts less stress on the driver and motor.&nbsp; The Arduino program that I wrote is set to sleep at position 0, which is fully rolled up, and position 13 which is the fully rolled down position.&nbsp; If you set a different value in the configuration section, it will sleep at whatever maximum value you set.&nbsp; What this means for you, is that if the values ever get uncalibrated, all you need to do is send an MQTT value of 13, or whatever your max is, and then after the shade is done moving, manually pull it down to it\u2019s maximum value\u2026 but this shouldn\u2019t really be a problem unless your kid decides to hang on the shade while it\u2019s trying to move.<\/p>\n<p>If everything went according to plan you\u2019re done and you should be able to control your shades with home assistant!&nbsp; Test it out by sending different values to the shades.&nbsp; The great part about this code is it won\u2019t get confused if you send it a new value before the old one has finished processing.&nbsp; If you find that your shades are rolling up the wrong way, you can just reverse the + and \u2013 wires for each of the A and B motor pairs on your driver and the motor will spin in the opposite direction.<\/p>\n<p>I also have my shades set up to work with my amazon echo using the alexa local node.&nbsp; I\u2019m going to post the node-red flow that I use to control my shades in the description, but I also covered it in depth in my 2<sup>nd<\/sup> node red how to video.&nbsp; You can click this link to go there now.<\/p>\n<p><a href=\"http:\/\/www.thesmarthomehookup.com\/test_install\/wp-content\/uploads\/2018\/08\/patreon_home.jpg\"><img loading=\"lazy\" decoding=\"async\" src=\"http:\/\/www.thesmarthomehookup.com\/test_install\/wp-content\/uploads\/2018\/08\/patreon_home-300x229.jpg\" alt=\"\" width=\"300\" height=\"229\"><\/a><\/p>\n<p>Patreon: <a href=\"https:\/\/www.patreon.com\/thehookup\">https:\/\/www.patreon.com\/thehookup<\/a><\/p>\n<p>Thanks to stepper online I now have an extra stepper motor and I bought some other stuff just to make this video.&nbsp; Sounds like a great time to do my first give away!&nbsp; Since I\u2019ve just started this patreon thing, in 2 weeks I\u2019m going to randomly select 1 one of my patrons and send them a pre-programmed node-mcu, a stepper driver, the geared stepper motor, and the 3d printed hub.&nbsp; All patrons who have joined as of August 22<sup>nd<\/sup> will be entered into the drawing. If I were Sean I\u2019d be feeling pretty good about my odds right about now.<\/p>\n<p>If you get stuck anywhere while building this project, post down in the comments\u2026 I\u2019m pretty good about responding quickly most of the time.&nbsp; Links to the exact parts that I used are in the description, so if you stick with those you shouldn\u2019t run into any problems.&nbsp; I know this video has been a long time coming, hopefully it has lived up to your expectations.&nbsp; If you enjoyed this video, please consider subscribing, and as always, thanks for watching the hookup.<\/p>\n<h3>=====TheHookUp=====<\/h3>\n<p>Website: <a href=\"http:\/\/www.thesmarthomehookup.com\/test_install\">http:\/\/www.thesmarthomehookup.com\/test_install<\/a><br \/>\nTwitter: @TheHookUp1<br \/>\nPatreon: <a href=\"https:\/\/www.patreon.com\/thehookup\">https:\/\/www.patreon.com\/thehookup<\/a><\/p>\n<h3>=====PARTS=====<\/h3>\n<p>Roller Shade:<a href=\"https:\/\/amzn.to\/2nkbQqI\"> https:\/\/amzn.to\/2nkbQqI<\/a><\/p>\n<p>Geared Stepper Motor (amazon): <a href=\"https:\/\/amzn.to\/2nkomGN\">https:\/\/amzn.to\/2nkomGN<\/a><br \/>\nOR<br \/>\nGeared Stepper Motor (stepper online): <a href=\"https:\/\/goo.gl\/DW3Bgw\">https:\/\/goo.gl\/DW3Bgw<\/a><\/p>\n<p>Stepper Driver: <a href=\"https:\/\/amzn.to\/2AReI85\">https:\/\/amzn.to\/2AReI85<\/a><\/p>\n<p>ESP8266 NodeMCU: <a href=\"https:\/\/amzn.to\/2nkeahq\">https:\/\/amzn.to\/2nkeahq<\/a><br \/>\nOR<br \/>\nD1 Mini Pro: <a href=\"https:\/\/amzn.to\/2Msm17L\">https:\/\/amzn.to\/2Msm17L<\/a><br \/>\nExternal WiFi Antenna: <a href=\"https:\/\/amzn.to\/2MsmfvD\">https:\/\/amzn.to\/2MsmfvD<\/a><\/p>\n<p>Buck Converter: <a href=\"https:\/\/amzn.to\/2MsPiPu\">https:\/\/amzn.to\/2MsPiPu<\/a><br \/>\nOR<br \/>\n5V Power Supply: <a href=\"https:\/\/amzn.to\/2MsSWcr\">https:\/\/amzn.to\/2MsSWcr<\/a><\/p>\n<p>4 Core 18AWG Wire: <a href=\"https:\/\/amzn.to\/2OjVmdA\">https:\/\/amzn.to\/2OjVmdA<\/a><\/p>\n<p>Jumper Wires: <a href=\"https:\/\/amzn.to\/2OQzzeE\">https:\/\/amzn.to\/2OQzzeE<\/a><\/p>\n<p>12V Power Supply: <a href=\"https:\/\/amzn.to\/2APkGGy\">https:\/\/amzn.to\/2APkGGy<\/a><\/p>\n<p>M3 Screws: <a href=\"https:\/\/amzn.to\/2KCWuXT\">https:\/\/amzn.to\/2KCWuXT<\/a><\/p>\n<h3>=====FILES=====<\/h3>\n<p>3d Printed Hub STL File: <a href=\"https:\/\/github.com\/thehookup\/MQTT_Motorized_Shades\/blob\/master\/ShadeHub.stl\">https:\/\/github.com\/thehookup\/MQTT_Motorized_Shades\/blob\/master\/ShadeHub.stl<\/a><\/p>\n<p>Mounting Holes Template: <a href=\"https:\/\/github.com\/thehookup\/MQTT_Motorized_Shades\/blob\/master\/mounting_template.pdf\">https:\/\/github.com\/thehookup\/MQTT_Motorized_Shades\/blob\/master\/mounting_template.pdf<\/a><\/p>\n<p>Arduino Code: <a href=\"https:\/\/github.com\/thehookup\/MQTT_Motorized_Shades\/blob\/master\/ShadeMCU_CONFIGURE.ino\">https:\/\/github.com\/thehookup\/MQTT_Motorized_Shades\/blob\/master\/ShadeMCU_CONFIGURE.ino<\/a><\/p>\n<p>ESPFlashEZ Program: <a href=\"https:\/\/github.com\/letscontrolit\/ESPEasy\/releases\">https:\/\/github.com\/letscontrolit\/ESPEasy\/releases<\/a><br \/>\nESPEZ Shade Bin File: <a href=\"https:\/\/github.com\/thehookup\/MQTT_Motorized_Shades\/blob\/master\/Shades_Portal_Config.ino.nodemcu.bin\">https:\/\/github.com\/thehookup\/MQTT_Motorized_Shades\/blob\/master\/Shades_Portal_Config.ino.nodemcu.bin<\/a><\/p>\n<p>Configuration YAML Additions: <a href=\"https:\/\/github.com\/thehookup\/MQTT_Motorized_Shades\/blob\/master\/shade.yaml\">https:\/\/github.com\/thehookup\/MQTT_Motorized_Shades\/blob\/master\/shade.yaml<\/a><\/p>\n<p>Wiring Schematic: <a href=\"https:\/\/github.com\/thehookup\/MQTT_Motorized_Shades\/blob\/master\/schematic.jpg\">https:\/\/github.com\/thehookup\/MQTT_Motorized_Shades\/blob\/master\/schematic.jpg<\/a><\/p>\n<p>Node-RED Alexa Sequence: <a href=\"https:\/\/github.com\/thehookup\/MQTT_Motorized_Shades\/blob\/master\/Node_Red_Alexa.js\">https:\/\/github.com\/thehookup\/MQTT_Motorized_Shades\/blob\/master\/Node_Red_Alexa.js<\/a><\/p>\n<h3>Credits<\/h3>\n<p>Music by www.BenSound.com<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Smart Shades \u201cAlexa, turn off the chair shade\u201d Today on the hookup we\u2019re going to make a motorized smart shade that can be controlled with amazon echo and your MQTT smart home controller for around $125. Lets start out by taking a look at each of the products we\u2019re going to use for this project. [&hellip;]<\/p>\n","protected":false},"author":2,"featured_media":2600,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_acf_changed":false,"footnotes":""},"categories":[4],"tags":[],"class_list":["post-399","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-projects"],"acf":[],"mb":[],"mfb_rest_fields":["title","gutenberg_elementor_mode"],"_links":{"self":[{"href":"http:\/\/www.thesmarthomehookup.com\/test_install\/wp-json\/wp\/v2\/posts\/399","targetHints":{"allow":["GET"]}}],"collection":[{"href":"http:\/\/www.thesmarthomehookup.com\/test_install\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/www.thesmarthomehookup.com\/test_install\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/www.thesmarthomehookup.com\/test_install\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"http:\/\/www.thesmarthomehookup.com\/test_install\/wp-json\/wp\/v2\/comments?post=399"}],"version-history":[{"count":6,"href":"http:\/\/www.thesmarthomehookup.com\/test_install\/wp-json\/wp\/v2\/posts\/399\/revisions"}],"predecessor-version":[{"id":2355,"href":"http:\/\/www.thesmarthomehookup.com\/test_install\/wp-json\/wp\/v2\/posts\/399\/revisions\/2355"}],"wp:featuredmedia":[{"embeddable":true,"href":"http:\/\/www.thesmarthomehookup.com\/test_install\/wp-json\/wp\/v2\/media\/2600"}],"wp:attachment":[{"href":"http:\/\/www.thesmarthomehookup.com\/test_install\/wp-json\/wp\/v2\/media?parent=399"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/www.thesmarthomehookup.com\/test_install\/wp-json\/wp\/v2\/categories?post=399"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/www.thesmarthomehookup.com\/test_install\/wp-json\/wp\/v2\/tags?post=399"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}