Go Down

Topic: Filtering (Read 772 times) previous topic - next topic



I've come across an interesting conundrum.  I'm using the tone() function to, of course, generate a tone.  I've also made a 2nd order Sallen-Key filter to clean up the harmonics a bit and get a bit closer to a sinusoidal wave.  I've tested the filter against a square wave generator and it seemed to do the trick very well, however when I hook the filter up to the arduino tone generator, the filter output still remains a square.  The cutoff freq is set to about 50 Hz and the testing frequency is 200 Hz.  All Caps are 0.22 uF and Resistors are 15k.  Am I missing a key piece of knowledge in the arduino's tone generation?


Post your circuit.
Designing & building electrical circuits for over 25 years.  Screw Shield for Mega/Due/Uno,  Bobuino with ATMega1284P, & other '328P & '1284P creations & offerings at  my website.


Ah I figured it out, the arduino output was saturating the op amp.  How embarassing...

Go Up

Please enter a valid email to subscribe

Confirm your email address

We need to confirm your email address.
To complete the subscription, please click the link in the email we just sent you.

Thank you for subscribing!

via Egeo 16
Torino, 10131