1. Description
1. Project goals:
1. Synchronously display the current time and week.
2. Get the temperature conditions of your city.
3. Update the current temperature, humidity and air pressure in real time.
2. Function introduction
1. Use the ESP-01s module to connect to wifi and send the temperature API to Xinzhi Weather.
2. Obtain the current temperature, humidity and air pressure conditions through the SHT31 temperature and humidity sensor and BMP180 air pressure sensor.
3. Display the obtained data on the OLED screen.
4. Buttons and buzzers are reserved to provide possibilities for subsequent development.
3. Shortcomings and improvements
1. The program uses variables to store time and does not use the system rtc.
2. The humidity collection accuracy of SHT31 is not high.
3. The project is only designed for transplant verification.
4. Used to know the limitations of the weather free version, which can only obtain the current city weather conditions
. 5. Regarding the weather display, which may be too long, you can classify light rain, etc. as rain in the program.
4. Detailed instructions
1. Use Xinzhi Weather to obtain the weather (free personal version). You can only obtain the current city weather. Please go to the official website to register and receive the private key
. 2. When plugging the module directly, please pay attention to the module pin connection direction
. 3. Purchase Address BMP180: https://m.tb.cn/h.506iJyV?tk=4mbrdtPKDEs
SHT31: https://m.tb.cn/h.506ieGM?tk=3wqudtPKzrx
ESP-01S: https://m.tb .cn/h.5bx0Z3K?tk=aqPpdtPKwoh
OLED: https://m.tb.cn/h.506QAea?tk=duWDdtPIHBA (4PIN 0.96 inch) According to this PCB pin order is (GNDVCCSCLSDA)
4. BMP180SHT31OLED in this project All use IIC communication, ESP-01S uses serial port (USART1) communication
5. Screen display information description:
First row: Weekly calendar
Second row: Whether the WIFI module is online Current time
Third row: Weather Current temperature (indoor) / city temperature
Fourth row: humidity, air pressure