Hello! 👋

A 12 V Label Is Not a Safety Certificate

While investigating an active antenna installation powered by a FEDUS-branded 12 V adapter, I received a photograph showing a conventional neon mains tester glowing against the connected receiver's metal antenna connector. That raises a basic question: what voltage is reaching accessible metalwork, and how much current can it supply? Consumers should not need to understand power-supply leakage to expect safe equipment. Smoke was also reported from the amplifier. Twelve volts between which points? An adapter can deliver 12 V DC between its output terminals while both terminals carry AC voltage relative to earth. Twelve volts across the output does not tell us the output's voltage relative to a person touching grounded surroundings. ...

December 4, 2026 · 3 min · 454 words · Dhiru Kholia

Blast from the past: sng2png

Somewhere around 2003, I was drawing things with Turbo C++ on Windows XP. I remembered writing a little program I called SNG, and that it worked around some limitation. Twenty-three years later, I could still remember the compiler and the operating system. The actual problem? Something about screenshots, maybe? Then I opened the backup. The opening comment in grab.H gave it away. My hack for taking screenshots of DOS full screen mode under XP ...

December 4, 2026 · 6 min · 1221 words · Dhiru Kholia

AM DRM (DRM30) decoding under 5 dollars

The receiver had locked onto a digital station at 1 MHz. The speaker was still silent. Getting from lock=AFCSM to an audible tone turned out to be the most interesting part of building a radio out of a microcontroller. DRM30 is Digital Radio Mondiale for the broadcast bands below 30 MHz. It fits digital audio into channels as narrow as 9 or 10 kHz and can carry xHE-AAC. This experiment puts it on medium wave, right in familiar AM territory. DRM Consortium ...

December 3, 2026 · 6 min · 1208 words · Dhiru Kholia

Easy and Quick Thermal Simulation of PCBs (2027)

ADS 2027.x remains the best for easy and quick thermal simulation of PCBs. I badly want to use a (F)OSS solution (like https://github.com/wayri/SPIKE) but we don't seem to be there yet. For background, see my earlier article on thermal simulation of PCBs. Here is the DDX 27.15 board under examination for thermal bugs. Once we add more heat sources (those LDOs…): ...

November 27, 2026 · 2 min · 264 words · Dhiru Kholia

From Flask to C and Kore via a Rust OOM

I wanted the Bunzee Labs website to use less RAM. The Flask application worked, but its Gunicorn processes felt expensive for what the site did. I wanted one application executable, a maintainable codebase, and one deployment command. Builds had to work on 4 GB machines. This sounded like a small migration. LOL. The Rust detour Rust with Axum looked attractive: native performance, memory safety, and an executable to deploy. We ported the site. ...

November 16, 2026 · 5 min · 980 words · Dhiru Kholia

Omnesta: A Smart Home App Under 256 KiB

The eWeLink app would log my wife out when I logged in from my phone. Let that sink in. Two people living in the same house, wanting to operate the same switches. My logging in would make her app stop working. For our use, this was 100% unusable. The apps were slow to use too. Opening an app, waiting for it to become useful, finding the device, and finally operating a switch felt like far too much ceremony. Walking over to the physical switch was becoming a competitive option. ...

November 16, 2026 · 8 min · 1610 words · Dhiru Kholia

Streaming My Own Music, Like an Animal

Amazon Music, Apple Music, Spotify, YouTube Music. Across the services I tried, there was always something: missing content, music unavailable in my country, or playback trouble. Amazon Music's interface was absolutely horrid; I found it unusable. Apple Music would stutter on my Android phones often enough to become deeply annoying. Eventually, I quit streaming services for my primary listening. Paying for convenience had become an oddly demanding hobby. I installed gonic on my Mac Mini M4, specifically for its folder view. Apparently, wanting to browse music in the folders I put it in is now a specialised requirement. ...

November 11, 2026 · 2 min · 224 words · Dhiru Kholia

ADS-B decoding under 1W and US$25

My new ADS-B decoding system consumes less than 1W and costs under US$25. It runs standalone, handling everything from reception to feeding adsb.lol. The hardware: RP2350 (Pico 2) + W5500 for Ethernet + Core2021-HF 'LoRa' module + NEO-7M. The Core2021-HF is a LoRa module that also handles ADS-B demodulation entirely in hardware. The NEO-7M is a u-blox GPS module. Power and data travel over a single Cat 6 cable, using an Adafruit passive PoE injector and extractor. ...

November 9, 2026 · 1 min · 172 words · Dhiru Kholia

Using pi-sbx microVM sandboxes without nested virtualization

pi-sbx keeps Pi on the host and runs its built-in shell and filesystem tools inside a Docker SBX microVM. Workspace changes remain visible on the host. PVM (Pagetable-based Virtual Machine) lets us run these microVMs inside an x86_64 Linux VM without exposed VMX/SVM or nested virtualization. It still provides the /dev/kvm interface used by SBX. First, install and boot the PVM host kernel from Porting PVM to Linux 7.2, including its pti=off boot setting. You also need an SBX-compatible PVM guest kernel, saved as vmlinux below. ...

October 28, 2026 · 2 min · 283 words · Dhiru Kholia

Mains Power Detection, Minus the Mains

I wanted an ESP8266 to answer a simple question: Is mains power available? The ESP8266 was willing to help, provided nobody introduced it to 230 V. An ordinary isolated 5 V wall adapter already gives us a useful signal: its DC output disappears when its mains supply disappears. We can watch that output and leave the mains side inside the adapter, where it belongs. Two resistors make the voltage suitable for the development board's ADC. The slightly less obvious requirement is keeping the observer alive when the thing being observed switches off. ...

October 24, 2026 · 5 min · 955 words · Dhiru Kholia