Summer heat and those amazing afternoon thunderstorms are already starting, so I'm thinking of adding a lightning detector to my DIY weather station. I've wanted a lightning sensor for a while, but they have always been expensive, tricky to calibrate, and had a bad reputation for hobby level users.
However, two things have changed this year and both make it possible for even an amateur like myself to connect a reliable lightning sensor to my Arduino - all for around $30 USD.
My DIY weather-station needed a lightning detector sensor for my Arduino base unit. Luckily there are several good options that are easy and cheap to buy and install.
First, vendors have recently begun selling reliable, easy-to-use boards based on the AS3935 detector chip. Even better, the supporting code libraries and tutorials are finally understandable to mere mortals. With that combination, I expect to see more options like this coming onto the market.
Second, I now know enough to hack into those cheap commercial lightning sensors, take the alert/alarm signals and feed them into my microcontroller - all without destroying the sensor. That might be simple for you, but it's a big deal for me.
The Sparkfun version uses a PCA9615 chip and their Qwiic connect system. The Adafruit version uses the LTC4311 chip and their STEMMA QT connector system. Both breakout boards also have breadboarding holes for connecting to power, ground and the I2C lines either by soldering wires directly or with pin headers.
The sensors and/or the microprocessor get connected via the Qwiic/STEMMA connectors. The two systems are interchangeable. The long-run signal is sent through the Ethernet line.
The Sparkfun version requires a board at both ends. It also has an Ethernet port built in. The board actually translates the signal and passes it to the other board where it is translated back into an I2C signal. This version also has the ability to send mixed voltages for power and signal, with the configuration selectable by jumpers.
The Adafruit board is more like a booster/active-terminator. Placed (usually) at the beginning of the cable (next to the microprocessor) it boosts and cleans the signal so that it can be sent farther. You can extend the range with a longer run using just the STEMMA port, but will need to connect the STEMMA port to an Ethernet cable for really long runs. A short video explains why.
Both boards work well, so choosing the best option depends on your needs and hardware requirements.
I just spent the last year learning how to create reasonably reliable data packets for Bluetooth and LORA. Now, I can place sensors and displays 100' feet apart and still use the reliable native I2c protocol instead.
These hardwired boards provide several advantages over Bluetooth, LORA or even WiFi.
Power is transmitted over the Ethernet cable, so you don't need to have batteries or power at the remote location. (Unless you're driving devices like motors or solenoids)
You won't need to reset and pair your RF devices anymore. No more dropped BT/LORA/WiFi connections.
Only one processor is needed. With RF communication, you need a brain for the transmitter and another for the receiver. With these extenders, you only need the one main brain to send and receive signals.
Less likely to be hacked than RF communication
Two situations immediately come to mind:
Place the sensors, controllers, and MCU in the uncomfortable or hazardous environment, but have the data-display and control panel in a safe, comfortable location. Great for monitoring and controlling machinery from inside the office. Say a greenhouse where the fans, pumps and lights are in a hot. humid environment but you want to see the sensor data and machine-status inside your nicely airconditioned office. In this scenario, the main power supply would be near the MCU so you can pull power for relays and motor drivers easily. It powers the MCU and sensors also. Only the graphical display, inside that perfectly cooled office, is running off the Ethernet extender
Place just the sensors someplace like an attic or crawlspace. You can monitor the temperature, humidity or water levels from the display mounted on an Arduino inside your house. Since the power comes from the ethernet cable, you won't have to crawl under the house to replace batteries ever again.
Let's say I want to monitor and control some lights and motor from a distance. Here's a simple topology that might work. I can read the sensor data off an I2c capable display, and give commands to the MCU with control buttons on the display. This could be great for controlling lights and fans in the greenhouse from the comfort of the air-conditioned office.
Or maybe I just want to put some sensors in a remote location (attic or crawlspace) while keeping my central MCU and command panel inside. I might never have to access that crawlspace again - unless the sensors tell me there's a problem.
Remember, the boards do send power over the ethernet cable, but not a lot. So you might need to provide a local power source if you want to drive relays, motor controller boards, or even a big display. But the docs make it look easy, just change a few jumpers to connect to local power.
I will still use RF in some of my projects. And since this uses the I2C bus, you can still use RF on the serial lines for a hybrid system. If you need to transmit data for a half mile, or a couple of kilometers, then LORA or XBee is still a good bet. Or if you can't run cables or the remote location changes frequently, then Bluetooth and WiFi are still good options.
But both of these boards look really interesting for anything I want to install permanently in a nasty or difficult to access environment.
As an Amazon Associate I earn from qualifying purchases.
Shop through our Amazon links to help support this site.
Now, you too can see heat maps of human bodies or car engines like Predator - or identify cold spots and drafts in your house like a home-energy expert. And with a little DIY electronics knowledge, you can do it really inexpensively.
Although the sensor is only an 8x8 array, you can interpolate the readings to emulate a finer grain, and with a little coding, adjust how the temperatures are shown.
A big price-drop on Panasonic's AMG8833 8x8 Grid-EYE thermal sensor array has finally allowed hobby electronics suppliers to create a fun and useful thermal camera at a price everyone can afford - less than $50. Compare that to the more than $250 for a FLiR dev board with an 80x60 grid.
As you might expect at this price point, there are limitations. The sensor is only 8x8 pixels and has a range of less than 25 feet (7 meters). You will not be able to identify enemy paintballers from across the battlefield, and you can't get a full-house image of your heat loss. It requires a brain (Arduino or RasPi) with I2C, libraries and a graphics screen. Most people reading this probably already have a microcontroller and screen, so that's no big deal. But faster processors will give you smoother video feeds.
Here's a great teaser video from Adafruit on how to make this into a cute camera version.
Sparkfun has also released a breakout board (SPX-14568) from their experimental SparkX labs. It uses their QWIIC connection system and also has a library for Arduino.
All the tutorials I've seen so far use a graphic display. But you could display the output on NeoPixels, on a servo-array or translate it into sounds. You could draw images with sparklers. Since you also have access to the raw data you could store time lapses. Combine this with traditional movement and distance sensors for more accurate navigation for your robots, or add another layer to your home security system. If you can code, you can create anything you want.
For less than $50 you get a useful sensor that's far more than a toy - definitely worth checking out for a wide variety of uses.
As an Amazon Associate I earn from qualifying purchases.
Shop through our Amazon links to help support this site.