DIY Arduino Tutorial: How to Automate Your Curtains
This Arduino Curtain Automation project will let you automate your curtain blinds using just an Arduino and a stepper motor. I just moved to America pursuing my higher studies. Because my dorm is very dark, I wanted to brighten up my room when I wanted to. Since I would be there for only for a month, I couldn’t make anything too complicated. So I decided to make myself this DIY Arduino Curtain Automation system. Using regular curtain blinds, I could control the amount of light in the room and suit it according to my needs.
The design for this Arduino Curtain Automation system is quite simple and there are two ways to activate the curtains:
- Using a sound sensor (mic) to control it using my claps (Step 2).
- Using buttons to move the shades of the curtain (Step 3).
So let’s get started with our DIY Arduino Curtain Automation system, follow the simple instructions to replicate this project.
- Arduino (I am using Arduino Nano to save space; in the picture, it’s attached to a shield for easy testing)
- Adafruit sound sensor (optional)
- Stepper motor +Darlington array driver
- 2-3 Buttons
- An LED for indication
- Jumper wires and breadboard
How Does it Work?
The working of this DIY Arduino Curtain Automation system is very simple. The Arduino takes input from either the sound sensor (mic) or buttons. It then correspondingly controls the stepper motor through the Darlington array driver for the motor. The stepper motor is attached to the control stick of the curtain blinds and thus on rotation, opens/closes the blinds.
Interfacing the Stepper Motor
The first step I did was testing the design for the Arduino curtain automation system. The motor is connected to the 4 wires of the driver as shown in the diagram. Depending on the direction of rotation for your curtain, you need to plug the driver accordingly
Basically, the first button from the right will activate the motor to spin a particular degree (you can change in the code). Press the button 4 times and it will return to the original place since it will spin around 90 degrees during each press. The middle button will lock the circuit so that the first button cannot activate the motor. The LED will turn ON when the motor is locked. The final button will return the motor to the original place no matter where is it, at the time pressed. It’s still a simple program, hope you guys understand. You can find the code below.
JLCPCB – Prototype 10 PCBs for $2 (For Any Color)
China’s Largest PCB Prototype Enterprise, 600,000+ Customers & 10,000+ Online Orders Daily
How to Get PCB Cash Coupon from JLCPCB: https://bit.ly/2GMCH9w
This Post / Project can also be found using search terms:
- arduino curtain
- arduino curtains
- automatic curtain rs232
- how to automate curtains