DWIN Displays - Simple weather station project
In this video, I show you how to create a simple display which can be used as a weather station. I used three sensors and an Arduino Nano to capture different parameters such as air temperature, humidity, pressure, CO2 concentration and dust density. Once all data is fetched from the sensors the Arduino converts them into commands and sends them to the DWIN display. The project is simple, but spectacular.
Setting up the display
Setting up the display is super simple in this project because all the fields I use on the display to show the different values use similar display controls.
Before moving forward, I strongly recommend you check my article on how to set up the display properly. It is important to know those steps so you can actually upload the files to your display.
Once you finished setting up your display, you can add the data fields to it by adding Data variable display items on your display. Draw the rectangles over the areas where you want to show the corresponding variables. Then assign a VP address to each variable. I kept 100 bytes distance between each VP address, so the first variable starts at 0x1000, the second is at 0x1100… and so on. We just have to keep in mind which address is which variable so we send the correct values from the Arduino to the correct field on the DWIN display.
In the display parameters, change the variable type to float (4 bytes) so the display will know the type of the variable. Then define the number of integer and decimal digits. In the picture on the right side, I defined 4-4 for both digits, but for this weather station project, it is probably unnecessary.
If you want, you can define an initial value, but it is not necessary because it gets written over very quickly after the Arduino sends the values to the display.
And then that’s all. Generate the files using the Generate button under the File menu, and then upload the files to your display using an SD card.
Schematics and other useful information
Buy the relevant parts using my affiliate links:
Join my YouTube membership!