Intelligent curtain robot-Tuya version
Function:
1. Infrared remote control
2. Manual start
3. Stop when encountering obstacles
4. Automatically set limit point when starting for the first time
5. Battery detection
6. Tuya intelligent control
Hardware Configuration
mcu stm32l010f4p6
wifi graffiti wbr3
Infrared receiver LF0038M
Hall ss460s or hs229 bipolar latching low power hall sensor
Motor driver DRV8837C
working principle
The Tuya module or infrared receives the control signal, and the MCU processes it to control the motor rotation. The Hall sensor detects the position and direction to realize stroke limit and manual start. The MCU communicates with the Tuya module through the serial port. The MCU uses low power consumption mode and automatically enters the stop mode in standby. It can be awakened by infrared reception, Tuya module serial port, Hall module, etc. to perform actions. Configure adc to detect battery power.
Installation and use: The host is installed in the open position of the curtain, and the power is turned on. The remote control or Tuya app is connected to control the closing of the curtain. When the curtain runs to the closed state and encounters obstruction, it stops. The program automatically sets the closing limit point and completes the stroke setting. You can use it normally after that.
Infrared remote control can realize three status control functions: on, off and stop.
Tuya app implementation:
Open, close, stop, continue 4 status control functions
Turn on and off the percentage display and control functions.
Battery display, hand-activated switch function, timing function, and linkage with other graffiti equipment.
Problems: 1. The garbage track is too narrow in some places and lacks power. The power supply should be changed to 7.4V.
2. The original design is an offline version, the MCU sleeps in standby mode, and a graffiti module is added to coordinate with the activities. Real-time networking may cause insufficient battery life.
3. It may be difficult to pull the curtains manually using a reduction motor.
4. There are still many questions, which are for reference only. It is not recommended to copy and use without foundation.
https://github.com/freedom7890/cl_tuya
motherboard
Shell design
Jialichuang 3D printing
Assembly completed
All reference designs on this site are sourced from major semiconductor manufacturers or collected online for learning and research. The copyright belongs to the semiconductor manufacturer or the original author. If you believe that the reference design of this site infringes upon your relevant rights and interests, please send us a rights notice. As a neutral platform service provider, we will take measures to delete the relevant content in accordance with relevant laws after receiving the relevant notice from the rights holder. Please send relevant notifications to email: bbs_service@eeworld.com.cn.
It is your responsibility to test the circuit yourself and determine its suitability for you. EEWorld will not be liable for direct, indirect, special, incidental, consequential or punitive damages arising from any cause or anything connected to any reference design used.
Supported by EEWorld Datasheet