-7.9 C
United States of America
Sunday, January 19, 2025

To Hack or To not Hack




Whenever you need to do some hacking on a finances, choosing up low cost or older {hardware} that isn’t fairly very best — however that may get the job accomplished — is commonly one of the simplest ways to go. With a little bit of ingenuity and soldering, lots of the {hardware}’s limitations could be overcome. However one should all the time rely the associated fee earlier than taking this method. How a lot time must go into bringing the {hardware} as much as snuff? And what is going to the brand new elements price? Would it not make extra sense to simply pony up for higher {hardware} up entrance and avoid wasting problem later?

Engineer and electronics hobbyist Malte Pöggel lately took on a undertaking that will have crossed over the road and left practicality within the rear view mirror, however it was a terrific train in revitalizing dated {hardware} that we are able to study from all the identical. Pöggel wished to add a rain gauge to his current IoT climate station, so he picked up an affordable TFA Dostmann rain transmitter 30.3161. It’s fairly able to sensing rainfall, nevertheless, it transmits that knowledge by way of a {custom} radio protocol that requires a separate receiver to decode.

Pöggel didn’t like the thought of getting a separate receiver, or having to decode a proprietary protocol for this one sensing unit, so he determined to retrofit the rain gauge to speak by way of LoRa. That is the place issues get a bit difficult, and the place one may query the choice to improve the prevailing {hardware}. It was not a easy matter of wiring a LoRa-capable growth board into the combination — the improve concerned a whole redesign of the inner elements.

The unique circuit boards have been changed with custom-designed boards. The primary board now homes an ATmega328P microcontroller clocked at 8 MHz, a LoRa RFM95W radio module for connectivity, and extra sensors resembling a BMP280 for temperature and air stress measurements. A tunnel magnetoresistive sensor changed the unique reed contact for detecting rainfall pulses, providing increased sampling charges and decrease energy consumption. About the one factor retained within the new design was the unique contacts for AA batteries.

The unique transmitter board was repurposed as nothing greater than an antenna holder. Moreover, FRAM reminiscence was built-in to retailer LoRaWAN activation knowledge and sensor readings, making certain knowledge restoration after battery modifications. A pressure-equalization membrane was added to the housing to permit correct air stress readings whereas stopping moisture intrusion.

The firmware for the modified rain gauge was developed utilizing the PlatformIO construct atmosphere, leveraging the MCCI LMIC library to allow LoRaWAN integration. It manages knowledge acquisition, transmission, and deep sleep modes to optimize energy consumption. The firmware helps over-the-air activation, permits configuration updates by way of downlink messages, and shops activation knowledge and rainfall counts.

To visualise the info, a Telegraf-InfluxDB-Grafana stack was carried out utilizing Docker. The system retrieves decoded JSON payloads by way of MQTT integration with The Issues Community, shops the info in InfluxDB, and gives real-time insights by means of a pre-configured Grafana dashboard, providing a whole and user-friendly answer for monitoring rainfall knowledge.

If all you need is a rain gauge to plug into your current IoT climate station, there are simpler paths to observe. However if you wish to study some new issues and personalize the system to your coronary heart’s content material, then Pöggel’s answer is tough to beat.I do not all the time hack rain gauges, however once I do they get LoRa (📷: Malte Pöggel)

The redesigned {hardware} (📷: Malte Pöggel)

A Grafana dashboard was created for knowledge visualization (📷: Malte Pöggel)

Related Articles

LEAVE A REPLY

Please enter your comment!
Please enter your name here

Latest Articles