Pages: 1 [2]   Go Down
Author Topic: analogue input problems  (Read 755 times)
0 Members and 1 Guest are viewing this topic.
Offline Offline
Sr. Member
****
Karma: 0
Posts: 252
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

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:
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
Logged

Pages: 1 [2]   Go Up
Jump to: