r/AudioProgramming • • Oct 02 '26

Best resource/tutorial to program a microcontroller oscillator?

Hi,
I'd like to try out programming a microcontroller, probably a Raspberry Pi Pico, and make an oscillator. I have done some programming before, but never any audio, so I would probably need a good resource or tutorial. Are there any good ones you can recommend? I'd need pointers on running it continuously, and using audio buffers to output to a DAC etc.

Preferably in C, Rust or C++, in that order.

If you have any tips in general on how I can do it, I would be very grateful. I'm fairly confident with the maths involved, and I use Matlab a bit for other uses.

2 Upvotes

6 comments sorted by

View all comments

Show parent comment

1

u/dkode80 Oct 02 '26

I think the pico would be a good test bed to start with and figure out it's capabilities I think. You should post what you find because I do have spare picos laying around but never done anything audio related on them. Would be interested to hear!

1

u/enstorsoffa Oct 02 '26

Me and my programmer friend made a digital oscillator with one, but a very simple one. I did the analog hardware and he did the digital stuff, and unfortunately he is very busy in a different country now, so I can’t ask him a lot. We managed to get stable pitch, multiple waveforms and CV integration though