cancel
Showing results for 
Search instead for 
Did you mean: 

NUCLEO F303RE Analog reading spikes or noise. CubeMX Question.

Marius CO
Associate III

Hi,

Code mostly generated by CUbeMx, small config changes. I see spikes comming into ADC value. The termistor is between 10K and 5.6K. I took it an used a voltage generator, same reading with spikes. Same reading on NUCLEO dev board, same on a custom board based on NUCLEO 303

A already asked this question about 2 days ago. I am really on a short delivery and I ran out of options. I am reading 11 adc's on a user uart inquire. I have a problem with pa7 on which I have a termistor. The readings are inconsistent and small variations in mV give temp differences of 10 degrees magnitude.

I tried to average up to 8 samples over on 8 ms interval, but still readings appear inconsistent form time to time.

Coding details are here:

https://community.st.com/s/question/0D50X0000A1mcK1SQI/f303re-nucleo-analogue-reading-inconsistency

TEMP 20784
TEMP 20960
TEMP 20960
TEMP 20960
TEMP 20960
TEMP 20902
TEMP 20784
TEMP 20960
TEMP 20960
TEMP 20960
TEMP 20960
TEMP 20902
TEMP 20843
TEMP 5262 <<<<< oops
TEMP -11151  <<
TEMP -17785 << 
TEMP 20960
TEMP 21019
pa7 1435
 
pa7 1618
 
pa7 1900 <<<<<  spike
 
pa7 1436
 
pa7 1435
 
pa7 1435
 
pa7 1436
 
pa7 1436
 
pa7 1437
 
pa7 1436
 
pa7 1800  << --spike
 
pa7 1436
 
pa7 1434
 
pa7 1434
 
pa7 1433
 
pa7 1434

Thank you

0 REPLIES 0