Arduino Wireless Weather Station Project
In this video we build an Arduino Wireless Weather Station using the fast and powerful 32bit Arduino Due board. We measure the temperature and the humidity with a couple of DHT22 sensors and we communicate with the remote sensor using the 2.4GHz NRF24L01+ module. Let’s see how to build this project!
Today’s project is this. A Wireless Weather Station with a big 3.2” Color TFT display. As you can see, the project is up and running, and it displays the current date and time, the indoor temperature and humidity, and the outdoor temperature and humidity. The readings of the outdoor sensor are updated every second in order to demonstrate that we have a reliable communication link established with the transmitter which is outside at a distance of 5m. The readings of the indoor sensor are updated once every minute. The heart of the project is the fast Arduino Due, and as you can see there is no flickering of the screen when the values are updated. Let’s now see the transmitter.
The transmitter is much simpler. It consists of an Arduino Nano, a DHT22 sensor and the NRF24L01 wireless transceiver module. The transmitter reads the temperature and the humidity every second, and sends them to the receiver via the NRF24L01 module. This is a one way communication link, we don’t know if the receiver actually receives the data, but we send new data every second, so in case we miss a package we are going to receive another one soon. Let’s now see how to build this project.
The parts needed for the Arduino Wireless Weather Station project are these:
WHERE TO BUY
Arduino Due: http://bit.ly/ArduinoDUE
Arduino Mega: http://bit.ly/ArduinoMega
Arduino Nano: http://bit.ly/CheapArduinoNano
3.2″ TFT display: http://bit.ly/32COLORTFT
DS3231 RTC: http://bit.ly/Ds3231
Header Pins: http://bit.ly/HeaderPinsB
Xiaomi Powerbank: http://bit.ly/PowerBank_XiaoMi
Full disclosure: All of the links above are affiliate links. I get a small percentage of each sale they generate. Thank you for your support!
The cost of the project is around 40$. You can lower the cost of the project by 5$ if you use the Arduino Mega instead of the Arduino Due. I haven’t tested it, but it should work fine as well but it will be much slower.
Let’s now connect all the parts together. Before we start I highly recommend you to watch a couple of videos before attempting to build this project. That’s a difficult project for beginners, there are many things that can go wrong, so it requires some experience. That’s the reason I encourage you to build the projects shown in these videos first. Just click on the card here to watch them.
Let’s first build the transmitter. It is very simple. We connect the output pin of the sensor to digital pin 4 of the Arduino Nano. We connect the Ground and Vcc and we are ready. All we have to do now is to connect the NRF24L01 wireless module. Please watch the NRF24L01 tutorial I have prepared in order to see how to connect it.
The transmitter code is very simple. It is almost identical with the code of the NRF24L01 tutorial. The only thing that it has changed is that we now send real data that we get from the DHT22 sensor. Please, be sure to use the correct library for the NRF24L01 module. You can find a link for it in the description of the video.
Let’s now see the receiver code for the Arduino Wireless Weather Station. We need 4 libraries. I now use a different library for the display which works great! You can download it from a link that can be found in the description of the video. After downloading the library you have to open the User_Setup.h file comment line 13 and uncomment line 14 because the display we have is using the HX8357C driver. Now we can continue with the 3 other libraries. We need one library for the Real Time clock, one for the DHT22 sensor and lastly one for the Wireless module.
CODE OF THE PROJECT
SUBSCRIBE ON YOUTUBE
Never miss a video: Subscribe to educ8s.tv[