/var/www/restricted/ssh/stm32/www/stm32circle/ STM CircleOS forum / Using ADC under OS

Username:     
Password:     
             

Forum

# 1   2009-03-30 07:26:38 Using ADC under OS

PK
New member
Registered: 2008-01-24
Posts: 6

Using ADC under OS

Hi,
I tryied to using ADC CHannel0 to measure external voltage. In my application
under OS I made new ADC_Init and new DMA_Init. I used the same DMA channel1 like
Battery & TempSensor. It work but the readed voltage is unstable.
What the problem could be with configuration? Should I use another DMA channel?

PK

Offline

 

# 2   2009-03-30 09:33:38 Using ADC under OS

Francis
Administrator
From: France-Grenoble
Registered: 2007-07-09
Posts: 890

Re: Using ADC under OS

It could be the input capacity of the ADC. If you switch very fast from one input to the next, the second value can be wrong. A solution could be to add dummy measurement of your input (and to discard the first data that could be corrupted by the last selection).

Offline

 

# 3   2009-03-30 11:00:57 Using ADC under OS

PK
New member
Registered: 2008-01-24
Posts: 6

Re: Using ADC under OS

I used circular measurement of 1 channel (ADC_NbrOfChannel )= 1....
But now I checked average of 4 measurements and it is quite stable.
How large could be a total error of conversion? For example, my voltmeter shows 1,52V
and Primer after calibration shows 1,50V.
It is correct?

Offline

 

Board footer