Supercon: Ruth Grace Wong And Firmware From The Firehose

Firmware and software are both just code, right? How different could the code that runs Internet-scale distributed web stuff be from the code that runs a tiny microcontroller brain inside a personal hydroponics device? Night and day!

Ruth Grace Wong works in the former world, but moonlights as a manufacturing engineer with some friends. Their product had pre-existing firmware that contained (at least) one bug, and Ruth’s job was to find it. The code in question was written by the Chinese PCB engineer, who knew the electronics intimately but who had no software background, providing Ruth an opportunity to jump head-first into the rawest of raw embedded programming. Spoiler alert: she found the bug and learned a lot about firmware along the way. This talk follows her along the adventure.

“The code is very well documented, in Chinese” but the variable names are insanely non-descriptive. Similarly, while the PCB engineer knows full well what a 24C02 is, if you’re a software geek that might as well be Chinese. As you’d expect, web searches came to the rescue on both fronts.

The bug ended up hiding in a logical flaw in the PWM-setting code inside an interrupt service routine, and it kept the fan from ever coming full on. Once found, it was easily fixed. But getting to the point where you understand the codebase deeply enough to know where to look is four-fifths of the battle. Heck, setting up the toolchain alone can take a day or two.

If you’re a fellow software type, Ruth’s talk (embedded below) will give you a quick glimpse into the outer few layers of the onion that is embedded firmware development, from a familiar viewpoint. Give her quick and value-packed talk a watch! Grizzled hardware veterans will nod along, and maybe even gain a little insight into how our code looks to “them”.

Continue reading “Supercon: Ruth Grace Wong And Firmware From The Firehose”

Hackaday Podcast 007: Everything Microcontrollers, Deadly Clock Accuracy, CT X-Rays, Mountains Of E-Waste

Elliot Williams and Mike Szczys look at all that’s happening in hackerdom. This week we dive deep into super-accurate clock chips, SPI and microcontroller trickery, a new (and cheap) part on the microcontroller block, touch-sensitive cloth, and taking a home X-ray to the third dimension. We’re saying our goodbyes to the magnificent A380, looking with skepticism on the V2V tech known as DSRC, and also trying to predict weather with automotive data. And finally, what’s the deal with that growing problem of electronic waste?

Links for all discussed on the show are found below. As always, join in the comments below as we’ll be watching those as we work on next week’s episode!

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 007: Everything Microcontrollers, Deadly Clock Accuracy, CT X-Rays, Mountains Of E-Waste”

What Happens When You Cross A Brick With A Pixel?

There are a great many technologies we use to display information every day. We’re all familiar with plasma displays and LCDs, and then there’s more esoteric hardware like the split flap displays on municipal buses and around train stations.  However, Breakfast have been working on something that turns architectural features into a display at the same time. Enter Brixels.

The name is a portmanteau of brick and pixel, indicating that each individual brick can be independently addressed as a visual element. A Brixel installation consists of a series of columns, stacked with Brixel elements. Each individual brick on the column contains a stepper motor which can set the rotational position of the brick. The outer appearance of the individual bricks is highly customizable, as the motor hardware is integrated into the column itself. A Linux machine is used as a primary controller, which passes commands to each column’s controller over RS485, and the column controllers then pass instructions to each individual Brixel.

The Brixels are capable of continuous 360 degree rotation and also contain LEDs for various illumination based effects. The largest current installation is the Brixel Mirror, standing at 18 feet wide, 6 feet high, and containing 540 individually addressable Brixels. These are built with one half covered in a mirror finish, and combined with a depth-sensing camera for all kinds of fun interactive effects.

Brixels show that architectural features don’t have to be static – they can become kinetic, living things that can be aesthetically beautiful and also useful. Breakfast are known for their installations which use modern electronics to push the limits in their artistic installations. Their work on high-speed flip dot displays is particularly impressive. Video after the break.

[Thanks to Sheldon for the tip!]

Continue reading “What Happens When You Cross A Brick With A Pixel?”

Drops Of Jupyter Notebooks: How To Keep Notes In The Information Age

Our digital world is so much more interactive than the paper one it has been replacing. That becomes very obvious in the features of Jupyter Notebooks. The point is to make your data beautiful, organized, interactive, and shareable. And you can do all of this with just a bit of simple coding.

We already leveraged computer power by moving from paper spreadsheets to digital spreadsheets, but they are limited. One thing I’ve seen over and over again — and occasionally been guilty of myself — is spreadsheet abuse. That is, using a spreadsheet program to do something I probably ought to write a program to do. For those times that you want something quick but want something more than a spreadsheet, you should check out Jupyter Notebooks. The system is most commonly associated with Python, but it isn’t Python-specific. There are over 100 languages supported — many community-developed. You can even install a C++ interpreter backend for it. Because of the client/server architecture, it is very simple to share notebooks with other users.

You can — in theory — use Jupyter for anything you could use Python for. In practice, it seems to get a lot of workout with people analyzing large data sets, doing machine learning, and similar tasks.

The Good: Simple, Powerful, Extensible

The idea is simple. Think of a Markdown-enabled web page that can connect to a backend (a kernel, in Jupyter-speak). The backend can run on your machine or remotely and will support some kind of language — often Python. The document has cells that line up vertically (like a single wide spreadsheet column). For example, here’s a simple notebook I created to explain how a bunch of sine waves add up to a square wave:

Continue reading “Drops Of Jupyter Notebooks: How To Keep Notes In The Information Age”

12 Year Old Builds Successful Fusor At Home

Nuclear fusion, as a method of power generation, continues to elude humanity. It promises cheap, virtually limitless energy, if only we could find a way to achieve it. On the other hand, achieving nuclear fusion of a few atoms just for the fun of it is actually quite doable, even in the home lab. [Jackson Oswalt] is one of the youngest to pull it off, having built a working fusor at home at the age of 12.

The fusor consists of a cross-shaped chamber, which is pumped down to a high vacuum to enable the fusion reaction to occur. Deuterium is then pumped into the chamber, and confined by an applied electric field from a power supply in the vicinity of 50 kV. With the right combination of geometry, vacuum and other factors, it’s possible to fuse atoms and observe the characteristic glow of the reaction taking place.

In order to be recognised as having achieved fusion by the Open Source Fusor Research Consortium, one must typically have proof of the release of neutrons from the fusion reaction. [Jackson] showed this with a neutron detector setup, by inserting and removing it during a run to demonstrate the fusor was the source of the signal. Photos of the glowing fusor don’t go astray, either, and [Jackson] was more than happy to deliver.

We’ve seen fusor builds before – [Erik]’s build got him into the Plasma Club back in 2016.

[via Fox News]

Radiation Detector Eschews Tubes, Uses Photodiode

When the topic is radiation detection, thoughts turn naturally to the venerable Geiger-Müller tube. It’s been around for ages, Russian surplus tubes are available for next to nothing, and it’s easy to use. But as a vacuum tube it can be somewhat delicate, and the high voltages needed to run it can be a little on the risky side.

Luckily, there are other ways to see what’s going on in the radioactive world, like this semiconductor radiation detector. [Robert Gawron] built it as a proof-of-concept after having built a few G-M tube detectors before. His solid-state design relies on a reverse-biased photodiode conducting when ionizing radiation hits the P-N junction. The tiny signal is amplified by a pair of low-noise op-amps and output to a BNC connector. The sensor’s analog output is sent to an oscilloscope whose trigger out is connected to a Nucleo board for data acquisition. The Nucleo is in turn connected to a Raspberry Pi for totalizing and logging. It’s a complicated chain, but the sensor appears to work, even detecting alpha emissions from thoriated TIG electrodes, a feat we haven’t been able to replicate with our G-M tube counter.

[Robert]’s solid-state detector might not be optimal, but it has promise. And we have seen PIN diodes used as radiation detectors before, too.

[via Dangerous Prototypes]

Noise: It Turns Out You Need It

We don’t know whether quantum physics proves the universe is truly a strange place or that we are living in a virtual reality simulation, but we know it turns a lot of common sense into garbage. Take noise, for example. Noise — as in random electrical noise — is bad, right? We spend a lot of time designing to minimize noise. Researchers in Austria, Germany, and Australia recently published a paper that shows that noise can actually improve the flow of energy. While the paper is behind a paywall, the Focus article is available and, of course, you can probably find a copy of the paper if you want to read the entire thing.

The paper, titled “Environment-Assisted Quantum Transport in a 10-qubit Network” uses trapped calcium atoms to study an effect suspected of being a key factor in high-efficiency energy transfer such as the transfer observed in optical fibers and photosynthesis.

Continue reading “Noise: It Turns Out You Need It”