The system is built using STM32L072 microcontroller + Tuya WB3S wireless module + SHT30 sensor. STM32 is designed to use serial port 1 for data interaction with the wireless module, I2C2 for communication with OLED, and I2C1 for communication with SHT30. In addition, a three-color LED lamp bead is designed outside the chip for status indication, and WB2812 lamp bead is used for atmosphere rendering. Finally, There is a voice module for playing music in conjunction with short video playback. The software part is first the driver of the STM32 chip. It is very convenient to use the cube tool to complete the hardware driver of the chip.
It is easy to find application resources for 0.96-inch OLED on the Internet. Transplantation is of course a matter of minutes. Changing pictures and Chinese characters is time-consuming, so it is most convenient to directly output English characters and numbers.
Regarding the use of SHT30, the trouble is not the driver, but the welding. Therefore, when designing the package, it is recommended to enlarge the pad, control the temperature as much as possible during air gun welding, and use flux. The painful welding experience cost 20 oceans. . . The moment it was successfully lit up, my heart felt like it was about to fly.
Using the Tuya Smart APP, you can view temperature and humidity sampling data online. You can set the system collection time and the time interval for uploading APP.
It should be noted that when configuring the network by pressing the button, you need to turn on the Bluetooth of the mobile phone. If you do not open the APP, you will not be able to connect to the network. As long as the system is powered off, it is always online.
As an excellent system, how can it have no sound? So I expanded a JQ8400 MP3 voice module, and with the rhythm of BAD APPLE, it heated up to 200 degrees and took off~ Unfortunately, WB2812 failed to light up, and the backlighting effect on the right side was not realized. We will continue to follow up to complete the design. . Finally, I would like to thank Tuya Smart and LEDA for giving me the opportunity to learn PCB design and programming. I will continue to work hard in the future! Participate in more activities and make progress together!
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