Dik Hin Blog
  • My Posts

  • 中文

My Posts

DIY Handheld Radio Power Supply and Type-C 2S Li-ion Charger
January 1, 2026

DIY Handheld Radio Power Supply and Type-C 2S Li-ion Charger

I recently designed and built a DC barrel jack power supply for a handheld radio. This allows the radio to be used without the lithium battery when there’s external power available, such as at a fixed location or in a vehicle. I also designed a small Type-C charger for convenient outdoor charging, since the stock charger is just a bulky 220V AC desk charger.

read more
Fixing udhcpc renew hanging issue in Alpine containers
December 17, 2025

Fixing udhcpc renew hanging issue in Alpine containers

I had a macvlan container that required manually running udhcpc inside the container after each startup to obtain a dynamic IP from DHCP. To make things easier, I added supervisord to automatically run udhcpc -f and the container’s own program on startup. After this change, I noticed the container would lose network connectivity after running for a while. Checking the logs, I found that udhcpc would obtain an IP when starting, renew once, and then there were no more renew records.

read more
Upgrading Handheld Radio Battery Eliminator for High Current
November 4, 2025

Upgrading Handheld Radio Battery Eliminator for High Current

I recently bought two car battery eliminators online that use the 12V power from a car’s cigarette lighter port to replace lithium batteries, for use with two Baofeng handheld radios respectively. One radio originally uses a 1S 3.7V lithium battery, the other uses a 2S 7.4V lithium battery.

read more
Assigning Independent Proxy Tunnels to Each Container for TCP+UDP Transparent Forwarding
October 20, 2025

Assigning Independent Proxy Tunnels to Each Container for TCP+UDP Transparent Forwarding

I recently had a requirement to assign different egress IP addresses to each container in a one-to-one mapping. However, these egress IPs are distributed across multiple remote machines and require connecting through different proxies, while the local machine only has a single unified egress IP for external network access.

read more
Modifying Antminer Control Board EEPROM to Run Official BeagleBone Images
August 22, 2025

Modifying Antminer Control Board EEPROM to Run Official BeagleBone Images

I recently picked up a few ARM Cortex A8 boards, which appear to be retired Antminer control boards. These boards are modified versions of the open-source BeagleBone Black board, with basically the same PCB layout but with some components removed.

read more
Getting Multiple Dynamic Public IPs from ISP DHCP via Single Raspberry Pi
December 10, 2024

Getting Multiple Dynamic Public IPs from ISP DHCP via Single Raspberry Pi

In Hong Kong, ISPs typically provide dynamic public IPs for home broadband through their modem. Modems usually have 2-4 ports, with each port being assigned an independent dynamic public IP.

read more
Adding Fused Provider to Traccar Android Client
September 21, 2024

Adding Fused Provider to Traccar Android Client

I’ve been using a phone GPS tracking tool to conveniently record my whereabouts. Traccar is a great open-source software with Android and iOS clients that supports self-hosted servers. The client only uploads location data to your own server, so there are no data privacy concerns. The server also comes with a web interface for managing and viewing device location history.

read more
Adding RP2040 Voltage Regulation to MicroPython
July 10, 2024

Adding RP2040 Voltage Regulation to MicroPython

I recently bought a few RP2040-Zero boards, which are mini versions designed by Waveshare based on the Raspberry Pi Pico. The MCU is the RP2040, and this board even has an extra WS2812 LED and a Reset button compared to the official Pico. However, the ones I bought aren’t actually official Waveshare products, they’re cheaper knockoffs, but they work just the same.

read more
Fixing WordPress Stuck on SQLite Database Upgrade After Auto Version Update
July 8, 2024

Fixing WordPress Stuck on SQLite Database Upgrade After Auto Version Update

In early 2023, I helped a friend set up a WordPress blog. By mid-2024, he contacted me saying the blog wasn’t loading anymore.

read more
Adding Custom Derivation Path Support for Metamask Ledger Hardware Wallet Connection
December 30, 2022

Adding Custom Derivation Path Support for Metamask Ledger Hardware Wallet Connection

A Web3 hot wallet or hardware wallet can have many addresses. In fact, the wallet only stores one root key, and the addresses we use are generated according to the BIP44 standard, calculated from specified derivation paths based on the root key.

read more
© Dik Hin Blog 2026