On Sun, 11 Sep 2005 05:13:09 -0000 you wrote: >I have a circuit with an Accelerometer connected to an ATmega32. The >Accel measures 2.5V at rest and goes to .5v or up to 4.5v when tilted. >The motors I am using on this bot cause vibrations when running and I >can't get a clean signal fromt he Accel. >Is there a way to filter the noise from the motors out of the Accel >signal through CodevisionAVR? >Thanks! >~Mike A moving average is quite easy to implement. Just put the values into an array and maintain a sum, adding the latest value and subtracting the oldest. I got better results using a hardware filter - a dual op amp connected as a low pass filter. -- Ralph Hilton http://www.ralphhilton.org C-Meter: http://www.cmeter.org FZAOINT http://www.fzaoint.net
Message
Re: [AVR-Chat] Sensor filtering
2005-09-11 by Ralph Hilton
Attachments
- No local attachments were found for this message.