In the United States, window blinds often require manual operation, where users need to pull them down to close and use a small rod to rotate the slats to block or allow sunlight. This process can be inconvenient, especially when a room has multiple windows and blinds that must be operated individually. To address this issue, we developed a robotic system that automates curtain control. Our solution uses an ESP32 microcontroller connected to a mobile app, enabling remote operation of two motors mounted on the window frame for seamless and efficient curtain control.
DescriptionA video of using our blinds robot is linked below
HardwareOur system incorporates the following hardware components to achieve seamless curtain automation:
1. A wooden frame with blind and ropes
- A wooden frame with a simple bline for demonstration purpose
- Fix ropes in the middle to pull up/down the blind symmetrically
2. ESP32 Microcontroller:
- Serves as the core of the system, enabling Bluetooth communication with the Android mobile app and controlling motor operations.
- Handles real-time signals from the sensors and motor drivers.
3. L298N Motor Driver:
- Drives the two motors simultaneously, providing precise control over their speed and direction.
4. Two Greartisan DC 12V 10RPM Motors:
- Mounted on the window frame, the motors work in tandem to move the curtain and rotate the slats.
5. Two Radar Sensors:
- Placed at the top and bottom of the window frame, these sensors detect the curtain’s endpoints to prevent over-rotation or misalignment during operation.
6. 3D-Printed Components:
- Custom-designed and printed parts are used to integrate the motors with the window frame, including pulleys and fixtures for securing rods and motors
7. Android Smartphone:
- Acts as the remote control via a user-friendly mobile app, communicating with the ESP32 over Bluetooth for seamless operation.
Our design optimizes hardware utilization by using a single ESP32 to coordinate all system functions, from communicating with the app to controlling the L298N motor driver. This ensures a compact, efficient, and cost-effective solution.
SoftwareOur code (see attachment) controls two motors (Motor1 and Motor2) connected to the ESP32 microcontroller via Bluetooth. Motor1 moves up or down based on ultrasonic distance sensor measurements to avoid exceeding boundaries (top and bottom). Motor2 rotates in specific directions (open, close, stop) and can automatically align to a middle position. Commands for motor control are received via Bluetooth. The code also includes safety features to stop motors when boundaries are detected and uses timers to track movement and position. Real-time status updates are sent to a serial monitor and Bluetooth device.
Summary of Milestone 1We chose to proceed with the smart blind project from our two initial proposals.
Summary of Milestone 2We built the frame with blind and ropes, and were able to pull up/down the blind and rotate the slats by manually holding the motors and connecting ESP32 with a laptop.
Summary of Milestone 3By 3D-printing motor closures and fixing them to the frame, we finally set our hands free! The ultrasonic sensors to support automatically detect the curtain’s endpoints and avoid over-rotation. We also re-write our program to support the sensors and bluetooth connection, so that we could control the whole system on a mobile device.
Comments
Please log in or sign up to comment.