2017-11-21 04:27 AM
Dear All,
I'd like to test an ADC conversion using ADC example from STM32F3Discovery's peripheral examples.
I connected ADC1 channel(PC1) and GND to external power supply directly. and It was measured anormalvoltage between PC1 and GND using FLUKE Multimeter 8846A.
But, as attached the ADC value on Terminal I/O, theresults are very unstable. Is that due to the bad connection for ADC input source? or I cannot catch the problem exactly. Could you please help the issue?
1. supplying 0V to ADC1 channel(PC1)
2. supplying 1.0V to ADC1 channel(PC1)
Solved! Go to Solution.
2017-11-21 06:44 PM
It could be induced noise from your multimeter. You can filter your signal adding a RC filter to the ADC input.
2017-11-21 04:49 AM
/* ADC1 regular channel3 configuration */
ADC_RegularChannelConfig(ADC1, ADC_Channel_7, 1, ADC_SampleTime_7Cycles5);I suggest to try a much longer sample time.
Like ADC_SampleTime_181Cycles5 or ADC_SampleTime_601Cycles5.
2017-11-21 06:23 AM
Thank you for your reply.
I tried a much longer sampling time with ADC_SampleTime_601Cycles5 but, it is still unstable.
2017-11-21 07:47 AM
... it is still unstable.
How much ?
The F3 discovery is not quite the best analog design, Vdda and Vref on the Disco is connected to Vdd (the digital supply), so you can't expect too much.
Does the input impedance of your source match, and how long are the wires ?
2017-11-21 02:17 PM
Do some statistics. What is the RMS error?
2017-11-21 05:41 PM
2017-11-21 05:45 PM
How much is it unstable?
> please refer to below RMSE result
How long are the wires
> about 30cm
Does the input impedance of your source match?
> I don't have technical knowledge about impedance matching.
2017-11-21 06:44 PM
It could be induced noise from your multimeter. You can filter your signal adding a RC filter to the ADC input.
2017-11-21 11:48 PM
> I don't have technical knowledge about impedance matching.
You could still learn, or ask a colleague proficient in hardware design.
And, as said, the F3 Discovery is not the optimal platform for analog precision measurements.
Averaging (software filter) might help as well.
Or, if you have the time and means, you can measure the spectre of the noise.
I guess you might see something like mains frequency (50 or 60Hz).
2017-11-22 03:59 AM
Thank you, ADC conversion result is stable after adding RC filter (1kohm, 0.1uF).
FYI, The Cut-off frequency Fc is 1591.549430919Hz with R=1kohm, C=0.1uF from
http://sim.okawa-denshi.jp/en/CRtool.php
.The problem has disappeared, but I wonder why high-frequency noise was induced to ADC input line.