Wifi Window Blinds Control!

About the project

Control the angle of your window blinds' shades via WiFi by using an ESP32, DC Motor and driver board.

Project info

Difficulty: Moderate

Platforms: Adafruit

Estimated time: 1 hour

License: GNU General Public License, version 3 or later (GPL3+)

Items used in this project

Hardware components

Raspberry Pi High-Quality Camera Raspberry Pi High-Quality Camera TiP120 Transistor x 1
Adafruit HUZZAH32  ESP32 Feather Board (pre-soldered) Adafruit HUZZAH32 ESP32 Feather Board (pre-soldered) x 1
DC Gear Motor 12V 100RPM DC Gear Motor 12V 100RPM x 1
DC MOTOR click DC MOTOR click I used an MD10CR3, use whatever can drive the motor. x 1

Software apps and online services

Arduino IDE Arduino IDE

Hand tools and fabrication machines

3D Printer (generic) 3D Printer (generic) x 1
Hot glue gun (generic) Hot glue gun (generic) x 1
Soldering iron (generic) Soldering iron (generic) x 1

Story

Another project inspired by being lazy! I made a webserver with an ESP32 which I can access over WiFi using my phone, computer, or even smart TV. The ESP32 works in coordination with a DC motor driver board which adjusts the shades.

To add some complexity, I added a ~5V rechargeable battery and accompanying solar panel. I also added a small microUSB cable that sticks out the side of the blinds. In theory I can use it to charge the battery, or just leave it there to power the device!

This is the conceptualization and build video from my YouTube Channel.

ADDITONAL_HTML_CODE: you will need to paste this in the final code for the webserver design.

<html>
 <head>
 tn<title>Window Blinds Control</title>
 tn<meta name="viewport" content="width=device-width, initial-scale=1">
 n<style>
nhtml,body{tnwidth:100%;nheight:100%;nmargin:0}n*{box-sizing:border-box}n.colorAll{ntbackground-color:#90ee90}n.colorBtn{ntbackground-color:#add8e6}n.angleButtdon,a{ntfont-size:72px;nborder:1px solid #ccc;ndisplay:table-caption;npadding:10px 10px;ntext-decoration:none;ncursor:pointer;npadding:5px 6px 7px 10px}a{ntdisplay:block}n.btn{ntmargin:5px;nborder:none;ndisplay:inline-block;nvertical-align:middle;ntext-align:center;nwhite-space:nowrap}n";
 HTML +="</style>nn</head>nn<body>n<h1>Blinds Control </h1>n";

Schematics, diagrams and documents

Circuit Diagram

Pin D5: Motor Driver On/OffPin D12: Direction For Motor DriverPin D14: On/Off Motor Control

CAD, enclosures and custom parts

DC Motor Clamp

To clamp around the DC Motor.

Go to download

Motor Coupler

This is for connecting the DC motor Shaft to the 1/4" hexagonal shaft that runs through my blinds.

Go to download

Code

WebServer DC Motor Control Code

Enter the name of your wifi and open serial monitor to find the ip address of your esp32. I left in PWM components of the code commented out, this can be uncommented and adjusted for speed control.For some reason the code cannot be saved with the full code, paste the ADDITONAL_HTML_CODE in where stated.

Credits

Photo of TPalowski13

TPalowski13

Mechanical Engineering Graduate, Youtuber. I like to make dumb builds that I find funny.

   

Leave your feedback...