Hackaday Links Column Banner

Hackaday Links: August 25, 2024

The Sun has been remarkably active lately, so much so that it might have set a new sunspot record. According to the sun watchers at the Space Weather Prediction Center, on August 8, the Solar Dynamics Observatory snapped a picture that was positively bedazzled with sunspots. Counting methods vary, but one count put the sunspot number at a whopping 337 that day. That would be the largest number since 2001, during the peak of Solar Cycle 23. The sunspot number is highly correlated with solar storms and coronal mass ejections; more spots mean more magnetic activity and more chance for something to go very, very wrong. We’ve been pretty lucky so far with Solar Cycle 25; despite being much more active than the relatively lazy Cycle 24 and much stronger than predicted, most of this cycle’s outbursts have been directed away from Earth or only dealt us a glancing blow. Seeing all those spots, though, makes us think it’s only a matter of time before we get hit with something that does more than make pretty lights.

Continue reading “Hackaday Links: August 25, 2024”

Hackaday Links Column Banner

Hackaday Links: July 7, 2024

Begun, the Spectrum Wars have. First, it was AM radio getting the shaft (last item) and being yanked out of cars for the supposed impossibility of peaceful coexistence with rolling broadband EMI generators EVs. That battle has gone back and forth for the last year or two here in the US, with lawmakers even getting involved at one point (first item) by threatening legislation to make terrestrial AM radio available in every car sold. We’re honestly not sure where it stands now in the US, but now the Swiss seem to be entering the fray a little up the dial by turning off all their analog FM broadcasts at the end of the year. This doesn’t seem to be related to interference — after all, no static at all — but more from the standpoint of reclaiming spectrum that’s no longer turning a profit. There are apparently very few analog FM receivers in use in Switzerland anymore, with everyone having switched to DAB+ or streaming to get their music fix, and keeping FM transmitters on the air isn’t cheap, so the numbers are just stacked against the analog stations. It’s hard to say if this is a portent of things to come in other parts of the world, but it certainly doesn’t bode well for the overall health of terrestrial broadcasting. “First they came for AM radio, and I did nothing because I’m not old enough to listen to AM radio. But then they came for analog FM radio, and when I lost my album-oriented classic rock station, I realized that I’m actually old enough for AM.”

Continue reading “Hackaday Links: July 7, 2024”

Gamma Ray Spectroscopy The Pomelo Way

Depending on the circumstances you find yourself in, a Geiger counter can be a tremendously useful tool. With just a click or a chirp, it can tell you if any invisible threats lurk. But a Geiger counter is a “yes or no” instrument; it can only tell you if an ionizing event occurred, revealing nothing about the energy of the radiation. For that, you need something like this gamma-ray spectroscope.

Dubbed the Pomelo by [mihai.cuciuc], the detector is a homebrew solid-state scintillation counter made from a thallium-doped cesium iodide crystal and a silicon photomultiplier. The scintillator is potted in silicone in a 3D printed enclosure, to protect the hygroscopic crystal from both humidity and light. There’s also a temperature sensor on the detector board for thermal compensation. The Pomelo Core board interfaces with the physics package and takes care of pulse shaping and peak detection, while a separate Pomelo Zest board has an ESP32-C6, a small LCD and buttons for UI, SD card and USB interfaces, and an 18650 power supply. Plus a piezo speaker, because a spectroscope needs clicks, too.

The ability to determine the energy of incident photons is the real kicker here, though. Pomelo can detect energies from 50 keV all the way up to 3 MeV, and display them as graphs using linear or log scales. The short video below shows the Pomelo in use on samples of radioactive americium and thorium, showing different spectra for each.

[mihai.cuciuc] took inspiration for the Pomelo from this DIY spectrometer as well as the CosmicPi.

Continue reading “Gamma Ray Spectroscopy The Pomelo Way”

An Improved Spectrometer, No Lasers Required

Here at Hackaday, we love it when someone picks up the ball from a previous project and runs with it. That’s what we’re all about, really — putting out cool projects that just might stimulate someone else to extend and enhance it, or even head off in an entirely new direction. That’s how the state of the art keeps moving.

This DIY spectrometer project is a fantastic example of that ethos. It comes to us from [Michael Prasthofer], who was inspired by [Les Wright]’s PySpectrometer, a simple device cobbled together from a pocket spectroscope and a PiCam. As we noted at the time, [Les] put a lot of the complexity of his instrument in the software, but that doesn’t mean there wasn’t room for improvement.

[Michael]’s goals were to make his spectrometer a little easier to build, and to improve the calibration process and overall accuracy. To help with the former, he went with software correction of the color filter array on his Fuji X-T2. This has the advantage of not requiring a high-power laser and precision micropositioner to ablate the CFA, and avoids potentially destroying an expensive camera. For the latter, [Michael] delved deep into the theory behind spectroscopy and camera optics to develop a process for correlating the intensity of light along the spectrum with the specific wavelength at that location. He also worked a little machine learning into the process, training a network to optimize the response functions.

The result is pretty accurate spectra with no lasers required for calibration. The video below goes into a lot of detail and ends up being a good introduction to some of the basics of spectroscopy, along with the not-so-basics.

Continue reading “An Improved Spectrometer, No Lasers Required”

Seeing Fireworks In A Different Light

If you’re worried that [Roman Dvořák]’s spectroscopic analysis of fireworks is going to ruin New Year’s Eve or the Fourth of July, relax — the science of this build only adds to the fun.

Not that there’s nothing to worry about with fireworks, of course; there are plenty of nasty chemicals in there, and we can say from first-hand experience that getting hit in the face and chest with shrapnel from a shell is an unpleasant experience. [Roman]’s goal with this experiment is pretty simple: to see if it’s possible to cobble together a spectrograph to identify the elements that light up the sky during a pyrotechnic display. The camera rig was mainly assembled from readily available gear, including a Chronos monochrome high-speed camera and a 500-mm telescopic lens. A 100 line/mm grating was attached between the lens and the camera, a finding scope was attached, and the whole thing went onto a sturdy tripod.

From a perch above Prague on New Year’s Eve, [Roman] collected a ton of images in RAW12 format. The files were converted to TIFFs by a Python script and converted to video by FFmpeg. Frames with good spectra were selected for analysis using a Jupyter Notebook project. Spectra were selected by moving the cursor across the image using slider controls, converting pixel positions into wavelengths.

There are some optical improvements [Roman] would like to make, especially in aiming and focusing the camera; as he says, the dynamic and unpredictable nature of fireworks makes them difficult to photograph. As for identifying elements in the spectra, that’s on the to-do list until he can find a library of spectra to use. Or, there’s always DIY Raman spectroscopy. Continue reading “Seeing Fireworks In A Different Light”

The Laptop Every British Kid Would Have Wanted For Christmas 1983

How can we convey to a world in which a 64-bit laptop can be a near-throwaway item, just how amazing a miniature laptop version of the 1980s Sinclair ZX Spectrum could have been? perhaps we don’t need to, because here in 2023 there’s a real one for all middle-aged geeks who had the original to drool over.

8-bit home computers were super-exciting for the kids of the day, but they were in no way portable and relied on a TV, frequently the family model in the living room. It’s safe to say that a portable version of one of those home computers, not in an Osborne-style luggable case but in a clamshell palmtop, would have been mind-blowing, so four decades later we’re fascinated by [Airrr17]’s portable Sinclair ZX Spectrum.

At its heart is a dev board using one of the STM32F4 series microcontrollers, and running the Spectrum as an emulator. Alongside that is an LCD, and perhaps what is physically the best part of this, a Spectrum keyboard complete with BASIC keyword decals, made with large-button tactile switches that have we think, printed paper on top. Add in a small lithium-polymer cell and associated electronics in a cute little palmtop case, and it’s about as good a portable Sinclair as we could have imagined. All the details can be found in a GitHub repository, and as if that weren’t enough there’s an assembly video we’ve placed below the break.

Continue reading “The Laptop Every British Kid Would Have Wanted For Christmas 1983”

A Pico-Based ZX Spectrum Emulator

The ZX Spectrum was a popular computer of the 8-bit era. Now, it’s possible to emulate this machine on a microcontroller so cheap that it’s literally been given away on the front cover of magazines. Yes, we’re talking about the Pico ZX Spectrum project.

The project consists of all the necessary code to emulate a ZX Spectrum upon the hardware of the RP2040 microcontroller that makes up the Raspberry Pi Pico. The community has then taken this code and run with it, using it as the basis for all manner of different ZX Spectrum builds. If so desired, you can go barebones and use the Pico to run a ZX Spectrum off a breadboard with HDMI video output. Alternatively, you can build something like the PicoZX from [Bobricius]. The handheld computer features a PCB-based housing, along with an LCD and an integrated keyboard. Other configurations support features like USB keyboards, VGA outputs, and working sound output.

It’s great to see a classic 8-bit computer reimagined in all kinds of new tribute form factors. The Spectrum was always beloved for its neat all-in-one design, and there are several modern remixes that riff on that theme. The fact that they can all be powered by a cheap single-board microcontroller is all the more astounding. Video after the break.

Continue reading “A Pico-Based ZX Spectrum Emulator”