他们逼我做卧底

[Tuya Smart] Intelligent curtain robot-Tuya version-931640A

 
Overview

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

 

参考设计图片
×
 
 
Search Datasheet?

Supported by EEWorld Datasheet

Forum More
Update:2025-05-23 20:27:50

EEWorld
subscription
account

EEWorld
service
account

Automotive
development
community

Robot
development
community

About Us Customer Service Contact Information Datasheet Sitemap LatestNews


Room 1530, 15th Floor, Building B, No.18 Zhongguancun Street, Haidian District, Beijing, Postal Code: 100190 China Telephone: 008610 8235 0740

Copyright © 2005-2024 EEWORLD.com.cn, Inc. All rights reserved 京ICP证060456号 京ICP备10001474号-1 电信业务审批[2006]字第258号函 京公网安备 11010802033920号