The 51 microcontroller is used to read the sensor value, and localized display is realized through OLED. The temperature can be viewed remotely through Tuya WB3S access to the network. The onboard lithium battery charge and discharge chip and lithium battery protection chip are powered by lithium batteries and can be used in situations where power supply is inconvenient.
1. The main control is STC8A8K64S4A12, whose performance meets the requirements of the Tuya module MCU docking solution, and is suitable for people like me who don’t know 32*⸜( •ᴗ• )⸝*.
2. The lithium battery charging and discharging chip uses TC4056A, which has low cost and simple peripheral circuits.
3. The power supply uses two ME6212C33M5G to power the WiFi module and other circuits respectively to prevent insufficient power supply caused by excessive instantaneous power consumption of the WiFi distribution network.
Nothing much to say, just pay attention to the layout of the antenna .
**Problems in the design: **STC microcontroller USB download does not work. This circuit can be ignored and does not affect the core functions.
The sensor works normally, the temperature and humidity display is normal, and the local program debugging is completed. (2021.02.03)
Tuya mcu_sdk docking
The serial communication connection is successful and product information and current status can be obtained (2021.02.05)
The distribution network and data reporting were successful, and the physical objects were successfully connected to the Internet. (2021.02.07)
Change the boot animation and network status display, add the battery percentage display, the battery is successfully reported to the cloud, and the sensor sampling time supports app customization. (20021.02.09)
Add a network clock and the time will be displayed after connecting to the Internet. (20021.02.18)
After powering on, a short press of the button will immediately refresh the sensor data and report it to the cloud. Long pressing the button for 3 seconds will reset the WiFi module and enter the network configuration state. Press and hold again to switch the network distribution mode (smartconfig and AP switch between each other). The upper left corner will display the current network status of the module, and the upper right corner will display the current battery level (The percentage display cannot be implemented temporarily, and the battery data in the cloud is wrong. Cloud battery data is normal), no operation is performed, and the default is every15SThe sensor data will be refreshed once every 30 seconds (the time can be customized through the app) and reported to the cloud. (2021.02.18)
Networking status S!: smartconfig configuration status A!: AP configuration status (icon display): WIFI configuration is successful but not connected to the router (icon display): WIFI configuration is successful and connected to the router (icon display): WIFI has been connected to the cloud server
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