New Part Day: Arduino Goes Pro With The Portenta H7

The Consumer Electronics Show in Las Vegas is traditionally where the big names in tech show off their upcoming products, and the 2020 show was no different. There were new smartphones, TVs, and home automation devices from all the usual suspects. Even a few electric vehicles snuck in there. But mixed in among flashy presentations from the electronics giants was a considerably more restrained announcement from a company near and dear to the readers of Hackaday: Arduino is going pro.

While Arduino has been focused on the DIY and educational market since their inception, the newly unveiled Portenta H7 is designed for professional users who want to rapidly develop robust hardware suitable for industrial applications. With built-in wireless hardware and the ability to run Python and JavaScript out of the box, the powerful dual-core board comes with a similarly professional price tag; currently for preorder at $99 USD a pop, the Portenta is priced well outside of the company’s traditional DIY and educational markets. With increased competition from other low-cost microcontrollers, it seems that Arduino is looking to expand out of its comfort zone and find new revenue streams.

Continue reading “New Part Day: Arduino Goes Pro With The Portenta H7”

Automate Your Life With Node-RED (Plus A Dash Of MQTT)

For years we’ve seen a trickle of really interesting home automation projects that use the Node-RED package. Each time, the hackers behind these projects have raved about Node-RED and now I’ve joined those ranks as well.

This graphic-based coding platform lets you quickly put together useful operations and graphic user interfaces (GUIs), whether you’re the freshest greenhorn or a seasoned veteran. You can use it to switch your internet-connected lights on schedule, or at the touch of a button through a web-app available to any device on your home network. You can use it as an information dashboard for the weather forecast, latest Hackaday articles, bus schedules, or all of them at once. At a glance it abstracts away the complexity of writing Javascript, while also making it simple to dive under hood and use your 1337 haxor skills to add your own code.

You can get this up and running in less than an hour and I’m going to tackle that as well as examples for playing with MQTT, setting up a web GUI, and writing to log files. To make Node-RED persistent on your network you need a server, but it’s lean enough to run from a Raspberry Pi without issue, and it’s even installed by default in BeagleBone distributions. Code for all examples in this guide can be found in the tutorial repository. Let’s dive in!

Continue reading “Automate Your Life With Node-RED (Plus A Dash Of MQTT)”

Habitable Exoplanets Hack Chat

Join us on Wednesday, January 15 at noon Pacific for the Habitable Exoplanets Hack Chat with Alberto Caballero!

Many of the major scientific achievements of the last 100 years or so have boiled down to problems of picking out a signal from the noise. Think about analyzing the human genome, for instance: we each have something like two meters of DNA coiled up inside each cell in our body, and yet teasing out the information in a single gene had to wait until we developed sufficiently sophisticated methods like PCR and CRISPR.

Similarly, albeit on the other end of the scale, the search for planets beyond our solar system wasn’t practical until methods and instruments that could measure the infinitesimal affect a planet’s orbit on its star were developed. Once that door was unlocked, reports of exoplanets came flooding in, and Earth went from being a unique place in the galaxy to just one of many, many places life could possibly have gotten a foothold. And now, the barrier for entry to the club of planet hunters has dropped low enough that amateur astronomers are getting in on the action.

Alberto Caballero is one such stargazer, and he has turned his passion for astronomy into an organized project that is taking a good, hard look at some of our nearest stellar neighbors in the hope of finding exoplanets in the habitable zone. The Habitable Exoplanet Hunting Project is training the instruments in 33 observatories around the globe on ten stars within 100 light-years, hoping to detect the faint signal that indicates an orbiting planet. They hope to add to the list of places worthy of exploration, both from Earth via optical and radio telescopes, and perhaps, someday, in person.
Continue reading “Habitable Exoplanets Hack Chat”

Why Do Resistors Have A Color Code?

One of the first things you learn in electronics is how to identify a resistor’s value. Through-hole resistors have color codes, and that’s generally where beginners begin. But why are they marked like this? Like red stop signs and yellow lines down the middle of the road, it just seems like it has always been that way when, in fact, it hasn’t.

Before the 1920s, components were marked any old way the manufacturer felt like marking them. Then in 1924, 50 radio manufacturers in Chicago formed a trade group. The idea was to share patents among the members. Almost immediately the name changed from “Associated Radio Manufacturers” to the “Radio Manufacturer’s Association” or RMA.  There would be several more name changes over the years until finally, it became the EIA or the Electronic Industries Alliance. The EIA doesn’t actually exist anymore. It exploded into several specific divisions, but that’s another story.

This is the tale of how color bands made their way onto every through-hole resistor from every manufacturer in the world.

Continue reading “Why Do Resistors Have A Color Code?”

Hackaday Links Column Banner

Hackaday Links: January 12, 2020

Nothing ruffles feathers more reliably than a software company announcing changes to its licensing terms. And so it goes with AutoDesk, who recently announced that Eagle would no longer be available as a standalone product and would now be bundled with Fusion 360. It looks like there’s still a free option for personal use, which is good even if it limits designs to two schematic sheets, two board layers, and 80 cm² board area. And perhaps this means there will be a Linux version of Fusion 360 too.

With the Y2K bug now twenty years in the rearview mirror, it’s entertaining to look back at that time and all the hype that surrounded it. Usually we talk about the effort that went into fixing vulnerable systems, but do we ever talk about the recipes of Y2K? The Advent of Computing podcast recently did an episode that gives a great background of the Y2K bug, plus discusses what people were planning to do for food after the bug detonated all the world’s nukes when the new millennium rolled around. Pantries stocked with canned goods, wood stoves to cook on and keep warm by when the powerplants all self-destructed on January 1 – it was all part of the vibe at the time.

We suppose when you put 60 birds into orbit at a time, it doesn’t take long to make a sizable impact on the planet’s constellation of satellites. Still, it came as a surprise that SpaceX was able to claim the title of world’s largest commercial satellite constellation after just three Starlink launches. We guess the operative term is “commercial” here, since some governments probably have far more satellites in service than the 182 Starlinks that have been launched so far. That’s a far cry from the 11,000 plus eventually predicted to form the Starlink constellation, but it’s already having an impact.

As a proud Idahoan, I feel personally triggered by what’s billed as the world’s first smart potato. True, I live in the part of the state with the trees and the bears, not the spuds, but still, it’s right there on our license plates. While clearly tongue-in-cheek, the Smart Potato pokes fun of our official State Vegetable, which I find beyond the pale. Seems like anything can be crowdfunded these days.

Speaking of which, check out Kohler’s Alex-connected smart toilet. For a mere $7,000 you can have a toilet that does everything a regular, boring old toilet does, but with lights. In fairness, the value of a good bidet can’t be overstated, but the ability to talk to your toilet and have it talk back seems a little on the iffy side. Perhaps teaming it up with the Charmin Poop-Bot, a self-balancing robot that connects to your phone and brings you a roll of toilet paper if you find yourself without a square to spare.

And finally, drummer Neil Peart died this week at the far-too-young age of 67. While there’s probably a fair number of Rush fans in the core hackaday demographic, there’s no hack or other tie-ins here. I’m just sad about it and wanted to share the news.

This Week In Security: Camera Feeds, Python 2, FPGAs

Networked cameras keep making the news, and not in the best of ways. First it was compromised Ring accounts used for creepy pranks, and now it’s Xiaomi’s stale cache sending camera images to strangers! It’s not hard to imagine how such a flaw could happen: Xiaomi does some video feed transcoding in order to integrate with Google’s Hub service. When a transcoding slot is re-purposed from one camera to another, the old data stays in the buffer until it is replaced by the new camera’s feed. The root cause is probably the same as the random images shown when starting some 3D games.

Python is Dead, Long Live Python

Python 2 has finally reached End of Life. While there are many repercussions to this change, the security considerations are important too. The Python 2 environment will no longer receive updates, even if a severe security vulnerability is found. How often is a security vulnerability found in a language? Perhaps not very often, but the impact can be far-reaching. Let’s take, for instance, this 2016 bug in zipimport. It failed to sanitize the header of a ZIP file being processed, causing all the problems one would expect.

It is quite possible that because of the continued popularity and usage of Python2, a third party will step in and take over maintenance of the language, essentially forking Python. Unless such an event happens, it’s definitely time to migrate away from Python2.
Continue reading “This Week In Security: Camera Feeds, Python 2, FPGAs”

Hackaday Podcast 049: Tiny Machine Learning, Basement Battery Bonanza, And Does This Uranium Feel Hot?

Hackaday editors Mike Szczys and Elliot Williams sort through all of the hacks to find the most interesting hardware projects you may have missed this week. Did you know you can use machine learning without a neural network? Here’s a project that does that on an ATtiny85. We also wrap our minds around a 3D-printed press brake, look at power-saving features of the ESP32 that make it better on a battery, and discuss the IoT coffee maker hack that’s so good it could be a stock feature. Plus we dive into naturally occurring nuclear reactors and admire the common, yet marvelous, bar code.

Take a look at the links below if you want to follow along, and as always tell us what you think about this episode in the comments!

Take a look at the links below if you want to follow along, and as always, tell us what you think about this episode in the comments!

Direct download (60 MB or so.)

Continue reading “Hackaday Podcast 049: Tiny Machine Learning, Basement Battery Bonanza, And Does This Uranium Feel Hot?”