Fight Disease With A Raspberry Pi

Despite the best efforts of scientists around the world, the current global pandemic continues onward. But even if you aren’t working on a new vaccine or trying to curb the virus with some other seemingly miraculous technology, there are a few other ways to help prevent the spread of the virus. By now we all know of ways to do that physically, but now thanks to [James Devine] and a team at CERN we can also model virus exposure directly on our own self-hosted Raspberry Pis.

The program, called the Covid-19 Airborne Risk Assessment (CARA), is able to take in a number of metrics about the size and shape of an area, the number of countermeasures already in place, and plenty of other information in order to provide a computer-generated model of the number of virus particles predicted as a function of time. It can run on a number of different Pi hardware although [James] recommends using the Pi 4 as the model does take up a significant amount of computer resources. Of course, this only generates statistical likelihoods of virus transmission but it does help get a more accurate understanding of specific situations.

For more information on how all of this works, the group at CERN also released a paper about their model. One of the goals of this project is that it is freely available and runs on relatively inexpensive hardware, so hopefully plenty of people around the world are able to easily run it to further develop understanding of how the virus spreads. For other ways of using your own computing power to help fight Covid, don’t forget about Folding@Home for using up all those extra CPU and GPU cycles.

An AMD GPU plugged into an ATX PSU and Raspberry PI CM4

Raspberry Pi With Some Serious Graphical Muscle

[Jeff Geerling] routinely tinkers around with Raspberry Pi compute module, which unlike the regular RPi 4, includes a PCI-e lane. With some luck, he was able to obtain an AMD Radeon RX 6700 XT GPU card and decided to try and plug it into the Raspberry Pi 4 Compute Module.

While you likely wouldn’t be running games with such as setup, there are many kinds of unique and interesting compute-based workloads that can be offloaded onto a GPU. In a situation similar to putting a V8 on a lawnmower, the Raspberry Pi 4 pulls around 5-10 watts and the GPU can pull 230 watts. Unfortunately, the PCI-e slot on the IO board wasn’t designed with a power-hungry chip in mind, so [Jeff] brought in a full-blown ATX power supply to power the GPU. To avoid problems with differing ground planes, an adapter was fashioned for the Raspberry Pi to be powered from the PSU as well. Plugging in the card yielded promising results initially. In particular, Linux detected the card and correctly mapped the BARs (Base Address Register), which had been a problem in the past for him with other devices. A BAR allows a PCI device to map its memory into the CPU’s memory space and keep track of the base address of that mapped memory range.

AMD kindly provides Linux drivers for the kernel. [Jeff] walks through cross-compiling the kernel and has a nice docker container that quickly reproduces the built environment. There was a bug that prevented compilation with AMD drivers included, so he wasn’t able to get a fully built kernel. Since the video, he has been slowly wading through the issue in a fascinating thread on GitHub. Everything from running out of memory space for the Pi to PSP memory training for the GPU itself has been encountered.

The ever-expanding capabilities of the plucky little compute module are a wonderful thing to us here at Hackaday, as we saw it get NVMe boot earlier this year. We’re looking forward to the progress [Jeff] makes with GPUs. Video after the break.

Continue reading “Raspberry Pi With Some Serious Graphical Muscle”

We’d Like, Totally Carry This Retro Boombox Cyberdeck On Our Shoulder

Cyberdeck. For those of a certain age, the ‘deck’ part conjures visions of tape decks, be they cassette, 8-track, or quarter-inch, and we seriously have to wonder why haven’t seen this type of build before. But here we are, thanks to [bongoplayingmonkey]’s Sanyo Cyberdeck, a truly retro machine built into a cool old boombox.

According to [bongoplayingmonkey], this was a unicorn of a build wherein everything more or less came together, soup to nuts. Right now, [bongoplayingmonkey] is cracking the nuts of a few remaining issues, like calibrating the analog VU meter that inspired the build in the first place. The plan is to use that to indicate various analog things such as battery power and the WiFi signal.

Luckily, everything survived the teardown, parts-wise. That huge knob has a new life has a rotary encoder for scrolling and middle click. And the VU meter made it too, thank Zod. This baby has full mouse controls thanks to a PS/2 joystick and a pair of vintage momentary buttons are likely chrome and bakelite to round out the look.

So apparently [bongoplayingmonkey]’s personal jury is still out on whether this is a blasphemous build or a divine ‘deck, but we say one thing is for sure: this is definitely art.

Unfortunately, the cassette deck didn’t survive. Otherwise, we might have to question its categorization — is it still a boombox if the tape deck works? This, however, is definitely a laptop that grew up to be a cyberdeck.

Thanks for the tip, [Blasto]!

What’s Cooler Than A 7-Segment Display? A 7200-Segment Display!

If you look around your desk right now, odds are you’ll see a 7-segment display or two showing you some vital information like the time or today’s weather. But think of how much information you could see with over 1,100 digits, like with [Chris Combs’] 7200-segment display.

For [Chris], this project started the same way that many of our projects start; finding components that were too good of a deal to pass up on. For just “a song or two plus shipping”, he was the proud owner of two boxes of 18:88 7-segment displays, 500 modules in total. Rather than sitting and using up precious shelf space, [Chris] decided to turn them into something fancy he could hang on the wall.

the 7200 segment display grayscaling to show the time
The IS31FL3733 can produce 8 levels of dimming 8-bit PWM, allowing [Chris] to display in grayscale
The first challenge was trying to somehow get a signal to all of the individual segments. Solutions exist for running a handful of displays in one device, but there are certainly no off-the-shelf solutions for this many. Even the possible 16 addresses of the IS31FL3733 driver IC [Chris] chose for this project were not enough, so he had to get creative. Fearing potential capacitance issues with simply using an i2C multiplexer, he instead opted to run 3 different i2C busses off of a Raspberry Pi 4, to interface with all 48 controllers.

The second challenge was how to actually wire everything up. The finished display comes out to 26 inches across by 20.5 inches tall, much too large for a single PCB. Instead, [Chris] opted to design a series of self-contained panels, each with 6 of the display modules and an IS31FL3733 to drive them. While the multiplexing arrangement did leave space for more segments on each panel, he opted to go for this arrangement as it resulted in a nice, clean, 4:3 aspect ratio for the final display.

The end result was a unique and beautiful piece, which Chris titled “One-to-Many”. He uses it to display imagery and art related to the inevitability of automation, machines replacing humans, and other “nice heartwarming stuff like that”, as he puts it. There’a video after the break, but if you are interested in seeing the display for yourself, it will be on display at the VisArt’s Concourse Gallery in Rockville, MD from September 3 to October 17, 2021. More info on [Chris’s] website.

This isn’t [Chris’s] first adventure in using 7-segment displays in such a unique way, click here to read about the predecessor to this project that we covered last year.

Continue reading “What’s Cooler Than A 7-Segment Display? A 7200-Segment Display!”

3d printed GLaDOS home assistant

GLaDOS Voice Assistant Passive-Aggressively Automates Home

With modern voice assistants we can tell a computer to play our favorite music, check the weather, or turn on a light. Like many of us, [nerdaxic] gave in to the convenience and perceived simplicity of various home automation products made by Google and Amazon. Also like many of us, he found it a bit difficult to accept the privacy implications that surround such cloud connected devices. But after selling his Home and Echo, [nerdaxic] missed the ability to control his smart home by voice command. Instead of giving in and buying back into the closed ecosystems he’d left behind, [nerdaxic] decided to open his home to a murderous, passive aggressive, sarcastic, slightly insane AI: GLaDOS, which you can see in action after the break.

Using open source designs from fellow YouTube creator [Mr. Volt], [nerdaxic] 3d printed as much of the GLaDOS animatronic model as he was able to, and implemented much of the same hardware to make it work. [nerdaxic] put more Open Source Software to use and has created a functional but somewhat limited home AI that can manage his home automation, give the weather, and tell jokes among other things. GLaDOS doesn’t fail to deliver some great one liners inspired by the original Portal games while heeding [nerdaxic]’s commands, either.

A ReSpeaker from Seeed Studio cleans up the audio sent to a Raspberry Pi 4, and allows for future expansion that will allow GLaDOS to look in the direction of the person speaking to it. With its IR capable camera, another enhancement will allow GlaDOS to stare at people as they walk around. That’s not creepy at all, right? [nerdaxic] also plans to bring speech-to-text processing in-house instead of the Google Cloud Speech-To-Text API used in its current iteration, and he’s made everything available on GitHub so that you too can have a villainous AI hanging on your every word.

Of course if having GLaDOS looming isn’t enough, you could always build a functional life size Portal turret or listen to the radio on your very own Portal Radio.

Continue reading “GLaDOS Voice Assistant Passive-Aggressively Automates Home”

Breadboard containing speech synthesis chip

RPi Python Library Has Retro Chiptunes And Speech Covered

The classic SP0256-AL2 speech chip has featured a few times on these pages, and if you’ve not seen the actual part before, you almost certainly have heard the resulting audio output. The latest Python library from prolific retrocomputing enthusiast [Nick Bild] brings the joy of the old chip to the Raspberry Pi platform, with an added extra trick; support for the venerable AY-3-8910 sound generator as well.

The SP0256-AL2 chip generates vaguely recognisable speech using the allophone system. Allophones are kind of like small chunks of speech audio which when reproduced sequentially, result in intelligible phonemes that form the basis of speech. The chip requires an external device to feed it the allophones at a regular rate, which is the job of his Gi-Pi library.

This speech synthesis technology is based on Linear-predictive coding, which is used to implement a human vocal tract model. This is the same coding method utilized by the first generation of GSM digital mobile phones, implementing a system known as Full-Rate. Both an LPC encoder and an LPC decoder are present on the handset. The LPC encoder takes audio in from the user, breaks it into the tiny constituent parts of speech, and then simply sends a code representing the audio block, but not the actual audio. Obviously there are a few more parameters sent as well to adjust the model at the receiving side. The actual decoding side is therefore not all that dissimilar to what the AY-3-8910 and related devices are doing, except you the user have to create the list of audio blocks up-front and feed the chip at the rate it demands.

Continue reading “RPi Python Library Has Retro Chiptunes And Speech Covered”

Espresso maker with added nixie flair

AI Powered Coffee Maker Knows A Bit Too Much About You

People keep warning that Skynet and the great robot uprising is not that far away, what with all this recent AI and machine-learning malarky getting all the attention lately. But we think going straight for a terminator robot army is not a very smart approach, not least due to a lack of subtlety. We think that it’s a much better bet to take over the world one home appliance at a time, and this AI Powered coffee maker might just well be part of that master plan.

Raspberry Pi Zero sitting atop the custom nixie tube driver PCB
PCB stackup with Pi Zero sat atop the driver / PSU PCBs

[Mark Smith] has taken a standard semi-auto espresso maker and jazzed it up a bit, with a sweet bar graph nixie tube the only obvious addition, at least from the front of the unit. Inside, a Raspberry Pi Zero sits atop his own nixie tube hat and associated power supply. The whole assembly is dropped into a 3D printed case and lives snuggled up to the water pump.

The Pi is running a web application written with the excellent Flask framework, and also an additional control application written in python. This allows the user to connect to the machine via Ethernet and see its status. The smarts are in the form of a simple self-grading machine learning algorithm, that takes a time series as an input (in this case when you take your shots of espresso) and after a few weeks of data, is able to make a reasonable prediction as to when you might want it in the future. It then automatically heats up in time for you to use the machine, when you usually do, then cools back down to save energy. No more pointless wandering around to see if the machine is hot enough yet – as you can just check the web page and see from the comfort of your desk.

But that’s not all [Mark] has done. He also improved the temperature control of the water boiler, and added an interlock that prevents the machine from producing a shot until the water temperature is just so. Water level is indicated by the glorious bar graph nixie tube, which also serves a few other user indication duties when appropriate. All in all a pretty sweet build, but we do add a word of caution: If your toaster starts making an unreasonable number of offers of toasted teacakes, give it a wide berth.