Introduction: Automatic Curtain With Google Home
After years of doing home automation with lights and fan, now I want to try to automate my home curtain. The cost of ready made auto curtain is very expensive, so I opted for DIY. This auto curtain is WiFi relay switch similar to Sonoff. It is super simple which does not need to do coding. The hardest part would be mounting the pulley and make sure it is smooth when pulling the curtain. The total cost of this project was about RM70 (USD 17) only.
- geared motor DC 12 V, 62 RPM.
- New Smart WiFi 2 channel relay switch (same as Sonoff App -eWeLink)
- power supply 12 V DC 1 A
- pulley 2 units. (3D print )
- fishing line
- some L shape bracket to mount the motor
- case for the WiFi switch
- safety pin for cloth 2 units
- Google Home (optional)
Step 1: Design Concept
The curtain will be pulled by a fishing line tied in a loop as shown in the picture. The motor will drive one of the pulley. The two clips on the line will move close to each other when pulley turn clockwise. They will move far from each other when the pulley turn counterclockwise. The limit switch is used to cut off power when the curtain reach to the end.
I used Autodesk Inventor to design a pulley that is suitable for the motor shaft. It has diameter 28 mm. Then I use ABS material for 3D printing. This is the only part I need 3D printing. The D-shape hole must be tight fit with the motor shaft.
The eWeLink App is very easy to use and comes with a few control modes. In this application you just turn on interlock mode to ensure the motor can reverse polarity. Refer to the picture.
Step 2: Assembly and Installation
- Drill some holes on the L-bracket to mount the motor with M3 bolt. Join another piece of L-Bracket to form a U shape. Then use 2 screws to drill the assembly into the curtain rail.
- Install another pulley at another side of the curtain by drilling a hole on the curtain bracket and tighten it with bolt and nut.
- Connect the WiFi switch with the motor. Solder the wire on the motor. Keep the module in a case.
- Tie the safety pin with the line and lock it onto the first curtain pulley.
- Install the fishing line on the pulley. Loop the line at the drive pulley a few rounds to prevent it from slipping. Make sure it is very tight.
I have skipped the limit switch for now. But it is good to have it.
Step 3: Test Run
I name the switch 1st channel OPEN and 2nd channel CLOSE in eWeLink. When telling Google Home you need to say:" Hey Google, turn on Curtain OPEN" or " Hey Google, turn on Curtain CLOSE"
I also set up Routines in Google Home and name it "Open the curtain" and "Close the curtain".
If you would like to open the curtain half way, you can just turn off the button in the App while the curtain is moving. But you should close the curtain again by manual pressing button to prevent it from over travel.
Participated in the
First Time Author Contest