Home›Hackaday›Article

A Frequency Generator for Not a Lot

Jenny List · Dec 2, 2026

AI summary AI-generated, may contain mistakes

[Alun Morris] built the 'Mega Hurts', a pocket-sized USB-C powered square wave generator based on an inexpensive CH32V203F6P6 microcontroller, featuring an OLED display, rotary encoder, and BNC output. Using the chip's 16-bit timer in PWM mode, it achieves frequencies up to 30 MHz with a variable duty cycle. The project also demonstrates a simple prototyping approach, using dead-bugged SMD parts in a 3D-printed case without a custom PCB.

There are many ways to generate a square wave, and given the availability of phase-locked-loop-based clock generator chips, it’s easy enough to do so from a microcontroller. But the microcontroller can be persuaded to make a square wave on its own, and and this is what [Alun Morris] has done with his Mega Hurts frequency generator. It’s a pocket square wave signal generator, powered from a USB-C socket.

At its heart is the inexpensive CH32V203F6P6 microcontroller mounted on a small dev board in a 3D printed case. There’s an OLED display and a rotary encoder to provide a user interface. The maximum frequency achievable is 30 MHz, with variable duty cycle. The generation is achieved using the chip’s 16-bit timer operating as a PWM peripheral, and the output reaches the world through a BNC socket. We can see it could be a useful little instrument, even if it’s limited to square waves alone.

We quite like the very simple prototyping technique used here, dead-bugging SMD parts without the need for a custom PCB. IT proves that sometimes, just going ahead and making the thing with what you have is the way forward.

Keep reading

Out of respect for the author only the opening is shown here. Read the rest on the original site, or in HorizonReader with highlights, notes and AI help.

More from Hackaday

Naughty NAS Nets Noteworthy Noodling

AI summaryDmytro Artemiev built his own NAS using a Raspberry Pi 4 with a SATA HAT and four 2 TB disks running OpenMediaVault, but soon faced intermittent problems like disappearing disks and networking failures. He troubleshot by simplifying to a clean Debian install and using Grafana to correlate data with failures, documenting the whole engineering journey on his blog. The experience taught him that the most expensive mistake was assuming too early that he already knew the cause of the issues.

The Underwhelming Supersonic Cargo Service That Died In The 20th Century

AI summaryThe article chronicles the Soviet Tupolev Tu-144, which beat the Concorde to milestones like its maiden flight and Mach 2 but was plagued by engine inefficiency, structural problems, and a deadly 1973 Paris Air Show crash. After its passenger service lasted only seven months in 1977–78, Aeroflot briefly used the aircraft for supersonic mail and freight runs such as Moscow to Alma-Ata before the program was cancelled in 1983. Ultimately, despite later roles as a flying laboratory, the unreliable Tu-144 flew too few commercial flights to make a real logistical impact and is largely forgotten, unlike the Concorde.

With Omnidrive One Blu-Ray Drive Can Backup Them All

AI summaryOmniDrive is custom firmware developed by [RibShark] that can be flashed onto compatible Hitachi-LG Blu-ray drives (using the MediaTek MT1959 chip), enabling users to rip game discs from consoles like GameCube, Wii, Xbox, and Wii U without modifying the consoles themselves. The firmware is installed via the SDFTool Flasher, though flashing it onto an incompatible drive will permanently brick it. With Sony planning to stop manufacturing discs in 2028, tools like OmniDrive and backup software such as Media Preservation Frontend support growing efforts to preserve physical game media.

$10 Microcontroller Board Emulates Over 15 Classic Systems

AI summaryA $10 LILYGO ESP32 VGA board can emulate over 15 classic computer systems, including the Apple II, Atari 2600, ZX Spectrum, MSX 2, Commodore 64, and Macintosh Classic. The board combines the ESP32 microcontroller with VGA output, PS/2 ports, and an SD card slot, and the emulation runs bare-metal without an operating system to minimize overhead. The required files are available online, making it an inexpensive, compact way to enjoy retro hardware.

Weather Dashboard Shows Off Satellite Data

AI summary[Mirko Pavleski] built a desk-based weather dashboard using the ELECROW CrowPanel 7-inch HMI display, which features a bright color LCD, capacitive touch, and an ESP32-S3 microcontroller with WiFi connectivity. The device pulls 16-day forecasts from Open-Meteo, the current time from an NTP server, and satellite weather maps from the OpenWeatherMap API. The result is an attractive desk ornament that displays weather information at a glance.