loading

make your own graphical weather station: 7 steps (with ...

by:LCD Mall     2020-07-16
Always wanted a graphic weather station?
With accurate sensors?
Maybe this project will help you.
With this weather station, you can see what the weather is \"doing.
For example, the temperature may rise or fall.
From the ordinary thermometer, it is impossible to see the temperature history.
With this weather station, you have a 26-hour history showing a TFT display of 320 pixels.
Add a pixel to the chart every 5 minutes, which will enable you to see if it has a tendency to go up or down.
This is done for temperature, humidity, air pressure and CO2 in different colors.
Wireless also includes outdoor temperature.
In this way, you can \"predict\" the weather according to the change of air pressure.
It is not accurate to have some sensors in normal weather stations.
For example, they usually have/-for temperature /-2 degrees.
The weather station uses more accurate sensors.
The accuracy of the HDC1080 temperature sensor is /-0.
2 degrees, much better.
The same is true for humidity and air pressure.
At the top of the TFT display, the sensor\'s measurements are displayed and refreshed every 5 seconds.
These measurements are also available through rs232.
Main features: I hope you enjoy checking the weather as much as I do!
1 x TFT module 2.
8 inch non-touch screen ILI9341 driver IC 240 (RGB)
* 320 SPI Interface 1 x micro-chip 18f26k22 micro-controller 28-
Pin PDIP1 x HDC1080 module, GY-213V-
HDC1080 high precision digital humidity sensor with temperature sensor 1 x GY-63 MS5611 High-
Resolution atmospheric height sensor module IIC/SPI1 x MH-
Z19 infrared co2 sensor 1 x for co2 monitoring (optional)
Wireless Module (with antenna)1 x 5V To 3. 3V DC-
DC Buck Power Step down module AMS1117 800MA1 x ceramic capacitor 100nF2 x sub acrylic board 6*12 cm thickness 5mm or 100*100mm thickness 2mm1 x micro USB connector 5 Mini usb connector 1 x black universal Android phone the mini usb EU plug travel AC wall charger adapter is suitable for dual sides of the Android Phones1 x PCB.
Some M3 nylon gaskets/screws-
1 x micro-chip 16f386 micro-controller 28-
Temperature probe temperature sensor stainless steel package-PDIP1 x waterproof
100 cm wire1 4k7 resident 1 x RF 24l01 wireless Module1 x ceramic capacitor 100nF1 x prototype PCB breadboard1 x 85 months x 33mm waterproof transparent plastic electronic cable engineering Box case Case1 X plastic battery Box storage Box rack 2 x wire leads for AA 3.
0V 2a a2 x AA batteryI used a double sided PCB in this project.
The Gerber file is available.
The PCB is mounted on the back of the TFT display.
The temperature sensor is mounted on the back to prevent the circuit from heating.
Connect the rf24l01 to the micro controller by: pin 2-
Rf24l01 pin 9-CSN of rf24l01 pin 8-GND
Rf24l01 pin 22-CE
Rf24l01 pin 23-SCK
24 L01 needle 24-flavor o
Chipc -
The chip uses a 16-bit 8f86 micro-controller to read 1 temperature sensor every 5 minutes.
This temperature is transmitted through a wireless module.
The PCB bread plate prototype here is enough.
Pin configuration using the following micro-controller: pin 2-
CSN for Rf24l01 pin 8-GNDpin 9 -
CE for Rf24l01 pin 14-
Rf24l01 pin 15-SCK
MISO with 16 pins
Rf24l01 pin 20-MOSI
3 V voltage of AA battereespin 21-
Rf24l01 pin 22-IRQDS18B20 data (
Use 4k7 resistor as pull-up)
A measurement is provided every 5 seconds through RS232 at Pin 27 (9600 baud).
You can connect this interface to your computer and use the terminal program (e. g. Putty)
Get data.
It allows you to use the measurement results for other purposes.
The sensors used in this project use different interfaces of the 18f26k22 micro-controller.
MH-same is true for the first serial interface usedZ19 CO2 sensor.
Set this interface to 9600 baud.
The second serial interface of this micro-controller is used to provide sensor measurements at Pin 27 every 5 seconds, so you can connect it to your computer (
Also set at 9600 bode).
The HDC1080 temperature/humidity sensor and the MS5611 air pressure sensor work on the i2c interface.
The TFT display and the rf24l01 wireless module work on the same SPI interface configured to 8 Mhz.
The 18f26k22 micro-controller itself is set to 64 Mhz.
The temperature is degrees Celsius by default.
You can get the Fahrenheit temperature by connecting pin 21 to the ground.
Thanks to Hashem Dobler for the gui graphics library and Harry W (1and0)
His 64-bit solution.
The measurement of the external temperature is carried out with a single-chip microcomputer.
The temperature sensor reads every 5 minutes (one-
Wired protocol is used here)
And transfer with SPI interface through rf24l01 wireless module.
To save the battery, this micro-controller is in low power mode most of the time.
Negative temperatures are also supported, of course.
It will not appear on the TFT screen if this external temperature function is not used, so it is optional.
For the programming of 18f26k22 and 16f386 microcontrollers, you need pickit3 programmers.
You can use the free micro-chip programming software (
Don\'t forget to set VDD to 3.
0 V, and select the check box \"power supply target circuit from tool\" in \"ICSP options\" in the \"power supply\" menu \").
The impression of about 15 hours of weather monitoring time is like this.
White smoke on the display does not exist in reality.
Enjoy this project! !
Custom message
Chat Online 编辑模式下无法使用
Leave Your Message inputting...
Thank you for your message! We are LCD Mall, committed to providing customers with high-quality services and products. Our salesperson will contact you as soon as possible. If you have urgent questions, please feel free to contact us directly through WhatsApp or email: WhatsApp: 86-13713689582/ info@AllTouchDisplay.com .