ESP32 board with battery and nearby antenna

How To Easily Set Up Secure OTA Firmware Updates On ESP32

After an electronic IoT device has been deployed into the world, it may be necessary to reprogram or update it. But if physical access to the device (or devices) is troublesome or no longer possible, that’s a problem.

OTA updates allow a device to download new firmware, install it, and reboot itself into the new version. Convenient? Yes. Secure? It definitely needs to be.

Fortunately, over-the-air (OTA) firmware updates are a thing, allowing embedded devices to be reprogrammed over their wireless data connection instead of with a physical hardware device. Security is of course a concern, and thankfully [Refik] explains how to set up a basic framework so that ESP32 OTA updates can happen securely, allowing one to deploy devices and still push OTA updates in confidence.

[Refik] begins by setting up a web server using Ubuntu Linux, and sets up HTTPS using a free SSL certificate from Let’s Encrypt, but a self-signed SSL certificate is also an option. Once that is done, the necessary fundamentals are in place to support deploying OTA updates in a secure manner. A bit more configuration, and the rest is up to the IoT devices themselves. [Refik] explains how to set things up using the esp32FOTA library, but we’ve also seen other ways to make OTA simple to use.

You can watch a simple secure OTA firmware update happen in the video, embedded below. There are a lot of different pieces working together, so [Refik] also provides a second video for those viewers who prefer a walkthrough to help make everything clear. Watch them both, after the break.

Continue reading “How To Easily Set Up Secure OTA Firmware Updates On ESP32”

DIY Hydroelectric Plant

Impressive Off-Grid Hydroelectric Plant Showcases The Hacker Spirit

We all know the story arc that so many projects take: Build. Fail. Improve. Fail. Repair. Improve. Fail. Rebuild. Success… Tweak! [Kris Harbour] is no stranger to the process, as his impressive YouTube channel testifies.

DIY Hydroelectric Plant
An IOT charge controller makes power management easier.

Among all of [Kris’] off-grid DIY adventures, his 500 W micro hydroelectric turbine has us really pumped up. The impressive feat of engineering features Arduino/IOT based controls, 3D printed components, and large number of custom-machined components, with large amounts of metal fabrication as well.

[Kris] Started the build with a Pelton wheel sourced from everyone’s favorite online auction site paired with an inexpensive MPPT charge controller designed for use with solar panels. Eventually the turbine was replaced with a custom built unit designed to produce more power. An Arduino based turbine valve controller and an IOT enabled charge controller give [Kris] everything he needs to manage the hydroelectric system without having to traipse down to the power house. Self-cleaning 3D printed screens keep intake maintenance to a minimum. Be sure to check out a demonstration of the control system in the video below the break.

As you watch the Hydro electric system playlist, you see the hacker spirit run strong throughout the initial build, the failures, the engineering, the successes, and then finally, the tweaking for more power. Because why stop at working when it can be made better, right? We highly recommend checking it out- but set aside some time. The whole series is oddly addictive, and This Hackaday Writer may have spent inordinate amounts of time watching it instead of writing dailies!

Of course, you don’t need to go full-tilt to get hydroelectric power up and running. Even at a low wattage, its always-on qualities mean that even a re-purposed washing machine can be efficient enough to be quite useful.

Thanks to [Mo] for alerting us to the great series via the Tip Line!

Continue reading “Impressive Off-Grid Hydroelectric Plant Showcases The Hacker Spirit”

Rolling Your Own Long-Range IoT Sensor Network

Homebrew wireless sensors are nothing new around these parts: grab an ESP8266, hang a BME280 from the I2C pins, and you’re just a few lines of code away from joining the Internet of Things on your own terms. Builds like this are so cheap and easy that they make an excellent first project for folks looking to get into the electronics game, but what if you’re looking for something a bit more bespoke?

In that case, you could follow in the footsteps of [Discreet Mayor] and put together a custom modular architecture for long-range wireless sensors. The core of the system is a breakout board for the Texas Instruments SimpleLink CC1312 wireless MCU which features a simple 2×11 header connector. This allows the module to either be plugged into a larger board or have a small sensor PCB attached directly to it.

Rather than using WiFi or requiring some existing radio infrastructure, the boards automatically create a private network using the IEEE 802.15.4 standard at a range of up to 600 meters. A dedicated receiver isn’t necessary, to pull data off the network, one of the CC1312 boards simply gets connected to a computer through a simple FT232 adapter.

[Discreet Mayor] has already created a number of projects that use these custom radios for communication, from a pool monitoring system to a temperature sensor for the BBQ. That portable battery operated devices are able to use this common communications backbone just as well as mains powered static devices is a testament to the work that went into the firmware to make it as robust and efficient as possible.

Like the idea of long-range private networks, but less enthusiastic about having to come up with your own hardware? Not to worry. Over the summer, Espressif announced that they’re working on an ESP32 variant that includes support for IEEE 802.15.4. Just as soon as this chip shortage is over, we might even get to see the thing.

IoT flower pot monitors moisture and temperature levels.

Smart Flower Pot Build Is All About That Base

For some reason, it seems like most of the plant monitoring setups we see separate the plant and the monitoring system. This makes sense in a don’t-own-a-waterbed-and-a-cat kind of way, but it also doesn’t from an aestheitc standpoint. This build by [Jorge Enrique Gamboa Fuentes] sure does look nice and tidy as an all-in-one unit, and fortunately is built with obvious issues in mind. It tracks water level, soil moisture, and soil temperature with a single device — a STEMMA-connected soil sensor that does all the monitoring work.

This attractive beginner build is a Python-powered project that runs on a PyPortal Titano and has a speaker that anthropomorphizes the thing so it can berate you politely ask for water in English. But the real magic of this build is in the enclosure itself. Thankfully, it’s designed with a drip tray, but it also keeps the electronics out of the water, allowing just the tip of the sensor to get wet. You can view the vital signs directly on the device, or on a web dashboard whenever you’re away.

In the future, [Jorge] wants to experiment with GCP and Azure, connect more flower pots together, and add more sensors so that it is more autonomous. One of the major lessons learned was that you probably shouldn’t start with a succulent, because they need very little water and this will drag out your development time considerably unless you over-water it, which will kill it. Check it out after the break.

If [Jorge] wanted to go the easy route, they might stick this plant under an old Keurig that’s been converted to an automatic watering device.

Continue reading “Smart Flower Pot Build Is All About That Base”

Review: Hands On With The Swarm Satellite Network Eval Kit

If you have devices out in the field, you probably want to connect with them. There was a time when that was hard to do, requiring telephone wires or specialized radio gear. Now cellular data is prevalent, but even cellular isn’t everywhere. If you have the cash, you can pay a number of satellite companies to carry your data, but that’s generally pricey and has its own challenges.

The age of satellite constellations is changing that. Of course everyone by now has heard of Starlink which is offering satellite internet via numerous satellites that are much smaller than traditional telecom satellites. But they’re not the only came in town.

A company called Swarm has put up a constellation of 1/4U cube satellites in low orbits. They offer a ground station that uses an omni antenna and a subscription access program for small amounts of data. They sent us a unit to review, and while I haven’t used the system in a real project yet, the kit was pretty impressive.

About Swarm

Swarm tile device
The Swarm Tile is made to mount on a PCB

The Swarm “tile” is a tiny radio that can talk bi-directionally with small satellites in low Earth orbit. The little unit is made to mount on a PCB, can control its power consumption, and talks to your system via a standard 3.3V UART connection. It does, however, require a small antenna and maybe even a smaller antenna for its GPS module. Small, in this case, is about a mid-size handy talkie antenna. There is a half-wave antenna that doesn’t need a ground plane and a shorter antenna that does need a ground plane.

Continue reading “Review: Hands On With The Swarm Satellite Network Eval Kit”

Samsung Shuttering Original SmartThings Hubs

Samsung is causing much angst among its SmartThings customers by shutting down support for its original SmartThings home automation hub as of the end of June. These are network-connected home automation routers providing Zigbee and Z-Wave connectivity to your sensors and actuators. It’s not entirely unreasonable for manufacturers to replace aging hardware with new models. But in this case the original hubs, otherwise fully functional and up to the task, have intentionally been bricked.

Users were offered a chance to upgrade to a newer version of the hub at a discount. But the hardware isn’t being made by Samsung anymore, after they redirected their SmartThings group to focus entirely on software. With this new dedication to software, you’d be forgiven for thinking the team implemented a seamless transition plan for its loyal user base — customers who supported and built up a thriving community since the young Colorado-based SmartThings company bootstrapped itself by a successful Kickstarter campaign in 2012. Instead, Samsung seems to leave many of those users in the lurch.

There is no upgrade path for switching to a new hub, meaning that the user has to manually reconnect each sensor in the house which often involves a cryptic sequence of button presses and flashing lights (the modern equivalent of setting the time on your VCR). Soon after you re-pair all your devices, you will discover that the level of software customization and tools that you’ve relied upon for home automation has, or is about to, disappear. They’ve replaced the original SmartThings app with a new in-house app, which by all accounts significantly dumbs down the features and isn’t being well-received by the community. Another very popular tool called Groovy IDE, which allowed users to add support for third-party devices and complex automation tasks, is about to be discontinued, as well.

Continue reading “Samsung Shuttering Original SmartThings Hubs”

Messaging On Signal Via The ESP32

Signal is a popular encrypted messaging app, typically used on smartphones. The cross-platform service can now be used via the ESP32, however, thanks to the work of [Dharmik] and [Tirth].

The demonstration is simple, using an ESP32 microcontroller fitted with two push buttons. When one button is pushed, it increments a counter and sends a Signal message noting the current count. The other button sends an image as a Signal message.

The project relies on a Signal bot to deliver an API key that enables the project to work. Messages are sent by making HTTP requests with this key to the CallMeBot.com server. With the API key as authentication, users can only send messages to their own number, keeping the system safe from spammers.

While the demonstration is basic, it merely serves to illustrate how the project works. The aim was to allow home automation and other Internet of Things systems to send Signal messages, and through this method, it’s now possible. The highly security conscious likely won’t want to rely on a random third party server, but for those tinkering around, it may not be such a big deal.

The Internet of Things has a long history with self-messaging projects; we featured the Twittering Toaster back in 2008! Video after the break.

Continue reading “Messaging On Signal Via The ESP32”