At 10:41 PM 5/26/2003 +0100, Diego Sierra wrote: >On Mon, 26 May 2003 21:57:15 +0200, Stef wrote: > >>Are you doing multiple AD readings, in 1 rest period, to get a more >>stable result ? > >Yes, due to the 50Hz main, I take 16 samples during 20ms (rest part of the >charge pulse) and average them. Then I have to filter it Butterworth 1st >order) in order to have a more stable value, same for the slope. However, >if I stop sending the charge-reflex pulses to the battery, the reading is >totally stable. Your readings are likely distributed along a slope, where the battery voltage is changing rapidly. I've seen this before. The steepness of the slope will depend on what the recent activity is, and how long ago it was. -- http://www.piclist.com hint: To leave the PICList mailto:piclist-unsubscribe-request@mitvma.mit.edu