3228

[Training Camp] Tuya Smart Garage Rolling Door Controller-481978A

 
Overview
 
Tuya garage rolling door controller 

 
 
 
 
      The equipment uses Tuya WBR3 module + STC microcontroller + RF radio frequency module. The microcontroller locally controls the forward and reverse rotation of the motor to realize the electric door switch. The Tuya WBR3 module realizes mobile phone control.
 
 
1. WIFI module: Tuya WBR3 module is connected to the IoT platform.
 
 

WBR3 module specification sheet

WBR3 is a low-power embedded Wi-Fi+BLE module developed by Tuya Smart. It consists of a highly integrated wireless radio frequency chip RTL8720CF, with built-in Wi-Fi network protocol stack and rich library functions.

product description

WBR3 includes low-power KM4 MCU, WLAN MAC, 1T1R WLAN, with a maximum frequency of 100MHz, built-in 256K SRAM, built-in 2Mbyte flash and rich peripheral resources in the chip.

WBR3 is an RTOS platform that integrates all Wi-Fi MAC and TCP/IP protocol function libraries. Users can develop embedded Wi-Fi products that meet their own needs based on these.

characteristic

  • Built-in low-power KM4 MCU, which can double as an application processor
  • Main frequency 100MHz
  • Working voltage: 3V-3.6V
  • Peripherals: 9×GPIOs, 1×UART, 1×Log_Tx
  • Wi-Fi/BT connectivity
    • 802.11 B/G/N20
    • Channel 1-14@2.4GHz(CH1-11 for US/CA, CH1-13 for EU/CN)
    • Support WEP/WPA/WPA2/WPA2 PSK (AES) security mode
    • Support Bluetooth 4.2 Low Energy
    • +20dBm output power in 802.11b mode
    • Support SmartConfig function, including Android and iOS devices
    • Onboard PCB Onboard antenna
    • Passed CE, FCC certification
    • Working temperature: -20℃ to 85℃
    • WBR3 schematic pin correspondence diagram

      WBR33.png

      WBR3 PCB package

      WBR34.png

 
2. Main control chip: MCU STC8G1K08 receives Tuya module instructions, decodes the remote control, and controls 2 relays.
 
 
 
 
         The microcontroller program was too difficult for me. I changed it and then tested it. When the test found problems, I changed it again. It took me 7 nights to write the code. The microcontroller can receive instructions from the Tuya module and send the door's opening and closing status. It also needs to decode the key code instructions of the remote control module and control the 2-way relay to realize the forward, reverse and stop of the motor. Attached is the microcontroller program code.
 
MCU data download address: http://www.stcmcudata.com/STC8F-DATASHEET/STC8G-STC8H-SELECT-GUIDE-20201027.PDF
 
3. Remote control module: JR43B wireless 433M remote control receiving module.
 
 

 
 
 
4. Power supply part: 220V power supply output 5V1A, LDO uses 1117 to output 3.3V.
 
 
 
Power supply anti-interference circuit
 

 

Support 5V1A output

1) AC input voltage range 90-264Vac

2) DC output 5V/1.0A

3) Meet the requirements of Energy Star 2.0 and Level 5 energy efficiency with sufficient margin (board end data)

(The measured average efficiency is above 73.50% at the PCB board end, and the Energy Star 2.0 standard is 68.17%)

4) No-load standby power consumption is less than 100mW (actual measurement: 70mW@230Vac)

5) Meet the requirements of EMI EN55022 Class B with sufficient margin

6) The maximum output ripple is less than 120mVP-P

7) Mass production of the system ensures that the output voltage accuracy is within ±5% and the output current accuracy is within ±5%.

8) Self-restoring short circuit protection and open loop protection

 

5. The relay output circuit uses a stable and mature triode to drive two 16a high-power relays.

 

 

 

Wiring instruction diagram

 

 

 

 

       I originally had an idea to change the garage door at home into a mobile phone smart remote control. This time there happened to be an EDA IoT practical training camp event. After more than 10 days of hard work, drawing circuit boards, soldering circuit boards, and constantly rewriting the code, I finally succeeded. I am so excited. Please give me more suggestions. We will work hard to make practical products, and the next step will be mass production. Thank you Lichuang and Tuya for supporting this event! We will carry out more activities like this in the future.

 

 
参考设计图片
×
 
 
Search Datasheet?

Supported by EEWorld Datasheet

Forum More
Update:2025-06-19 13:31:16

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号