Wireless Battery Powered Temperature & Humidity Sensors to Server

Hi everyone,

I have come across a few projects people have posted but they all seem to spec different components and I haven't managed to find something that is exactly what I'm after. I'll try to keep it simple (see attached image).

There are 4 beehives in this property that need to be monitored for humidity and temperature. The capacity to expand would be useful (maybe infrared camera, microphone?). The requirements are:

  • Battery Powered (last around 1 year, any longer is a bonus)
  • Wireless
  • Compact
  • Ability to log into the server remotely and monitor each hive
  • Ability to get the server to post updates for each hive to Twitter

I have a Raspberry Pi 3 Model B that I can use as a server for these four sensors. This can be placed in the garage (say 8 metres from the furthest beehive. Alternatively I have a Dell Server that could be used also.

Capacity to increase to say 8 beehives would be great.

All answers that will get me closer to this final product would be greatly appreciated. A parts list to start off with would be awesome, so I can at least order the items and start tinkering.

Cheers everyone!

Do you want someone to design the system for you?

Hi,
Welcome to the forum.

Please read the first post in any forum entitled how to use this forum.
http://forum.arduino.cc/index.php/topic,148850.0.html .

OPs image;

Tom.. :slight_smile:

Hi both, thanks for the welcome :slight_smile:

I'm in the real early stages of using things like Pi and Arduino and this is well above my understanding. I don't expect or ask anyone to spend considerable time designing this system, but if anyone has done a similar project I wouldn't mind their input on what is needed.

I'm sure there'll be someone who knows what they're doing that could easily list the components I need.

Provide links to the projects you have already looked at and highlight the things that make them unsuitable for your particular needs.

That's the thing - I can't tell what's suitable and what isn't. I am concerned I will cherry-pick items in the hope I can just put them all together to make this project and find that certain things are incompatible.

I have ordered three arduino nano (ELEGOO variant) and three DHT22 with cables (making them AM2302?).

I'll work on getting these working together nicely.

I need to figure out how to power them, and which batteries work best.

I also need to figure out how to make them talk to my raspberry Pi.

Any pointers there would be appreciated.

JazzyKeys:
Any pointers there would be appreciated.

Ask for advice, then spend your money wisely, rather than wasting your money and then asking for advice.

DHT22 are not great. They may not survive the winter before they fail, usually the humidity part.

Nano are a great first board for experimenting with Arduino. But they are not very low power for use in battery circuits. I don't think 1 year will be achievable with Nano unless you use a massive battery.

You will need some RF transmitters/receivers for the Nano to communicate with the Pi. Nano does not have that.

Arduino will be fine for temp & humidity sensors. But cameras and microphones are possible with only some special types of "Arduino", and these are not for beginners.

Is there WiFi coverage where all the hives will be located, even if the signal is weak?

How thick are the walls of the house/garage? Some types of RF signals are easily blocked.

Are the hives really only 8 metres from the house/garage? That does not sound like a good idea. You or visitors could be attacked for getting to close to the hives.

Excellent tutorial on low power operation with "bare bones" Arduino: gammon.com.au/ power

Elsewhere on Gammon's site, he has a complete project describing a similar remote environmental monitor.

Hi PaulRB,

Thanks for the pointers. What would be a good alternative to the DHT22? They weren't too expensive but you're right, it can get costly. Is the BMP280 any good for this?

Also, what would consume less power than the nano and be suitable for this?

Shame about the microphone - that would have been really interesting.

I have a Ubiquiti UniFi and that has great coverage so WiFi is a possibility. Am I not right in thinking WiFi is quite power-thirsty compared to LoRa? Garage wall is single skin brick. House is timber and leaf, plasterboard inside.

Yes the hives are fine where they are. Neighbours on both sides fine. We cut the grass right up to it, bees not fussed about lawnmower or strimmer. On sunny days I often just walk around and take some close up photos - they're not a bother - you just need to know what you're doing :slight_smile: Also you need to have a backup plan - ie somewhere to take them if things start heading south, which I do.

Thanks jremington - I'll check that out too :smiley:

I have a few wireless temp/humidity sensors around the house, all communicating wirelessly using MQTT over WiFi. The sensors are on boards based on the ESP8266, mostly Wemos D1 Mini (programmed using the Arduino IDE). I use a Raspberry Pi3 running Node Red as the display.

The DHT's work well inside the house, but I've never used them outside.

The DHT22 spec is:

0-100% humidity readings with 2-5% accuracy
-40 to 80°C temperature readings ±0.5°C accuracy

So, I don't envision any problems outdoors as long as the DHT doesn't get wet.

Making the devices solar powered with battery backup is probably the only way to get the long battery life you want. I have a soil moisture device in my garden that is solar with one 18650 (3000 mAh) battery. The Wemos D1 Mini on this device wakes up once a minute and sends a reading to the Raspberry Pi. I will probably change this to once an hour because that is still more than sufficient for watering decisions.

I suppose your sensors will be in the hives, so sheltered from rain and frost. Maybe dht22 will survive...

For genuinely outdoor sensors I recommend those sht20/21/30 etc sensors that come in waterproof housing with proper cable glands etc. They are pretty cheap on ebay/ali express etc. Same for your circuit housing: use ones with rubber seals and plastic "screws", and use cable glands for the wires going in.

SteveMann:
I have a few wireless temp/humidity sensors around the house, all communicating wirelessly using MQTT over WiFi. The sensors are on boards based on the ESP8266, mostly Wemos D1 Mini (programmed using the Arduino IDE). I use a Raspberry Pi3 running Node Red as the display.

The DHT's work well inside the house, but I've never used them outside.

The DHT22 spec is:

0-100% humidity readings with 2-5% accuracy

-40 to 80°C temperature readings ±0.5°C accuracy




So, I don't envision any problems outdoors as long as the DHT doesn't get wet.

Making the devices solar powered with battery backup is probably the only way to get the long battery life you want. I have a soil moisture device in my garden that is solar with one 18650 (3000 mAh) battery. The Wemos D1 Mini on this device wakes up once a minute and sends a reading to the Raspberry Pi. I will probably change this to once an hour because that is still more than sufficient for watering decisions.

Thanks for that Steve, I think I have some rechargeable 18650's lying about - what was the configuration you used for battery housing and solar charging?

I could easily make do with long intervals between updates - a couple of hours? Once a day maybe.

I will have a look at the Wemos D1 mini. Thanks again!

PaulRB:
I suppose your sensors will be in the hives, so sheltered from rain and frost. Maybe dht22 will survive...

For genuinely outdoor sensors I recommend those sht20/21/30 etc sensors that come in waterproof housing with proper cable glands etc. They are pretty cheap on ebay/ali express etc. Same for your circuit housing: use ones with rubber seals and plastic "screws", and use cable glands for the wires going in.

I'll try the DHT's for now and once I have them set up and have learned a bit more I can tinker with making some with those sensors you recommend. Cheers Paul.

Nano board and DHT sensor arrived today. Might have a tinker when I get home.

Can anyone point me in the right direction for software?

Your favorite search engine and "arduino dht22"

jremington:
Your favorite search engine and "arduino dht22"

Cheers pal

Since the battery should last a long time, I would use LoRa. There are a lot of lora projects for Arduino. LoRa has a range of a few km and is also low power. The device should go in a deep sleep mode while it's not doing anything and the longer the intervals to measure temperature and humidity, the longer the battery power will last. I could think of a self sustaining solution. A small solar panel or small solar element that charges the battery during the day and the battery will provide the device power during the night. battery chargers, batteries and so on are available on aliexpress. a simple 18650 battery and a charger can provide the power you need. One board has an esp32, battery charger, LoRa and a display. The display is easy for development (but also power consuming). The following boards where the first I could find on Aliexpress, so maybe there is a cheaper vendor.
ESP32 with LoRa and display Page Not Found - Aliexpress.com
Battery charger Micro Usb 5v 1a 18650 Tp4056 Lithium Battery Charger Module Charging Board With Protection Dual Functions 1a Li-ion For Arduino - Sensors - AliExpress
battery holder Black Plastic 1x 2x 3x 4x 18650 Battery Storage Box Case 1 2 3 4 Slot Way Diy Batteries Clip Holder Container With Wire Lead Pin - Battery Storage Boxes - AliExpress
DHT22 works, but maybe the BME280 is more reliable. Bme280 5v 3.3v Digital Sensor Temperature Humidity Barometric Pressure Sensor Module I2c Spi 1.8-5v - Integrated Circuits - AliExpress

ps. please use LoRa 915mhz for the US or LoRa 868MHz for the EU.

LoRa is great, I use it on more and more sensors these days. But there's a problem with this approach for beginners. It's a more complicated system. You need to build a transmitter circuit for every sensor node, and a receiver circuit, possibly connected to the pi.

By comparison, WiFi is, or can be, very easy. The pi can connect directly to your home WiFi signal. The sensors, if made with Wemos Mini or NodeMCU (esp8266) or esp32 boards, can also connect to the WiFi, all you have to do is connect the sensor and battery. It's true that the WiFi is not as low power, but with a quality 18650 battery, and sending readings a few times per hour, they should last many weeks to a few months between recharges. I guess you should be checking on the health of the colonies more often than that anyway.

I would consider using something other than LiPo for unattended outdoor projects. Yes plenty of people use them, but there are much “safer” options. LiFePO4, NiMH, etc.. LiPo charging is very sensitive to temperature if you’re using solar.

Also, I wouldn’t use the ESP32 for battery tasks. You can start off with it since it’s cheap, but if you’re sampling data frequently you’ll be replacing batteries fairly often.

Anyways, honestly outdoor battery operated project are anything but simple. You’re tackling hardware, software, power management, wireless communication, mechanical (enclosure), and backend all at once.

You can stitch stuff together to get started, but you have a lot to do.

czu001:
I would consider using something other than LiPo for unattended outdoor projects. Yes plenty of people use them, but there are much “safer” options. LiFePO4, NiMH, etc.. LiPo charging is very sensitive to temperature if you’re using solar.

Also, I wouldn’t use the ESP32 for battery tasks. You can start off with it since it’s cheap, but if you’re sampling data frequently you’ll be replacing batteries fairly often.

Anyways, honestly outdoor battery operated project are anything but simple. You’re tackling hardware, software, power management, wireless communication, mechanical (enclosure), and backend all at once.

You can stitch stuff together to get started, but you have a lot to do.

Tom... :slight_smile: