Yahoo Groups archive

AVR-Chat

Index last updated: 2026-04-28 22:41 UTC

Message

Re: [AVR-Chat] Sensor filtering

2005-09-11 by Ralph Hilton

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

Attachments

Move to quarantaine

This moves the raw source file on disk only. The archive index is not changed automatically, so you still need to run a manual refresh afterward.