Exploring Basement Humidity With A Raspberry Pi

Sometimes a hack isn’t about building something cool. Sometimes it’s more tactical, where the right stuff is cobbled together to gather the information needed to make decisions, or just to document some interesting phenomenon.

Take this impromptu but thorough exploration of basement humidity undertaken by [Matthias Wandel]. Like most people with finished basements in their homes, [Matthias] finds the humidity objectionable enough to warrant removal. But he’s not one to just throw a dehumidifier down there and forget about it. Seeking data on how well the appliance works, [Matthias] wired a DHT22 temperature/humidity sensor to a spare Raspberry Pi to monitor room conditions, and plugged the dehumidifier into a Kill-A-Watt with a Pi camera trained on the display to capture data on electrical usage.

His results were interesting. The appliance does drop the room’s humidity while raising its temperature, a not unexpected result given the way dehumidifiers work. But there was a curious cyclical spike in humidity, corresponding to the appliance’s regular defrost cycle driving moisture back into the room. And when the dehumidifier was turned off, room humidity gradually increased, suggesting an unknown source of water. The likely culprit: moisture seeping up through the concrete slab, or at least it appeared so after a few more experiments. [Matthias] also compared three different dehumidifiers to find the best one. The video below has all the details.

We always appreciate [Matthias]’ meticulous approach to problems like these, and his field expedient instrumentation. He seems to like his creature comforts, too – remember the target-tracking space heater from a few months back?

Continue reading “Exploring Basement Humidity With A Raspberry Pi”

LEDs And Pi Let You Virtually Decorate This Online Christmas Tree

Anyone who has decorated a Christmas tree knows that the lights are what really make the look. But no matter how many strings you wrap around it, there never seems to be enough. Plus the standard sets either sit there and do nothing, or just blink on and off at regular intervals. Yawn.

But hackers aim higher, and [leo.currie]’s interactive “paintable” Christmas tree takes the lighting game a step beyond. The standard light strings are replaced with strings of WS2811 RGB LEDs which are wired to an ESP8266. A camera connected to a Raspberry Pi is setup up to stream images of the tree to all and sundry on the Interwebz, but with a special twist: it also creates a map of every light on the tree. That allows the lights to be controlled individually in response to user inputs on a web page hosted on the Pi. The upshot is that you can paint the tree with any color you like in real time, or upload various animated GIFs to display on the tree. You can play with the tree directly, or watch a replay on the video below when that Pi inevitably gets hugged to death.

Imagine the possibilities with this. Why not hang a lot of LED strings vertically from the eaves of your house and make a huge, low-resolution display? We’ve featured plenty of large, interactive LED Christmas displays before, and we’d love to see what you come up with.

Continue reading “LEDs And Pi Let You Virtually Decorate This Online Christmas Tree”

Hackaday Belgrade: Luka Mustafa On Exploiting IoT Niches

Ecology is a strange discipline. At its most basic, it’s the study of how living things interact with their environment. It doesn’t so much seek to explain how life works, but rather how lives work together. A guiding principle of ecology is that life finds a way to exploit niches, subregions within the larger world with a particular mix of resources and challenges. It’s actually all quite fascinating.

But what does ecology have to do with Luka Mustafa’s talk at the 2018 Hackaday Belgrade Conference? Everything, as it turns out, and not just because Luka and his colleagues put IoT tools on animals and in their environments to measure and monitor them. It’s also that Luka has found a fascinating niche of his own to exploit, one on the edge of technology and ecology. As CEO of Institute IRNAS, a non-profit technology development group in Slovenia, Luka has leveraged his MEng degree, background in ham radio, and interest in LoRaWAN and other wide-area radio networks to explore ecological niches in ways that would have been unthinkable even 10 years ago, let alone in the days when animal tracking was limited by bulky radio collars.

Continue reading “Hackaday Belgrade: Luka Mustafa On Exploiting IoT Niches”

Raspberry Pi Tracks Starter Fermentation For Optimized Sourdough

Those of you who’ve never had a real sourdough have never had real bread. Good food fights back a little when you eat it, and a proper sourdough, with its crispy crust and tangy center, certainly fits the bill. Sourdough aficionados, your humble writer included, all have recipes that we pretend are ancient family secrets while in reality we’re all just guessing. Sourdough is partly science, partly art, but mostly delicious black magic.

In an effort to demystify his sourdough process, [Justin Lam] has gone digital with this image processing sourdough starter monitor. Sourdough breads are leavened not by the addition of brewers yeast (Saccharomyces cerevisiae), but by the inclusion of a starter,  a vibrant ecosystem of wild yeasts that is carefully nurtured, sometimes for years. Like any other living thing, it needs to be fed, a task that should happen at the point of maximum fermentation. Rather than guess when this might be, [Justin] used a Raspberry Pi Zero and PiCam to capture a time-lapse video of the starter as the beasties within give off their CO₂, thus expanding it up inside its container. A little Python does the work of thresholding and finding the top of the starter as it rises, allowing [Justin] to plot height of the starter over time. He found that peak height, and therefore peak fermentation, occurs about six hours after feeding. He has used his data to better inform his feeding schedule and to learn how best to revive neglected starters.

Surprisingly, this isn’t the first time we’ve discussed sourdough here. It seems that someone uses Git for iterative sourdough recipe development, and we once featured a foundry made from a pyrolyzed loaf of sourdough.

Continue reading “Raspberry Pi Tracks Starter Fermentation For Optimized Sourdough”

Solving A Rubik’s Cube With Just Two Motors

We’ve all seen videos of Rubik’s cube champions who can solve the puzzle in less than 5 seconds. And there are cube-twisting robots that can solve the cube even faster, often in under a second. This Rubik’s cube solver is not one of those robots, but it’s still pretty cool.

The reason we like Dexter Industries’ “BricKuber” is not for its lightning speed — it takes a minute or two to solve the puzzle. What we like is the simplicity of the approach to manipulating the cube. Built from LEGO parts, including Mindstorms motors and a BrickPi controller, the BricKuber uses only two motors to work the cube. One motor powers a square turntable upon which the cube sits, while the other powers an arm that does double duty — it either clamps the cube so the turntable can rotate a layer, or it rakes the cube to flip it 90° on the turntable. With a Pi Cam overhead, the rig images all six faces, calculates a solution to the cube, and then flips and twists the cube to solve it. It’s simultaneously mind-boggling and strangely relaxing to watch.

All the code is open source, and we strongly suspect a similar and possibly faster robot could be built without the LEGO parts. You might even be able to build one with popsicle sticks and an Arduino.

Continue reading “Solving A Rubik’s Cube With Just Two Motors”

A Raspberry Pi Rain Man In The Making

We see a lot of Raspberry Pis used to play games, but this is something entirely different from the latest RetroPie build. This Raspberry Pi is learning how to read playing cards, with the goal of becoming the ultimate card counting blackjack player.

If [Taxi-guy] hasn’t named his project Rain Man, we humbly suggest that he does so. Because a Pi that can count into a six-deck shoe would be quite a thing, even though it would never be allowed anywhere near a casino. Hurdle number one in counting cards is reading them, and [Taxi-guy] has done a solid job of leveraging the power of OpenCV on a Pi 3 for the task. His description in the video below is very detailed, but the approach is simple: find the cards in a PiCam image of the playing field using a combination of thresholding and contouring. Then, with the cards isolated, compare the rank and suit in the upper left corner of the rotated card image to prototype images to identify the card. The Pi provides enough horsepower to quickly identify an arbitrary number of non-overlapping cards; we assume [Taxi-guy] will have to address overlapping cards and decks that use different fonts at some point.

We’re keen to see this Pi playing blackjack someday. As he’s coding that up, he may want to look at algorithmic approaches to blackjack strategies, and the real odds of beating the house.

Continue reading “A Raspberry Pi Rain Man In The Making”

Get Up Close To Your Soldering With A Pi Zero Microscope

Do your Mark 1 Eyeballs no longer hold their own when it comes to fine work close up? Soldering can be a literal pain under such conditions, and even for the Elf-eyed among us, dealing with pads at a 0.4-mm pitch is probably best tackled with a little optical assistance. When the times comes for a little help, consider building a soldering microscope from a Pi Zero and a few bits and bobs from around the shop.

Affordable commercial soldering scopes aren’t terribly hard to come by, but [magkopian] decided to roll his own by taking advantage of the streaming capabilities of the Raspberry Pi platform, not to mention its affordability. This is a really simple hack — nothing is 3D-printed or custom milled. The stage base is a simple aluminum project box for heat resistance and extra weight, and the arm is a cheap plastic dial caliper. The PiCam is mounted to the sliding jaw of the caliper on a scrap of plastic ruler. The lens assembly of the camera needs to be hacked a little to change the focal length to work within 10 centimeters or so; alternatively, you could splurge and get a camera module with an adjustable lens. The Pi is set up for streaming, and your work area is presented in glorious, lag-free HDMI video.

Is [magkopian]’s scope going to give you the depth perception of a stereo microscope? Of course not. But for most jobs, it’ll probably be enough, and the fact that it can be built on the cheap makes it a great hack in our book.

Continue reading “Get Up Close To Your Soldering With A Pi Zero Microscope”