Happy Hacksgiving!*

It’s that time of year again where we count our blessings, and it’s absolutely the case that the global Hackaday community is one of them for me. How amazing is it that we have a world full of creative folks tweaking technology to do wondrous things that it was never meant to, digging deep into the projects, and undertaking daring feats of fanciful engineering for no other reason than the fun of it? (Rhetorical question. Very amazing.)

Everyone has their favorite niches, but for me, I’m particularly grateful for the developments in fast drive modes for e-paper screens of all shapes and sizes, the hacks to enable the SDR functionality hidden inside any number of wireless chips, and all of the work being done on new firmwares for commercial products that would otherwise be end-of-lifed or sent to the junk pile. These are hacks that have personally made my life a little bit better in many funny little ways, so thanks!

We wouldn’t know about these works if you all didn’t document them, share them, and tip us off to them. When you put your work out there, its effects are multiplied, and you have no way of knowing when your work will inspire someone else to push another boundary, and advance the state of the art.

So thanks for hacking, but more so, thanks for sharing and inspiring others. Because at the end of the day, the work is great, but the global community of hackers is even greater.

(*) Hacksgiving is not yet an officially recognized holiday. Do not substitute solder paste for gravy. In either direction.

Hackaday Podcast Episode 396: Robot Hands, The Inner Life Of Mechanical Watches, And The Truth About 3D Scanning

Hackaday Editors Elliot Williams and Al Williams met to review the week in Hackaday. It was a week for hands, in more ways than one, along with a voice assistant that ditches the cloud, a GPU for twenty cents, glasses that help the visually impaired see with LiDAR, and a virtual mechanical watch that shows you exactly how the real thing ticks.

Beyond watch hands, you might like an eighteen-degrees-of-freedom robot hand for under $300 in parts.  Or plant your own hands on a spinning wheel to make virtual honey feel sticky and virtual oil feel slippery in VR.

For the Can’t-Miss Articles, Elliot digs into the truth about hobbyist 3D scanning, photogrammetry versus structured light, and why the meshes you get are rarely the CAD models you wanted. Al, meanwhile, looks at how modern smartphones talk to satellites, bent pipes, flying cell towers, and all.

Check out the links below to follow along, and as always, tell us what you think about this episode in the comments! Or drop us a note at mailbag@hackaday.com.

 

Download in non-robotic MP3 format.

Continue reading “Hackaday Podcast Episode 396: Robot Hands, The Inner Life Of Mechanical Watches, And The Truth About 3D Scanning” →

This Week In Security: Federal Breaches, Leaky AI Routers, PhpAfterShell, Bluetooth Trailer Brakes

The CIA and the Office of the Director of National Intelligence have discovered a breach of an unclassified system used for open-source intelligence: the analysis of news reports, social media, and other public or commercially available data. According to Nextgov, and the New York Times who first reported it on Tuesday, the breach disrupted an unclassified network but didn’t touch classified systems, and the matter has “been resolved”. Nobody has officially said who was responsible, or whether any data was taken, though people familiar with the investigation say early indicators point to China, according to The Decoder‘s summary of the Times and CNN reporting. The Times also reported that the National Geospatial-Intelligence Agency was affected at the same time.

Unclassified doesn’t mean unimportant. As Huntress’ Ben Bernstein told Nextgov, “If you can see what analysts are searching for and what topics they’re tracking, you get a solid look at U.S. intelligence priorities and blind spots without ever touching a classified file.” Nextgov reports that ARTEX, the AI-driven attack framework the FBI warned about last week, is believed to have been used in the breach, and its sources say it was also used in a separate, low-impact intrusion into the Defense Department’s Cyber Defense Command.

Apparently, November 2026 is going to be “that kind of month”. The FBI is investigating a hack of the National Crime Information Center, the Agriculture Department told employees that hackers had accessed the system it uses to make payments to farmers, and the Treasury’s Financial Crimes Enforcement Network is investigating “unauthorized access to a limited subset of its systems,” and has taken some systems offline. At the state level, Colorado says an attack on its myColorado app, which has 2.1 million users and handles digital IDs and state services, likely exposed data on nearly 150,000 people, and the app is still offline heading into Thanksgiving.

Nothing points yet to the outages being a coordinated attack: This might just be the new normal of AI developed exploits, attack frameworks, and fragile patches. I’m not sure if that’s supposed to be reassuring. If you’re staring at a dead service and wondering whether it’s hackers, WIRED has a guide to telling whether an outage is a cyberattack. (Hint: usually not.)

Continue reading “This Week In Security: Federal Breaches, Leaky AI Routers, PhpAfterShell, Bluetooth Trailer Brakes” →

Ask Hackaday: Putting The C In CPU

I was once in a meeting where the facilitator asked us to introduce ourselves with the usual information, but also wanted us to share our favorite hobby. I spent a second trying to think of which hobby I could say to not sound like a total nerd. Then I realized it didn’t matter. All my hobbies are nerdy, including designing CPUs and their instruction sets.

I actually started sketching out an instruction set when I was a kid, back when no one had home computers. I am glad I lost that notebook: it would be painful to see today. The first CPU I put on an FPGA wasn’t of my own design, though. I implemented BLUE from Caxton Foster’s Computer Architecture book. I also extended it and modernized it a lot. I really wanted a C compiler for it.

C Compilation

That’s really the problem. C was once a simple language, but modern C is far from simple, and compilers are huge projects. I have looked before at porting GCC to a different architecture, and it looks daunting. There’s LLVM, which is a bit more modern, but also non-trivial to port. There are a few older compilers that ought to be easier, but they often aren’t quite modern enough. Plus, if your CPU were big enough, which BLUE isn’t, GCC or a similar modern compiler would be attractive because you could use it to get Linux going.

Keep in mind, though, I’m not talking about a C compiler that runs on BLUE. Just a cross-compiler. My OneDer CPU is 32-bit and could host a C compiler, though. That’s another reason to bite the bullet and do a “big” compiler port. Because even if BLUE isn’t that big, other CPUs are, and I’d love to have a GCC port under my belt.

Continue reading “Ask Hackaday: Putting The C In CPU” →

Correcting The Pink Photo From My Modified Phone: A Follow-Up

A week or so ago I posted an Ask Hackaday, in which I asked the community for help with a common camera hacking problem I was having with my mobile phone to C mount conversion. In short, when you take a camera with a tiny lens and change that lens for another, the resulting photographs have a colour cast. It’s usually the right colour in the centre, and moves to a pink colour in a ring around the photo. The commenters came up with the right answer, and identified the problem as the phone software applying a correction to compensate for the relatively awful tiny lens. It’s a problem not limited to me, it’s appeared in many such projects including this one. So having been educated as to the nature of the problem, my next  step was to look at how to fix it.

It’s A Flat Field Correction Problem, Folks!

This image has pink edges fading to white in the centre.
The Galaxy Note 3 calibration image.

Of course I am not the first to encounter this in some form, thus as expected there’s a well-tested technique in photography to correct it. It’s called flat field correction, and it works by correcting each pixel in the image to match the gain to that of the pixels in the centre of the image. It’s a straightforward enough mathematical procedure, and to measure those relative pixel gains it requires that the camera take a calibration image of a uniformly lit white surface. The idea is that each pixel in this image will deliver the difference between it and the pixels in the centre, and thus the required correction for that pixel.

Taking a calibration image is easy, and involves pointing the camera at something white and reasonably lit, and unfocusing it to remove any surface texture effects. The picture must be at the same resolution as the photo to be processed. I took a picture of the same white table in my hackerspace from the stuffed animals picture at somewhere under a metre’s distance, with the lens set to infinity focus. The resulting image shows the circular pink pattern alone, and very clearly indicates the nature of the problem.

Correction Method 1: GIMP

The same image of stuffed animals twice, top: fixed version, bottom: original with pink cast.
Top: fixed, Bottom: original.

Perhaps the easiest way to perform flat field correction is in your normal photo editing package. I use GIMP, but I am guessing that other packages will follow a similar path.

  1. Open your photo to be corrected. The result will be brighter so you’ll need to reduce its exposure (Colours menu > Exposure).
  2. Change the encoding precision to 32-bit floating point (Image menu > Encoding). Since this is a mathematical process, this reduces any rounding errors that might affect picture quality.
  3. Open the calibration image as a new layer above the photo (File menu > Open as layers). Some guides then suggest applying a Gaussian blur to this layer to further reduce noise. I tried either, and found it made little difference.
  4. Change the layer’s mode from “Normal”, to “Divide”. This can be found in the Layers panel, in a pulldown above the list of layers.

Following these steps delivers an image with the flat field correction applied. Of course, it may still need other processing such as white balance, but the pink ring is gone.

But What About The Command Line?

A straightforward GIMP workflow is an easy way to correct a single photo, but converting a day’s worth of pictures is likely to become a major pain. For a directory full of pictures it makes sense to use Image Magick if I can, and for a video I need to be able to use ffmpeg. So after a bit of messing about, here is the same process, for both command line packages. I have also placed the shell commands in a GitHub repository, in case your browser manages to mangle cut-and-pasting the commands below.

Image Magick

The first task is to create a calibration map from the calibration image I took earlier. This is a PNG image whose pixels represent the level difference from the centre of the image normalised to 50% grey, as opposed to the original image which shows their relative values at whatever illumination it was taken under. The -blur option applies a blur to remove any textures in the image, while the -fx option contains the mathematical formula required to apply the calculation. I am not ashamed to admit that I had a lot of help in getting these steps right, for which I am thankful.

magick calibration-photo.jpg \
  -blur 0x60 \
  -fx 'channel(
    0.5*u.r/max(u.g,0.02) *
        u.p{w/2,h/2}.g/max(u.p{w/2,h/2}.r,0.02),
    0.5,
    0.5*u.b/max(u.g,0.02) *
        u.p{w/2,h/2}.g/max(u.p{w/2,h/2}.b,0.02)
  )' \
  -depth 16 PNG48:calibration-map.png

Having created the calibration map image, it can now be applied to the photo. The multiplication by 0.5 is a compensation for the calibration map being centred around 50% grey, and the divide function is the same as that in the GIMP version above.

magick photo.jpg \
-evaluate multiply 0.5 \
calibration-map.png \
-compose DivideSrc -composite \
-quality 95 photo-corrected.jpg

ffmpeg

Now for video! Performing the same task in ffmpeg follows the same process as  with Image Magick, but the calibration map must be the same resolution as the video. The most straightforward way to do this is to make a short video of the illuminated white surface rather than a still photo, and average all of its frames into a single image. The result is a similar one to the still calibration image, but it’s important to do it this way as the video camera app may apply different processing to the still camera one.

ffmpeg -i calibration-video.mp4 \
-vf "tmix=frames=60,format=rgb48be" \
-frames:v 1 -update 1 calibration-image-video.png 

This image can then be processed in exactly the same way as the Image Magick version. Again, it’s applying a blur, and the same formula to make the calibration map.

ffmpeg -i calibration-image-video.png \
-vf "format=gbrp16le,gblur=sigma=60,\
geq=r='32768*r(X,Y)*g(W/2,H/2)/(max(g(X,Y),1)*max(r(W/2,H/2),1))':\
g='32768':\
b='32768*b(X,Y)*g(W/2,H/2)/(max(g(X,Y),1)*max(b(W/2,H/2),1))'" \
-frames:v 1 -update 1 -pix_fmt rgb48be calibration-map-video.png

Using the map, the conversion can then be performed on the video itself. This is a slow process though, on my run-of-the-mill Thinkpad it was processing only 1.8 frames per second.

ffmpeg -i your-video.mp4 -loop 1 -i calibration-map-video.png \
-filter_complex \
"[0:v]format=gbrp16le[video];\
[1:v]format=gbrp16le[map];\
[video][map]blend=all_expr='A*32768/max(B,1)':shortest=1,\
format=yuv420p[out]" \
-map '[out]' -map '0:a?' \
-c:v libx264 -preset medium -crf 18 \
-c:a copy your-video-corrected.mp4

So we’ve identified the problem as flat-field correction, and here are three ways to do it. The camera is now a lot closer to being useful, even if the processing steps can be a little cumbersome and the photos may require a little more post-processing. It’s obvious that in the phone hardware is the best place to do this, but without access to the internals of a 13-year-old Samsung this is the next best thing.

Hackaday Links Column Banner

Hackaday Links: November 22, 2026

While Hackaday is not a publication that generally concerns itself with the latest and greatest in gaming, the release of Grand Theft Auto 6 this week is hard to ignore. The game is being lauded as the most detailed and realistic rendition of an urban environment ever produced, and in the first 24 hours racked up a staggering $3.79 billion in sales. Distributed exclusively through the digital storefronts on the Xbox and PlayStation consoles, the millions of gamers that simultaneously downloaded the game set new records for Internet traffic.

Despite its incredible popularity, we don’t expect that the latest GTA will grace these pages too often. While games like Minecraft have offered makers and hackers some fascinating opportunities to blur the line between the virtual and physical worlds, the same doesn’t really apply when the player is stealing cars and executing gang members (we hope).

Speaking of highly detailed digital recreations, we’ve greatly enjoyed dismantling the twin Voyager spacecraft courtesy of this impressive website created by [Raj Shekhar]. At first glance it seems that the site is simply tracking the two craft as they make their way through interstellar space, but after clicking on either of the 70s-era probes you’ll have the option of showing it in an exploded view that lets you drill all the way down into the various avionics bays.

You can even see the individual plutonium spheres inside of the radioisotope thermoelectric generators (RTG) that have kept the Voyagers ticking out well past the point where solar panels would no longer have been useful.

On the subject of long-lived hardware, we recently came across a list of products that have been saved by open source. In some cases it was a new firmware that restored the functionality of a device that was abandoned by its manufacturer, while in others it takes the form of a replacement back-end for a service that was shuttered. We don’t imagine the products listed at the time of this writing constitutes an exhaustive list, but it does provide an interesting data point for anyone who doubted whether or not these sort of projects were worth the effort.

Finally, if you’re as interested in the visual style of that list as you are the content, you may want to check out Slopstrap by [Mike Lacher]. It provides a framework that human developers can use to make their website look more like it was thrown together with an AI tool. If that seems like it would mean you’d have to constantly defend your work against accusations that it was vibecoded, we imagine that’s the goal.


See something interesting that you think would be a good fit for our weekly Links column? Drop us a line, we’d love to hear about it.

Hackaday Podcast Episode 395: Pancake Slicer, RGB LED Origami, And Farting Synthesizers

This week, Elliot Williams and Kristina Panos met up in the super-secret studio to bring you some Hackaday news, a ‘lil something from the Mailbag, and wax nerdily about a whole lot of hacks.

In the news, we’re hiring, so come join us! If you’re reading this, chances are good that you know the format, and you’re ready to get your hands on the tips line. Just do what it says in the post, and we’ll get back to you.

Elliot dumped out the Mailbag and a single letter fluttered down to the table. It was from [iPod enjoyer], who is still using an iPod in 2026 and seems to appreciate the embedded art that ships with this here Podcast.

Then, it was on to the hacks, as you’ve come to expect. There’s something for everyone!

Check out the links below if you want to follow along, and as always, tell us what you think about this episode in the comments!

Download in lovely MP3.

Continue reading “Hackaday Podcast Episode 395: Pancake Slicer, RGB LED Origami, And Farting Synthesizers” →