Based on the Tuya module, use MCU and WIFI to develop, connect to Tuya Cloud, and make a temperature and humidity meter
**1. Code download link ** https://github.com/liaoshangchao/sht30.git
If you want to do some special functions yourself, it is better to use the cloud platform sdk.
You can refer to the live video as follows: https://www.bilibili.com/video/BV1Yv4y1f7fE https://www.bilibili.com/video/BV1p54y1p7yc https://www.bilibili.com/video/BV1Lv411s7tJ Or you can refer to My previous project introduction has detailed steps for creating cloud platform products, which are basically consistent with most cloud platform operations. https://oshwhub.com/ChaoL9/tu-ya-zhi-neng-bylchao
1. When powered on, the blue LED lights up by default, indicating that the MCU is powered, and the OLED displays the WIFI working status.
(1) When the status bar on the screen displays the text SmartConfig, it means that the WIFI is in the smartconfig configuration state.
(2) When the status bar on the screen displays the text AP MODE, it means that the WIFI is in the AP MODE network configuration state.
(3) When the status bar on the screen displays the text Config Success, it means that there is information about the network configuration inside the WIFI before. If the WIFI connection is changed, the network needs to be configured again.
(4) When the status bar on the screen displays the text Connect Router, it means that the WIFI is connected to the router. It may not be connected to the Tuya cloud platform yet due to delay issues.
(5) When the status bar on the screen displays the text Connect Cloud, it means that the WIFI is connected to the Tuya cloud platform, and the reported information can be viewed through the Tuya smartphone APP.
(6) When the status bar on the screen displays the text Wait Connect WIFI, it means that the WIFI is still initializing or in other unknown states.
(7) When the status bar on the screen displays the text Low Power, it means that the WIFI is in low power consumption mode (low power consumption has not been implemented yet)
(8) When the status bar on the screen displays the text Smart and AP, it means that the WIFI is in smartconfig&AP distribution mode.
2. Tuya APP and OLED display read the temperature and humidity values before display**** 3. The buttons on the board are used to clear the distribution network information (not done in the first version, manual flying wires are added, and have been added in the modified version)
I originally wanted to use a TFT resistive screen driven by the 8080 parallel port to make a temperature and humidity clock. The inspiration came from the Lichuang EDA small TV. However, because the selected MCU flash was not enough, it was temporarily changed to an OLED display. The entire development process was still not very smooth. It’s very difficult. Maybe the function I’m doing is relatively simple.
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