Go Down

Topic: analogue input problems (Read 1 time) previous topic - next topic

spruce_m00se


One way to solve this is to do the reading twice (maybe with  slight delay) and then only use the last reading.
The reason is tht the ADC need some time to "recover"

Code: [Select]
tempC = analogRead(tempPin);          
delay(20);
tempC = analogRead(tempPin);
         


that seems to have improved it greatly.  now it is almost compeltely stable regardless of the pot variation ,
thanks

Go Up
 


Please enter a valid email to subscribe

Confirm your email address

We need to confirm your email address.
To complete the subscription, please click the link in the email we just sent you.

Thank you for subscribing!

Arduino
via Egeo 16
Torino, 10131
Italy