# Using nRF24L01 radios as part of a weather station

**URL:** <https://discourse.nodered.org/t/using-nrf24l01-radios-as-part-of-a-weather-station/32758>\
**Category:** Share Your Projects\
**Created:** [11 September 2020 15:27 UTC](https://discourse.nodered.org/t/using-nrf24l01-radios-as-part-of-a-weather-station/32758 "2020-09-11T15:27:48Z")\
**Posts on this page:** 1\
**Showing post:** 1

<div class="post-metadata">

**Author:** ![dynamicdave](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/dynamicdave/32/96_2.png) [@dynamicdave](https://discourse.nodered.org/u/dynamicdave)\
**Post date:** [11 September 2020 15:27 UTC](https://discourse.nodered.org/t/using-nrf24l01-radios-as-part-of-a-weather-station/32758/1 "2020-09-11T15:27:48Z")

</div>

This is an extension of the weather station project one of my IoT students tackled last year (2019).

> [@Solar-powered weather station](https://discourse.nodered.org/t/solar-powered-weather-station/12499):
>
> One of the students in my IoT Computer Club (here in the UK) is working on a personal project to design and build a solar-powered weather station (that will be located in one of the school's gardens) to monitor and report air temperature, humidity and pressure. Here are the [Objectives and list of items.](http://resources-area.co.uk/bohunt-projects/weather-station/objectives.pdf) The student has split the project into six manageable stages. [Using a solar panel to charge a Li-Ion battery and power a Wemos D1 Mini.](http://resources-area.co.uk/bohunt-projects/weather-station/stage_1.pdf)[Putting the Wemos D1 Mini into 'deepsleep' to conserve …](http://resources-area.co.uk/bohunt-projects/weather-station/stage_2.pdf)

The objective was to have a remote sensor (located in one of the school's gardens) to send temp/humidity/pressure readings to a database using MQTT. Initially a Wemos D1 Mini was used but the WiFi range of the ESP8266 limited the distance the sensor could be placed from the school.

Someone suggested I should look at the inexpensive UHF radios - - nRF24L01 as an alternative.  
I've just spent a week of frustration and successes trying to get these radios to work reliably.  
I won't share all the frustration as that's very negative and boring - just the final outcome (below).

Here's a photo of the remote station - Wemos D1 Mini + BME280 + nRF24L01+

 ![remote_st](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/3X/9/f/9face4b2d3f9d381ef13b05bdeae952dedab7b46.jpeg)

And here's the base station - Wemos D1 Mini + OLED panel + nRF24L01+

 ![base_st](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/3X/b/6/b606ee19667d8aec22210a7921da3e794d7bdffa.jpeg)

Initially I used Arduino Nanos at both ends, then realised how do I send the received data to Node-RED, so I replaced the Nanos with Wemos D1 Minis. Note: You can upload Arduino 'sketches' to the Wemos which means you can WiFi-enable an Arduino project very, very easily.

The above photos are of a 'test rig' I lashed-up to do some range checks today (11/Sept/20). I managed to achieve a distance of 435 metres (see photo below) before I ran out of 'clear walking space', so now I have to think of somewhere that has a nice, flat, clear, line-of-sight terrain.

 ![Screen Shot 09-11-20 at 02.24 PM](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/3X/5/4/544f65b63333a9641b5095567d3ade28c3e6d139.jpeg)  
I've got a couple of sketches working that sense temp/humidity/pressure (at the remote station) and send the data (as an array) to the base station where it is unpacked and then formatted as a 'json' string and sent via MQTT to Node-RED. I've actually managed to get the sketch to handle a local and a remote MQTT broker (i.e. BeeBotte). Next step is to implement 'DeepSleep' at the remote station to save the energy in the battery pack. I'll publish the Arduino sketches here once I'm happy the programs work reliably.

---

_[View the full topic](https://discourse.nodered.org/t/using-nrf24l01-radios-as-part-of-a-weather-station/32758)._
