Review: IoT Data Logging Services With MQTT

For the last few months, I had been using Sparkfun’s Phant server as a data logger for a small science project. Unfortunately, they’ve had some serious technical issues and have discontinued the service. Phant was good while it lasted: it was easy to use, free, and allowed me to download the data in a CSV format. It shared data with analog.io, which at the time was a good solution for data visualization.

While I could continue using Phant since it is an open-source project and Sparkfun kindly releases the source code for the server on Github, I thought it might be better to do some research, see what’s out there. I decided to write a minimal implementation for each platform as an interesting way to get a feel for each. To that end, I connected a DHT11 temperature/humidity sensor to a NodeMCU board to act as a simple data source.

Continue reading “Review: IoT Data Logging Services With MQTT”

Coffee, Conspiracy, And Citizen Science: An Introduction To Iodometry

I take coffee very seriously. It’s probably the most important meal of the day, and apparently the largest overall dietary source of antioxidants in the United States of America. Regardless of whether you believe antioxidants have a health effect (I’m skeptical), that’s interesting!

Unfortunately, industrially roasted and ground coffee is sometimes adulterated with a variety of unwanted ‘other stuff’: corn, soybeans, wheat husks, etc. Across Southeast Asia, there’s a lot of concern over food adulteration and safety in general, as the cost-driven nature of the market pushes a minority of vendors to dishonest business practices. Here in Vietnam, one of the specific rumors is that coffee from street vendors is not actually coffee, but unsafe chemical flavoring agents mixed with corn silk, roasted coconut husks, and soy. Local news reported that 30% of street coffee doesn’t even contain caffeine.

While I’ve heard some pretty fanciful tales told at street side coffee shops, some of them turned out to be based on some grain (bean?) of truth, and local news has certainly featured it often enough. Then again, I’ve been buying coffee at the same friendly street vendors for years, and take some offense at unfounded accusations directed at them.

This sounds like a job for science, but what can we use to quantify the purity of many coffee samples without spending a fortune? As usual, the solution to the problem (pun intended) was already in the room:

Continue reading “Coffee, Conspiracy, And Citizen Science: An Introduction To Iodometry”

Surfboard Industry Wipes Out, Innovation Soon Follows

For decades, Gordon Clark and his company Clark Foam held an almost complete monopoly on the surfboard blank market. “Blanks” are pieces of foam with reinforcing wood strips (called “stringers”) in a rough surfboard shape that board manufacturers use to make a finished product, and Clark sold almost every single one of these board manufacturers their starting templates in the form of these blanks. Due to environmental costs, Clark suddenly shuttered his business in 2005 with virtually no warning. After a brief panic in the board shaping industry, and a temporary skyrocketing in price of the remaining blanks in existence, what followed next was rather surprising: a boom of innovation across the industry.

Continue reading “Surfboard Industry Wipes Out, Innovation Soon Follows”

Fail Of The Week — Accidental Demagnetization

There’s a trick in the world of plastic enclosures. The threaded insert is a small cylinder of metal with threads on the inside and a rough edge on the outside. To make a plastic part with a hole for securely connecting bolts that can be repeatedly screwed without destroying the plastic, you take the threaded insert and press it (usually with the help of a soldering iron to heat the insert)  into a hole that’s slightly smaller than the insert. The heat melts the plastic a little bit and allows for the insert to go inside. Then when it cools the insert is snugly inside the plastic, and you can attach circuit boards or other plastic parts using a bolt without stripping the screw or the insert. We’ve seen Hackaday’s [Joshua Vasquez] installing threaded inserts with an iron, as well as in a few other projects.

This trick is neat. And I’ve now proven that it does not work with neodymium magnets.

Continue reading “Fail Of The Week — Accidental Demagnetization”

This Power Strip Is A Fire Starter

A few weeks ago I needed a power strip in my home office. The outlet in question is located behind a filing cabinet so it would need a low profile plug. I jumped on Amazon to buy a surge suppressor strip. That’s when I noticed strips with rotating plugs. I’ve always had some apprehensions about plugs like that, though I could never quite put my finger on why. Looking at the reviews on this particular plug, I found some scary issues. Photos of melted plugs, melted outlets, and cries of “fire hazard”. So I did what any crazy hacker would do – bought two power strips. One with a fixed right angle plug to use in my office, and one with a rotating plug to tear down.

Failed plug – from Amazon reviews

Surge suppressors, power strips, outlet strips, they have many names. Underwriter’s Laboratories (UL) calls them “Relocatable power taps”. They all have several outlets, most have a circuit breaker of some sort inside, and some have circuits for surge suppression. These are some of the most common devices to find in the modern home. Many of our houses were designed and built before surround sound, cable boxes, computers, modems, cell phone chargers, tablet chargers, and all our other modern conveniences. There weren’t as many electrical loads, so the houses didn’t have many outlets. Power strips solve this problem.

After a couple of days, I had my strips in hand. I expected the plug to rotate once – maybe 270 degrees. That would indicate there were wires connecting the rotating head to rest of the plug. Not so – this plug would spin round and round all day long.

Continue reading “This Power Strip Is A Fire Starter”

Hyperspectral Imaging – Seeing The Unseeable

They say that a picture is worth a thousand words. But what is a picture exactly? One definition would be a perfect reflection of what we see, like one taken with a basic camera. Our view of the natural world is constrained to a bandwidth of 400 to 700 nanometers within the electromagnetic spectrum, so our cameras produce images within this same bandwidth.

Image via Cosmos Magazine.

For example, if I take a picture of a yellow flower with my phone, the image will look just about how I saw it with my own eyes. But what if we could see the flower from a different part of the electromagnetic spectrum? What if we could see less than 400 nm or greater than 700 nm? A bee, like many other insects, can see in the ultraviolet part of the spectrum which occupies the area below 400 nm. This “yellow” flower looks drastically different to us versus a bee.

In this article, we’re going to explore how images can be produced to show spectral information outside of our limited visual capacity, and take a look at the multi-spectral cameras used to make them.  We’ll find that while it may be true that an image is worth a thousand words, it is also true that an image taken with a hyperspectral camera can be worth hundreds of thousands, if not millions, of useful data points. Continue reading “Hyperspectral Imaging – Seeing The Unseeable”

A Passive Mixer’s Adventure Through Product Development

The year was 2014, and KORG’s volca line of pint-sized synthesizers were the latest craze in the music world. Cheap synths and drum machines were suddenly a reality, all in a backpack-friendly form factor. Now practically anyone could become an electronic music sensation!

I attended a jam with friends from my record label, and as was the style at the time, we all showed up with our latest and greatest gear. There was the microKORG, a MiniNova, and a couple of guitars, but all attention was on the volcas, which were just so much fun to pick up and play with.

There was just one problem. Like any game-changing low-cost hardware, sacrifices had been made. The volcas used 3.5mm jacks for audio and sync pulses, and the initial lineup came with a bassline, lead, and drum synth. Syncing was easy, by daisy chaining cables between the boxes, but if you wanted to record or mix, you’d generally need to stack adapters to get your signals in a more typical 6.5mm TS format used by other music hardware.

After mucking around, I did some research on what other people were doing. Most were suffering just like we were, trying to patch these little machines into full-sized mixing desks. It seemed like overkill — when you just want to muck around, it’s a bit much to drag out a 24 channel powered mixer. I wanted a way to hook up 3 of these machines to a single set of headphones and just groove out.

To solve this problem, we needed a mixer to match the philosophy of the volcas; simple, accessible, and compact. It didn’t need to be gold-plated or capable of amazing sonic feats, it just had to take a few 3.5mm audio sources, and mix them down for a pair of headphones.

I’d heard of people using headphone splitters with mixed results, and it got me thinking about passive mixing. Suddenly it all seemed so clear — I could probably get away with a bunch of potentiometers and some passives and call it a day! With a friend desperate to get their hands on a solution, I decided to mock up a prototype and took it round to the studio to try out.

Continue reading “A Passive Mixer’s Adventure Through Product Development”