A square PCB with a Raspberry Pi Pico mounted in the middle

Identify Radioactive Samples With This DIY Gamma-Ray Spectrometer

If you’re a radiation enthusiast, chances are you’ve got a Geiger counter lying around somewhere. While Geiger counters are useful to detect the amount of radiation present, and with a few tricks can also distinguish between the three types of radiation (alpha, beta and gamma), they are of limited use in identifying radioactive materials. For that you need a different instrument called a gamma-ray spectrometer.

Spectrometers are usually expensive and complex instruments aimed at radiation professionals. But it doesn’t have to be that way: physics enthusiast [NuclearPhoenix] has designed a hand-held gamma spectrometer that’s easy to assemble and should fit in a hobbyist budget. It outputs spectral plots that you can compare with reference data to identify specific elements.

A PCB with a sensor wrapped in black tape
The scintillator and sensor are wrapped in black tape to block out ambient light.

The heart of the device is a scintillation crystal such as thallium-doped sodium iodide which converts incoming gamma rays into visible light. The resulting flashes are detected by a silicon photomultiplier whose output is amplified and processed before being digitized by a Raspberry Pi Pico’s ADC. The Pico calculates the pulses’ spectrum and generates a plot that can be stored on its on-board flash or downloaded to a computer.

[NuclearPhoenix] wrote a convenient program to help analyze the output data and made all design files open-source. The hardest part to find will be the scintillation crystal, but they do pop up on auction sites like eBay now and then. We’ve featured an Arduino-based gamma spectrometer before; if you’ve always wanted to roll your own scintillators, you can do that too. Continue reading “Identify Radioactive Samples With This DIY Gamma-Ray Spectrometer”

Fireball-Flinging Figurine Feeds Fiction

If you’re writing a screenplay or novel, there will likely be points along the way at which you can’t get enough encouragement from friends and family. While kind words are kind, acts such as [scubabear]’s can provide a push like no other. By commissioning another 3D designer friend to model a character from the first friend’s screenplay so he could print and animate it, [scubabear] fed two birds with one scone, you might say.

Designer friend [Sean] modeled the mighty Braomar in Maya and Z-brush, and [scubabear] did test prints on a Formlabs Form2 as they went along to keep an eye on things. Eventually, they had a discussion about making space for wires and such, so [Sean] took to Blender to make Braomar hollow enough for wires, but not so empty that he would collapse under the stress of being (we presume) the main character.

Braomar stands upon a sigil that changes color thanks to an RGB LED ring in the base that’s driven by an Arduino Nano. A single pixel in the fireball is wired through Braomar’s body and flickers with the help of an addressable LED sequencer board.

Our favorite part of this build has to be the power scheme. Not content to have a wire running out from the base or even a remote control for power-draining concerns, [scubabear] used disc magnets in the base to switch on the 9 V battery when Screenplay Friend rotates it.

Of course, if you need inspiration to even thing about beginning to write a screenplay or novel, maybe you should lead with the maquette-building and then construct a story around your creation.


This project was an entry into the 2022 Sci-Fi Contest. Check out all of the winning entries here.

Linux Fu: The Infinite Serial Port

Ok, the title is a bit misleading. Like most things in life, it really isn’t infinite. But I’m going to show you how you can use a very interesting Linux feature to turn one serial port from a microcontroller into a bunch of virtual ports. In theory, you could create over 200 ports, but the reality is you will probably want to stick with fewer.

The feature in question is what’s known as pseudoterminal or sometimes a pty or pts. These special files were made to feed data to programs that expect to accept data from a terminal. The files provide two faces. To the client, it looks like any other terminal device. To the creator, though, it is just another file. What you write to that file goes to the fake terminal and you can read anything that is sent from the program connected to the terminal. You use these all the time, probably, without realizing it since running a shell under X Windows, for example, doesn’t attach to a real terminal, after all.

You could, of course, do the same trick with a composite USB device, assuming you have one. Also assuming you can find a working driver and get it working. However, many microcontrollers have a serial port — even one with a USB converter built-in — but fewer have full-blown USB hardware. Even the ones that do are often at odds with strange drivers on the PC side. Serial ports work and work well even on the simplest microcontrollers.

The Plan

The plan is simple enough. A Linux program listens to a real serial port and watches for special character sequences in the data stream. Those sequences will allow you to switch data so that the data stream will go to a particular terminal. Data coming back from the terminals will go to the real serial port after sending a sequence that identifies its source.

Continue reading “Linux Fu: The Infinite Serial Port”

A Kurzweil K2500 piano

Patching The Kurzweil K2500 Synthesizer

Despite being a computer with some extra chips, synthesizers today are still quite expensive. They used to cost far more, but we tend to think of them as instruments instead of computers. And just because it is an instrument doesn’t mean someone like [Peter Sobot] can’t crack it open and patch the OS inside.

The synth in question is a Kurzweil K2500, released in 1996 with a Motorola 68000. Rather than directly start pulling out parts on the kitchen table, [Peter] began by doing some online research. The K2500 operating system is still available online, and a quick pass through Ghidra showed some proper instructions, meaning the file likely wasn’t encrypted.

He found the part of the code that reads in a new firmware file and checks the header and checksum. Certain functions were very high in memory, and a quick consultation of the service manual yielded an answer: it was the volatile RAM. With that tidbit, [Peter] was able to find the function that copied chunks of the new ROM file to RAM and start decoding the file correctly. [Peter] changed a few strings, made sure the checksums were correct, and he was ready to flash. The actual tweaks that [Peter] are made are left up to the reader, but the techniques to get a working decompiled build and a viable ROM image to flash apply to many projects. One benefit is now the K2000 simulates correctly in MAME due to his spelunking. He has his flashing script up on GitHub for the curious.

Ghidra is perfect for this kind of thing. We’ve seen people tweaking their water coolers with it. It opens to door towards tweaking anything to your liking.

Ask Hackaday: Repair Café Or Not?

A huge part of the work our community does, aside from making things and doing a lot of talking about the things we’d like to make, involves repair. We have the skills to fix our own stuff when it breaks, we can fix broken stuff that other people throw out when it breaks, and we can fix broken stuff belonging to other people. As our consumer society has evolved around products designed to frustrate repairs and facilitate instead the sale of new replacements for broken items this is an essential skill to keep alive; both to escape having to incessantly replace our possessions at the whim of corporate overlords, and to fight the never-ending tide of waste.

Repair Cafés: A Good Thing

A German repair cafe
A German repair café. , Redaktion NdW, CC BY 2.0

So we repair things that are broken, for example on my bench in front of me is a formerly-broken camera I’ve given a new life, on the wall in one of my hackerspaces is a large screen TV saved from a dumpster where it lay with a broken PSU, and in another hackerspace a capsule coffee machine serves drinks through a plastic manifold held together with cable ties.

We do it for ourselves, we do it within our communities, and increasingly, we do it for the wider community at large. The Repair Café movement is one of local groups who host sessions at which they repair broken items brought in by members of the public, for free. Their work encompasses almost anything you’d find in a home, from textiles and furniture to electronics, and they are an extremely good cause that should be encouraged at all costs.

For all my admiration for the Repair Café movement though, I have chosen not to involve myself in my local one. Not because they aren’t a fine bunch of people or because they don’t do an exceptionally good job, but for a different reason. And it symbolically comes back to an afternoon over thirty years ago, when sitting in a university lab in Hull, I was taught how to wire a British mains plug. Continue reading “Ask Hackaday: Repair Café Or Not?”

Moon moving from inside a large glass sphere into screens of two vintage television sets

Blending Pepper’s Ghost, Synths, And Vintage TVs

We were recently tipped off to the work of [Joshua Ellingson], and digging in, we found an extensive collection of art and ongoing experiments, with synthesizers deforming and driving old black-and-white clips played on vintage television sets, objects jumping from screens into the real world and back, and cathode ray tube oscilloscopes drawing graphics in the air (loud sound!) (nitter). It’s recommended that you check out the short showcase videos we embedded below before you continue reading, because transcribing these visuals into words won’t do them justice.

In case you’re not up for a video, however, we shall try transcribing them anyway. Animals, shapes and figures appear in the real world, bound by glass spheres and containers, using the technique known as Pepper’s Ghost. A variety of screens used for creating that illusion – sometimes it’s a tablet, and sometimes it’s an old television set rested upside down on top of a glass aquarium. Vintage television sets are involved quite often in [Ellingson]’s experiments, typically found playing movie scenes and clips from their appropriate eras, or even used as one of the locations that a Pepper’s Ghost-enchanted object could move into — firmly a part of the same imaginary world turned real.

It’s not always that things move from a TV screen into their glass boundary, gaining an extra dimension in the process, but when it happens, the synchronization is impeccable. All of that is backed by — and usually controlled by — Moog synthesizer sounds, knob turns driving video distortions or aspects of an object movement. Not all of his clips have synthesizers, old TVs, or Pepper’s Ghost illusion in them, but every experiment of his contains at least two out of these three, working in unison to create impressions. And as much as the art value is undeniable, [Ellingson] also adds a whole lot of hacker value for us to take away!

[Ellingson] understands what goes into building optical illusions like Pepper’s Ghost — using a variety of different glassware, from Erlenmeyer flasks to teapots, producing a consistent and ongoing stream of new ideas with unique spins on them. His aim is to share and create beyond what his art can achieve, which is why he encourages us to try it out ourselves — with this one minute video of a quick Pepper’s Ghost build, using nothing but a generic tablet, an emptied-out plastic snow globe and a piece of cheap transparency film used for school projectors. If you want to go beyond, he’s made an extensive tutorial on illusions of the kind he does, their simplicities and complexities, and all the different ways you can build one.

We all benefit when an artist finds a technology and starts playing with it, closing the divide between technology and art – and by extension, the divide between technology and nature. Sometimes, it’s flowing light art installations where you are a boulder in route of plankton’s movement, other times, it’s through-hole component-packed printed circuit birds that sing not unlike the non-printed-circuit ones, or manipulation of CRT displays with function generator-driven coils to offset the beam and turn the image into a pattern of lines.

Continue reading “Blending Pepper’s Ghost, Synths, And Vintage TVs”

Wearable Electronics Takes The 3D Printing Route

There was a time when a cheap 3D printer was almost certain to mean an awful kit of parts, usually a so-called “Prusa i3”, which was of course as far away in quality from the machines supplied by [Josef Průša] himself as it’s possible to get. But as Chinese manufacturers such as Creality have brought machines with some quality and relaibility into the budget space these abominations have largely been crowded out. There are still cheap 3D printers to be found though, and it’s one of these that [3D Printing Professor] has mounted on his wrist (Nitter) for the ultimate in portable manufacturing.

The Easythreed K7 is a novel take on a 3D printer that positions the device more as a child’s toy than a desktop manufacturing solution. It’s somewhat limited in its capabilities by its tiny size but by all accounts it’s a usable machine, and at around $100 USD it’s about the cheapest 3D printer for sale on the likes of AliExpress. The wearable mount is probably best described as a forearm mount rather than a wrist mount, but has provision for a battery pack and a small roll of filament. And this contraption is claimed to work, but we maybe would think before committing to a day-long print with it.

This may be the smallest wearable 3D printer we’ve shown you so far, but it’s not the first. That achievement goes to Shenzhen maker [Naomi Wu], who strapped one on her back way back in 2017.

Thanks [J. Peterson] for the tip!