1. Introduction to the work
The work uses MCU control to display the temperature and humidity on the screen, and uploads the temperature and humidity data to the cloud for display through the APP.
I made two acrylic sheets myself to use as the shell (it was too difficult to drill holes with a drill, and they were a bit off)
Because of the temperature and humidity meter, I mainly designed it based on the model of a thermometer. After I finished it, I found that the effect was average (hahaha, but I felt it was okay, and there was not much deviation)
1. Main devices used: main control (stm32f103c8t6), display module (0.91-inch OLED display), Tuya WB3S module
2. The actual object is as shown below:
3. Serial port 1 is used for downloading, and serial port 2 is used for Tuya module.
2. Function description
1. Two indicator lights. The pow indicator light is a green power indicator light. It lights up when the power is turned on and goes off when the power is turned off. The LED is a status indicator light (the on and off status is shown below). The details are as follows:
2. There are 4 buttons, namely Reset, Scroll Up, Scroll Down, and OK. Reset: resets the program. Scroll Up and Down: used to switch the screen to display temperature or humidity. OK button: used to configure the network, click the button to enter the network configuration state. It is in the Smart configuration state, that is, the LED flashes quickly; it is in the AP configuration state, that is, the LED flashes slowly; the Wi-Fi configuration is completed, and the router is being connected, that is, the LED is always dark ;The router is connected successfully, that is, the LED is always on.
3. OLED display, with two display states of temperature and humidity
3. Device Introduction
Temperature and humidity sensor: sht30 module, (this one is really small, it hurts my eyes when welding it, because there is only one, and I thought the bottom was not welded well, so I disassembled it once, and then welded it on again, but it was not broken, which was scary)
Display module: 0.91-inch OLED, which is about the same size as the display screen of an electronic thermometer.
Power supply voltage stabilization: AMS1117-3.3 (first time using it, it works well)
Tuya WB3S: (This is so interesting. It looks so difficult. I thought about it for a long time but couldn’t get it done. Then I suddenly got the idea and can use it smoothly all the way)
Main control (stm32f103c8t6): Because I have used this before, it is relatively easy, but I have soldered so many pins at one time. Hehe, challenge yourself.
4. APP interface
Because the function is simple, the default one is used.
Device and APP connection method:
Press the confirmation button, the LED flashes,
Open Tuya Smart APP and search. I usually use automatic search.
Then connect successfully and enter WiFi password
It's finished
5. Summary
Through this practical training, I completed my first circuit board drawing work. There were many difficulties, but I was really happy to be able to make it.
Thank you Lichuang & Tuya~
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