Simple audio sine signal generator


Well-known member
I need to build a test rig for another Teensy based project that can generate an audio sine wave from 0-20Khz, but I need to be able to make the signal clip as well.

I have a a T4.x and a Rev D audio shield here at home - would this +a simple sin function, mixer and i2s module be enough to achieve that?
signal gen.jpg

If it is enough, what should I set sine amplitude to? just 1.0 and control gain from the mixer?
Yes, your design will do.
Set the sine module output to 1.0 and set the attenuation or amplification at the amp module.