Oscilloscope vector art with an ESP32-S3

Nov 23, 2026 Last reply: 1 day ago 5 Replies
Jump to replies (5)

Turns out you don't need a display to draw pictures. The S3 has no real DAC, so I used the two sigma-delta outputs instead, each one running a 10 MHz carrier with an RC filter on the pin. The filter is just a 1 kΩ series resistor and 10 nF to ground, wich puts the corner around 16 kHz. End result is a crude 8-bit DAC per channel, and honestly it's good enough for what I wanted.



So X goes to scope channel 1, Y to channel 2, and the scope sits in X-Y mode. Vector graphics on the screen, no screen of its own required. It cycles through 19 diffrent figures right now and it's genuinely fun to just watch it run.



Not sure where I'll take it next, maybe mess with the figure set, but for a weekend thing I'm pretty happy with it.


I messed around with X-Y mode on an old Tektronix scope a while back, just plotting Lissajous figures from two function generators, and I remember the same feeling of staring at it longer than I meant to. There is something about watching a shape hold steady on a phosphor-style trace that a normal screen never quite gives you. Your sigma-delta trick is clever because it sidesteps the missing DAC entirely instead of fighting it. The 16 kHz corner makes sense to me for keeping the carrier junk off the trace, and the fact that a simple resistor and cap gets you there is the kind of hack I appreciate. My bench build was nowhere near that tidy, just clip leads everywhere and hoping nothing slipped. One thing I found when I did mine: rotating or slowly morphing a figure keeps it interesting way longer than a static set, so if you do revisit the figure collection, a bit of motion between them might be fun to try.

Curious how you picked the 19 figures. Did you go with classics like a spirograph pattern, or more geometric stuff like lissajous curves and text?

My own attempt at scope drawing never got past a single wobbly circle, so hearing you've got a whole rotating set of figures makes me a little envious. I stuck to simple shapes because anything fancier kept tripping over my code, and eventually I shelved it for another project. Yours makes me want to pull the old breadboard back out. The trick of coaxing a usable output from pins that were never meant to be analog is exactly the kind of hack I enjoy reading about. The thing I keep wondering about from your description is redraw speed. With the filter corner sitting way down at audio frequencies, I'd expect quick moves to smear or fade on the trace while slow ones stay crisp. Do the faster parts of your figures look dimmer, or does the scope just blend it all into one clean line? Either way, I like that the scope becomes a display you already own. No driver board, no library, just two probes and whatever your code can dream up. That appeals to my lazy side more than any LCD ever has.

The thing that jumped out at me from what you describe is the X-Y mode part. I used to have a scope sitting mostly unused until I learned it could do that, and it completely changed how I looked at the thing. Mine never produced anything worth watching, just noise that wandered around the screen, but the mode itself stuck with me ever since.

The sigma-delta workaround is the piece I'd want to hear more about, since I never would have thought to lean on those outputs that way. When you cycle through the 19 figures, does each one get a fixed dwell time, or do some shapes hold your attention longer than others?

Beginner here, still wrapping my head around this. The way you describe it, the chip wiggles its pins really fast and the resistor and capacitor smooth that into a steady voltage, which sounds almost too simple to work. Does the little filter part need to sit right next to the chip, or can it be further away on a breadboard? I only ask because my wires always end up all over the place and I wonder if that would mess the smooth shape up.

The bit I keep coming back to is the 19 figures cycling thru. When I tried anything with a scope on my bench I got stuck picking what to draw and gave up before the fun part. Did you build the figure list as coordinates in flash or generate them on the fly with some trig? Also curious if the beam gets dim when a figure has lots of overlapping lines, my old scope always washed out in the middle.

Join the Discussion

Have something to add? Share your thoughts — no account required.

Didn't find your answer?

Ask the community — no account required