A Power Button For Raspberry Pi, Courtesy Of Device Tree Overlays

As a standard feature of the Linux kernel, device tree overlays (DTOs) allow for easy enabling and configuration of features and drivers, such as those contained within the standard firmware of a Raspberry Pi system. Using these DTOs it’s trivial to set up features like as a soft power-off button, triggering an external power supply and enable drivers for everything from an external real-time clock (RTC) to various displays, sensors and audio devices, all without modifying the operating system or using custom scripts.

It’s also possible to add your own DTOs to create a custom overlay that combines multiple DTO commands into a single one, or create a custom device tree binary (DTB) for the target hardware. Essentially this DTB is loaded by the Linux kernel on boot to let it know which devices are connected and their configuration settings, very similar to what the BIOS component with x86-based architectures handles automatically.

Ultimately, the DTB concept and the use of overlays allow for easy configuration of such optional devices and GPIO pin settings, especially when made configurable through a simple text file as on the Raspberry Pi SBC platform.

Continue reading “A Power Button For Raspberry Pi, Courtesy Of Device Tree Overlays”

Building 7-Segment Displays With LEGO

Utter the words “7-segment display” amongst hackers and you’ll typically get people envisaging the usual LED and LCD versions that we all come across in our daily lives. However, mechanical versions do exist, and [ord] has assembled a couple of designs of their very own.

The first uses what appears to be two LEGO motors to drive individual segments of the display. Each segment consists of a pair of yellow axles thrust up through a black grid to represent parts of the number, as well as a minus sign as needed. [ord] demonstrates it by using it to display angle data from a tilt sensor inside a LEGO Powered Up controller brick. Further photos on Flickr show the drive system from underneath.

The second design relies upon a drum-like mechanism that seems to only be capable of displaying numbers sequentially. It works in a manner not dissimilar to that of a player piano. The required movements to display each number are programmed into sequences with Technic pins sticking out of beams in a drum assembly driven by either a hand crank or motor. It’s again demonstrated by [ord] using it to display angular data.

While it’s unlikely we’ll see LEGO displays used as angle of attack meters in light aircraft, you could do so if you wanted a cheap and unreliable device that is likely to fall to pieces if unduly jostled. In any case, it’s not the first time we’ve seen LEGO 7-segment displays, but it’s always great to see a new creative take on an existing concept. We’d love to see such a design implemented into a fancy clock, or perhaps even a news ticker running on a 16-segment version. Video after the break.

Continue reading “Building 7-Segment Displays With LEGO”

PiSpy, The Camera Setup Designed To Make Biological Observations Better

Back in grad school, we biology students were talking shop at lunch one day. We “lab rats” were talking about the tools of the trade, which for most of us included things like gel electrophoresis, restriction endonucleases, and polymerase chain reaction. Not to be left out, a fellow who studied fire ants chimed in that his main tool was a lawn chair, which he set up by a Dumpster in a convenience store parking lot to watch a fire ant colony. Such is the glamor of field biology.

Ants on the march. Tough luck for the crickets, though.

What our colleague [Mike] wouldn’t have given for something like PiSpy, the automated observation tool for organismal biology by [Greg Pask] of Middlebury College, et al. As discussed in the preprint abstract, an automated imaging platform can be key to accurate observations of some organisms, whose behavior might be influenced by the presence of a human observer, or even a grad student in a lawn chair. Plus, PiSpy offers all the usual benefits of automation — it doesn’t get tired, it doesn’t need to take bathroom breaks, and it can even work around the clock. PiSpy is based on commonly available components, like laser-cut plywood and a Raspberry Pi and camera, so it has the added advantage of being cheap and easy to produce — or at least it will be when the Pi supply picks back up again. PiSpy takes advantage of the Pi’s GPIO pins to enable triggering based on external events, or controlling peripherals like lights or servos.

While built for biological research, there are probably dozens of uses for something like PiSpy. It could be handy for monitoring mechanical testing setups, or perhaps for capturing UI changes during embedded device development. Or you could just use it to watch birds at a feeder. The source is all open-sourced, so whatever you make of PiSpy is up to you — even if it’s not for watching fire ants.

Careful Cuts Lets Logger Last A Year On A Coin Cell

Coin cells are great for backup power for things like real-time clocks, or even for powering incredibly small mechanical devices like watches. But for something like a data logger, running on a standard microcontroller, most people would reach for a lithium cell of some sort. Not so with this build, though, which squeezes every joule of energy from a coin cell in order to run a data logger for a full year.

Won’t be needing that anymore.

Most of the design and engineering required to improve the efficiency of the data logger involve standard practices for low-power devices such as shutting off unnecessary components and putting the device to sleep when not actively running, but this build goes far beyond that. The Vcc pin on the RTC was clipped which disables some of its internal logic but still keeps its basic functionality intact.

All of the voltage regulators were removed or disabled in favor of custom circuitry that doesn’t waste as much energy. The status and power LEDs were removed where possible, and the entire data logger is equipped with custom energy-efficient code as well.

If you’re starting a low-power project, even one that isn’t a datalogger, it’s worth checking out this build to see just how far you can go if you’re willing to hack at a PCB with cutting tools and a soldering iron. As to why this data logger needed such a low power requirement, it turns out it’s part of a kit being used in classrooms and using a coin cell brought the price of the entire unit down tremendously. Even if you have lithium cells on hand, though, it’s still worthwhile to check out the low power modes of your microcontroller.

Thanks to [Adrian] for the tip!

Review: DevTerm Linux Handheld Has Retro-Future Vibe

It’s not every day that an open-source, portable Linux handheld computer gets announced, so I couldn’t resist placing an order for the DevTerm by ClockworkPi back when we first learned about the stylish little terminal, which includes a 1280 x 480 screen (double-wide VGA) and a modular little thermal printer.

Of course, the global semiconductor shortage combined with shipping slowdowns led to delays, but things did ultimately come together for the project. I’ve always been a sucker for small-format machines, especially ones that come as a well-designed kit, and that means I can tell you all about what it was like to put it together and turn it on. There’s a lot to look at, so let’s get started.

Continue reading “Review: DevTerm Linux Handheld Has Retro-Future Vibe”

Hair Today Gone Tomorrow: Four Men Go To Fix A Wafer Prober

I’ve had a fairly varied early part of my career in the semiconductors business: a series of events caused me to jump disciplines a little bit, and after one such event, I landed in the test engineering department at Philips Semiconductors. I was tasked with a variety of oddball projects, supporting engineering work, fixing broken ATE equipment, and given a absolute ton of training: Good times!  Here’s a story that comes straight off the oddball pile.

We needed to assemble a crack team of experts and high-tail it to deepest darkest Wales, and sort out an urgent production problem. The brief was that the wafer probe yield was disastrous and the correlation wafer was not giving the correct results. Getting to the punch line is going to require some IC fabrication background, but if you like stories about silicon, or red-bearded test engineers, it’s worth it. Continue reading “Hair Today Gone Tomorrow: Four Men Go To Fix A Wafer Prober”

3D Printed Radiation Shields Get Put To The Test

Don’t get too excited, a 3D printed radiation shield won’t keep you from getting irradiated during WWIII. But until the Doomsday Clock starts clanging its midnight bell, you can use one to improve the accuracy of your homebrew weather monitoring station by keeping the sun from heating up your temperature sensor. But how much does it help, and what material should you load up in your extruder to make one? Those questions, and more, are the topic of a fascinating whitepaper included in the upcoming volume of HardwareX.

Design and Implementation of 3-D Printed Radiation Shields for Environmental Sensors not only tests how effective these low-cost shields are when compared to an uncovered sensor, but addresses specific concerns in regards to leaving 3D printed parts out in the elements. Readers who’ve squirted out a few rolls worth of the stuff will know that common polylactic acid (PLA) filament, while easy to work with and affordable, isn’t known for its resilience. In fact, one of the advertised properties of the renewable plastic is that it’s biodegradable (theoretically, at least), so leaving it outside for any length of time sounds like it’s bound to go poorly.

PLA’s mechanical strength dropped rapidly.

To make a long story short, it does. While the team demonstrated that the PLA printed radiation shield absolutely helped preserve the accuracy of the temperature and humidity sensors mounted inside of it, the structure itself began to deform rapidly from UV exposure. Further tests determined that the mechanical strength of the PLA showed a notable reduction in as little as 30 days, and a sharp decline after 90 days.

Luckily, there was more than one plastic horse in the race. In addition to the PLA printed shield, the team also tested a version printed in acrylonitrile styrene acrylate (ASA) which fared far better. There was no visible deformation of the shield, and after 90 days, the reduction in mechanical strength was negligible. It even performed a bit better when it came to shielding the temperature sensor, which the team believes may be due to the material’s optical transmission properties.

So there you have it: a 3D printed radiation shield will absolutely improve the accuracy of your weather sensors, but if you want it to last outside, PLA just isn’t going to cut it. On the other hand, you could also save yourself a whole lot of time by just using a stack of plant saucers. Whatever works.

Thanks to [tahnok] for the tip.