Winners Of Hackaday’s Data Loggin’ Contest: Bluetooth Gardening, Counting Cups, And Predicting Rainfall

The votes for Hackaday’s Data Loggin’ Contest have been received, saved to SD, pushed out to MQTT, and graphed. Now it’s time to announce the three projects that made the most sense out of life’s random data and earned themselves a $100 gift certificate for Tindie, the Internet’s foremost purveyor of fine hand-crafted artisanal electronics.

First up, and winner of the Data Wizard category, is this whole-garden soil moisture monitor by [Joseph Eoff]. You might not realize it from the picture at the top of the page, but lurking underneath the mulch of that lovely garden is more than 20 Bluetooth soil sensors arranged in a grid pattern. All of the data is sucked up by a series of solar powered ESP32 access points, and ultimately ends up on a Raspberry Pi by way of MQTT. Here, custom Python software generates a heatmap that indicates possible trouble spots in the garden. With its easy to understand visualization of what’s happening under the surface, this project perfectly captured the spirit of the category.

Next up is the Nespresso Shield from [Steadman]. This clever gadget literally listens for the telltale sounds of the eponymous coffee maker doing its business to not only estimate your daily consumption, but warn you when the machine is running low on water. The clever non-invasive method of pulling data from a household appliance made this a strong entry for the Creative Genius category.

Last but certainly not least is this comprehensive IoT weather station that uses machine learning to predict rainfall. With crops and livestock at risk from sudden intense storms, [kutluhan_aktar] envisions this device as an early warning for farmers. The documentation on this project, from setting up the GPRS-enabled ESP8266 weather station to creating the web interface and importing all the data into TensorFlow, is absolutely phenomenal. This project serves as a invaluable framework for similar DIY weather detection and prediction systems, which made it the perfect choice for our World Changer category.

There may have only been three winners this time around, but the legendary skill and creativity of the Hackaday community was on full display for this contest. A browse through the rest of the submissions is highly recommended, and we’re sure the creators would love to hear your feedback and suggestions in the comments.

Continue reading “Winners Of Hackaday’s Data Loggin’ Contest: Bluetooth Gardening, Counting Cups, And Predicting Rainfall”

Build Your Own Bluetooth Notification Ticker

Stock tickers were telegraph-based machines from the 19th century, and quickly fell by the wayside with the advent of computer replacements from the 1960s onwards. However, there’s something charming about small machines that deliver us paper strips of information – as demonstrated by this notification ticker from [DIYprojects] (Russian language, Google Translate link).

The heart of the build is an Arduino Mini, which receives the text content of smartphone notifications via a Bluetooth module hooked up to its serial port. The machine mounts a small roll of paper strip, which is pulled along by a stepper motor fitted with a rubber earbud for added grip. The pen is moved along the paper by a servo using a Lambda mechanism to allow it to move nicely perpendicular to the paper’s direction of travel. Instead of moving the pen up and down, the paper is pushed into the pen by a solenoid mounted underneath.

It’s a fun little project, and one we can imagine being great for educational purposes. It teaches skills required to work with steppers, servos, solenoids and Bluetooth, all at once. It’s a little different from some other pen plotter designs, but the ticker format has a certain charm that’s hard to replicate any other way. Video after the break.

Continue reading “Build Your Own Bluetooth Notification Ticker”

Ferrofluid Dances In Custom Bluetooth Speaker

Ferrofluids, as the name implies, are liquids that respond to magnetic fields. They were originally developed for use by NASA as rocket fuel but are available to the general public now for anyone who wants to enjoy their unique properties. For [Dakd Jung], that meant building a special chamber into a Bluetooth speaker that causes the ferrofluid inside to dance along with the rhythm of the music.

This project isn’t quite as simple as pushing the ferrofluid container against a speaker, though. A special electromagnetic device similar to a speaker was used specifically to manipulate the fluid, using a MSGEQ7 equalizer to provide the device with only a specific range of frequencies best tailored for the fluid’s movement. The project includes two speakers for playing the actual music that point upward, and everything is housed inside of a 3D-printed case. There were some additional hurdles to overcome as well, like learning that the glass needed a special treatment to keep the ferrofluid from sticking to it.

All in all it’s a unique project that not only brings sound to a room but a pleasing physical visualization as well. Being able to listen to music or podcasts on a portable speaker, rather than the tinny internal speakers of a phone or laptop, is the sort of thing you think you can live without until you get used to having higher quality sound easily and in every place you go. And, if there’s a way to improve on that small but crucial foundation with something like a dancing ferrofluid that moves with the music the speaker is playing, then we’re going to embrace that as well.

Bluetooth PS3 Controllers Modernize The Nintendo GameCube

While the PlayStation 3 and Gamecube come from opposing sides of the aisle, and in fact aren’t even from the same generation of hardware, this DIY adapter built by [Jeannot] allows Nintendo’s console to use Sony’s Bluetooth controllers with surprisingly little fuss. This might seem unnecessary given the fact that Nintendo put out an official wireless controller for the system, but given how expensive they are on the second-hand market, you’d need to have pretty deep pockets for an untethered four-player session. Plus, there’s plenty of people who simply prefer the more traditional control layout offered by Sony’s pad.

The internals of the 3D printed adapter are actually quite straightforward, consisting of nothing more than an Arduino Nano wired to a MAX3421E USB host shield. A common USB Bluetooth adapter is plugged into the shield, and the enclosure has an opening so it can be swapped out easily; which is important since that’s what the PS3 controller is actually paired to.

A Gamecube controller extension cable must be sacrificed to source the male connector, though if you wanted to fully commit to using Bluetooth controllers, it seems like you could turn this into an internal modification fairly easily. That would let you solder right to the controller port’s pads on the PCB, cutting the bill of materials down ever further.

[Jeannot] says the firmware is the product of combining a few existing libraries with a fair amount of experimentation, but as demonstrated in the video below, it works well enough to navigate the console’s built-in menu system. Future enhancements include getting the stick sensitivity closer to the values for the Gamecube’s standard controller, and adapting the code to work with newer PS4 controllers.

We’ve seen a fair amount of projects dedicated to the Gamecube’s official wireless controller, the Wavebird. From reverse engineering its RF communications protocol to adapting it for use with Nintendo’s latest console. There’s little debate that the Wavebird is a fine piece of engineering, but with how cheap and plentiful PlayStation controllers are, they tend to be the one hackers reach for when they want a dual-stick interface for their latest creation.

Continue reading “Bluetooth PS3 Controllers Modernize The Nintendo GameCube”

A Crash Course On Sniffing Bluetooth Low Energy

Bluetooth Low Energy (BLE) is everywhere these days. If you fire up a scanner on your phone and walk around the neighborhood, we’d be willing to bet you’d pick up dozens if not hundreds of devices. By extension, from fitness bands to light bulbs, it’s equally likely that you’re going to want to talk to some of these BLE gadgets at some point. But how?

Well, watching this three part video series from [Stuart Patterson] would be a good start. He covers how to get a cheap nRF52480 BLE dongle configured for sniffing, pulling the packets out of the air with Wireshark, and perhaps most crucially, how to duplicate the commands coming from a device’s companion application on the ESP32.

Testing out the sniffed commands.

The first video in the series is focused on getting a Windows box setup for BLE sniffing, so readers who aren’t currently living under Microsoft’s boot heel may want to skip ahead to the second installment. That’s where things really start heating up, as [Stuart] demonstrates how you can intercept commands being sent to the target device.

It’s worth noting that little attempt is made to actually decode what the commands mean. In this particular application, it’s enough to simply replay the commands using the ESP32’s BLE hardware, which is explained in the third video. Obviously this technique might not work on more advanced devices, but it should still give you a solid base to work from.

In the end, [Stuart] takes an LED lamp that could only be controlled with a smartphone application and turns it into something he can talk to on his own terms. Once the ESP32 can send commands to the lamp, it only takes a bit more code to spin up a web interface or REST API so you can control the device from your computer or other gadget on the network. While naturally the finer points will differ, this same overall workflow should allow you to get control of whatever BLE gizmo you’ve got your eye on.

Continue reading “A Crash Course On Sniffing Bluetooth Low Energy”

Get Apple To Track Your Bluetooth Devices For You

Apple’s “Find My” service allows users to track their missing devices by leveraging a worldwide network of location-aware iGadgets. With millions of iPhones and Macs out in the wild listening for the missing device’s Bluetooth advertisements and relaying their findings to the Cupertino Mothership, it’s a highly effective way of tracking hardware so long as it stays in relatively urban areas. Unfortunately, the system is completely proprietary and non-Apple devices aren’t invited to play.

Or at least, that used to be the case. A project recently released by the [Secure Mobile Networking Lab] called OpenHaystack demonstrates how generic devices can utilize Apple’s Find My network by mimicking the appropriate Bluetooth Low Energy (BLE) broadcasts. Currently they have a firmware image for the BBC micro:bit, as well as a Python script for Linux, that will allow you to spin up an impromptu Find My target. But the team has also published all the information required to implement similar functionality on other BLE-capable devices and microcontrollers, so expect the list of supported hardware to grow shortly.

Diagram showing how the Apple Find My system worksSomewhat ironically, while OpenHaystack allows you to track non-Apple devices on the Find Me tracking network, you will need a Mac computer to actually see where your device is. The team’s software requires a computer running macOS 11 (Big Sur) to run, and judging by the fact it integrates with Apple Mail to pull the tracking data through a private API, we’re going to assume this isn’t something that can easily be recreated in a platform-agnostic way. Beyond the occasional Hackintosh that might sneak in there, it looks like Tim Cook might have the last laugh after all.

It’s not immediately clear how difficult it will be for Apple to close this loophole, but the talk of utilizing a private API makes us think there might be a built-in time limit on how long this project will be viable. After all, Big Tech doesn’t generally approve of us peons poking around inside their machinations for long. Though even if Apple finds a way to block OpenHaystack, it’s expected the company will be releasing “AirTags” sometime this year which will allow users to track whatever objects they like through the system.

AM/FM Radio Gets Bluetooth Upgrade

For many commercial broadcast radio has lost its luster, leaving an unknowable number of perfectly serviceable AM/FM radios to lie dormant. But they don’t have to. As [Dan Gebhardt] shows in his recent hack, integrating a Bluetooth audio receiver into portable radio may be easier than you think.

For this project, [Dan] wanted to make sure no original functionality was lost. The radio still functions on the AM/FM bands, but now with the flip of a switch, he can listen to the audio coming his way courtesy of a Apt-X low-latency Bluetooth receiver. It sounds like the link is quick enough that he can even use this as a wireless speaker for watching TV, which isn’t always possible with cheaper chipsets that introduce a noticeable lag.

Isolating the audio trace.

The trick was to track down the receiver IC, a Silicon Labs chip similar to ones we’ve seen used in a few DIY radio projects previously. A peek at the datasheet told him which pins were carrying the audio signal, and after following them around the board, he found a convenient spot to cut the trace before it went into the volume control. From there is was just a matter of wiring in a SPDT slide switch that allowed him to select which device was passed through to the radio’s audio hardware.

While he had everything apart, [Dan] exorcised the Apt-X’s original 300 mAh LiPo pouch and replaced it with a DC-DC converter connected to the radio’s battery compartment. This allows him to run all of the hardware off of the same set of rechargeable NiMH cells, and also provides considerably improved runtime for the Bluetooth receiver.

Now as for physically integrating the Apt-X into the case of the radio…well, what can we say? [Dan] admits it’s a bit rough, but then the point was never to enter the thing into beauty pageants. It works well enough for his purposes, and in the end that’s all that matters.