6. RTC clock, network time synchronization 7. Press the button to switch the display interface
The design uses STM32F103C8T6. Due to the outrageous price of STM32 recently, we switched to the domestic chip APM32F103C8T6.
Use a USB-Type-C plug and a power switch; 5V to 3.3V, of course the AMS1117-3.3 that remains unchanged for thousands of years.
Tuya's WB3S module has BLE & WIFI dual-mode, and the network configuration operation is very comfortable. This time I used the MCU SDK development method.
SHT30-DIS uses the IIC interface. This is my first time using this. It is said to have high precision, low power consumption, and is suitable for welding.Very friendlyI bought a heating plate specifically for this purpose, but it left a black mark on my coffee table...
The nRESET pin does not need to be connected, there is a pull-up inside the component.
It is used for debugging and is connected to the Type-C port. A relatively small serial port chip is used. I feel that an onboard serial port chip looks more elegant than an external serial port cable. Both CH340N and CH330N are available. Don't forget there is a 0.1uF decoupling capacitor on the back.
0.96-inch OLED screen with IIC interface.
There are two function buttons, KEY0 is used to configure the network, and KEY1 is used to clear the network configuration (actually the functions of these two buttons are the same). No matter which button is pressed, LED2 will light up for a while and then go out automatically.
KEY0 is used to trigger SmartConfig, and KEY1 is used to switch the OLED display interface.
Before the school holiday, we had a course design (the topic has been assigned in 2020/11). By coincidence, we also designed an Internet of Things thermometer and hygrometer (the hardware is different, the thermohygrometer is DHT11, and the WiFi module is ESP8266) . At that time, I used a hardware initialization code sent by a classmate, and added some mqtt, esp8266, and function codes on this basis. I started working on it after the final exam. It was actually less than 6 days before the acceptance. One night before the acceptance, I stayed up until after 3 o'clock to barely finish it. It can only be regarded as a semi-finished product. It only realizes that the device sends temperature and humidity to the server through the MQTT protocol. The data is used to light up the LED lights through the server (everything starts from lighting up the lights). Later I found out that the two classes actually produced very few sets.
I have to say that if I had known about the Tuya platform before, the course design would not have been a chore.
I made two boards. The welding on the first board was really bad. It was so ugly that I couldn’t stand it anymore, so I made a new one.
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