Go Down

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


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);          
tempC = analogRead(tempPin);

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

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!

via Egeo 16
Torino, 10131