fish001

[Training Camp] Internet of Things Door Lock-894446A

 
Overview
Based on the Tuya IoT smart door lock, I was very excited when I first heard about the free engineering project. But I didn’t expect that the course would be followed immediately by the start of the project. This is really difficult for me, who has no experience in the project. I was totally confused. I started by learning about the power supply circuit. Then I made a board and covered it with copper to connect the power supply and the ground. Then I made the board again. It was a difficult journey, but luckily I made it.
First, I connected 12V to the motor drive and 3.3V to power the chip and module (first reduce it to 5V and then use 1117 to 3.3V)
AMS1117 internal diagram
IMG_0263.PNG
power circuit
STM32 chip
I chose the mcu development solution, using the STM32F103C8T6 chip
timg?image&quality=80&size=b9999_10000&sec=1607422359259&di=8d634560e0eba786d92fbe330f14eb61&imgtype=0&src=http%3A%2F%2Fpic4.zhimg.com%2Fv2-a13d8a515289f9891f9 32d739e2c88c3_250x0.jpg%3Fsource%3D172ae18b
Motor drive circuit 
 

pwm output diagram
If it is detected that it is greater than CCR, it will be judged as high level, otherwise it will be judged as low level.
image.png
 

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.
lbZTexiPmTGJRM2IsNDODFB8KMxlkLQeGS3FDjpc.jpeg

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℃
welding gun
It was my first time to hand-solder a patch. It was quite interesting, but the chip was too small and the equipment couldn't keep up. It took me a long time to solder it.
IMG_0261.JPG
 
Control APP
Use Tuya App to control the starting and closing of the motor to open and close the door
1IEtqKix7kTzxkGdJt9YnMCJijnEfs7Q6cnFPf96.jpeg
[Link to Tuya IoT development platform] https://auth.tuya.com/?from=https://www.tuya.com/cn/&_source=cbc30f99f7a6c4aebca6755c2fab437f (contains detailed development documents)
Photo of motor and board
 
6F58BDAB0ACEE45F3547E298ADA6F817.png

Before you buy a motor, use a small motor to simulate it first. If you want to open and close the door, it is more reasonable to choose a 180-degree motor with high torque.
 
There are still a lot of bugs, and the code is not open source for the time being. It will be released after it is perfected (probably it will be released, manual dog-heading)
参考设计图片
×
 
 
Search Datasheet?

Supported by EEWorld Datasheet

Forum More
Update:2025-06-22 07:28:30

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号