| Home | Terms of Use | Site Map | Contact Us |
IndustryCommunity.com > Electrical and Electronic Community > Analog Circuit Design Forum > Message
Main Menu
Find

[ List Subjects ][ Main Page ]
[ View Followups ][ Post Followup ]

Subject: Re: Eliminating Ground Vibrations in a electronic weighing scale

Date: 07/17/03 at 4:31 AM
Posted by: Geoffrey
E-mail: g_swales@biodigital-limited.com
Message Posted:

In Reply to: Eliminating Ground Vibrations in a electronic weighing scale posted by Prashanth.T.G on 07/16/03 at 7:41 AM:

Hello,
It's good practice to low-pass filter any signal going in to an ADC to prevent 'Aliasing'.
You can either use a analog low-pass filter (such as a resistor/capacitor) or you can use software techniques (plenty of samples and take the average).
The last technique is easiest;

scale_adc=GetADC();
ave_adc=((7*ave_adc)+scale_adc)/8;

it's a sort of weighted average.
The 'divide by 8' can be done with a triple shift right (>>3).
Try different numbers so long as the number of samples is the same a the denominator(7+1 = 8)

Things to watch for: reduced response, processor time for multiply, rounding errors(dropping bits).

Regards,

Geoffrey.


Follow Ups:


Post a Follow-up:

Name:
E-Mail:
Subject:

Message to Post:

 

1999-2001 Sunlit Technology Co., Ltd. All rights reserved.