Work
Featured project

Wave-Tilter

Wave-Tilter running on an M5Stack Cardputer

Wave-Tilter turns an M5Stack Cardputer ADV into a signal generator controlled by its IMU. It starts on a triangle wave. Tilting it forward or back morphs the shape toward a square (by steepening and clipping the triangle) or toward a sine. Tilting left or right slides the pitch down or up. Pitch is rate-controlled, so it keeps gliding as long as you hold the tilt, and a key toggles snapping to semitones around a Bb5 reference.

Impact

Verified on an oscilloscope, then put to work testing a real RC low-pass filter with a cutoff around 1.6 kHz.

Audio is generated at 48 kHz. I capped output frequency at 4 kHz on the assumption that the signal would come out of the GPIO pins. Partway through, I realized I could clip leads straight onto the 3.5 mm headphone jack and use the existing audio output, which turned out to be the simpler path. The display refreshes at 100 Hz. Work is split across the ESP32's two cores, one generating audio and one drawing the screen, so visuals never interrupt the sound. I used Claude Code and we wrote it together in C++, partly to learn the language before my Embedded Systems class got to it.

I verified the waveforms on an oscilloscope, then used Wave-Tilter to test an RC low-pass filter (1 kΩ, confirmed with a multimeter) with a cutoff around 1.6 kHz. For now it's more instrument than lab tool, but the goal is a pocket generator for quickly checking filters.

Demos

Tilting Wave-Tilter while an oscilloscope tracks the output.
Testing an RC low-pass filter, with the output on an oscilloscope.