Forum 2005-2010 (read only)
Syntax & Programs
(Read 1 time)
Dec 23, 2008, 07:42 am
: Dec 23, 2008, 07:44 am by dev_000
guys i am trying to take readings 4m a pot.. i am using the foll ckt...
intially wen i connected the ckt i got values ranging from 100 to 1024... now wen i am connecting the ckt (the same one) i am getting variations 4m 150 to 400 range... can anyone tell me y this happens???
here is the code i used...
thanx in advance
Location: London, England
Go! Go! Arduinoooo !!!
Dec 23, 2008, 10:10 am
Maybe the pot is dirty or your Voltage source is not regulated and hence different each time you use it?
Location: Left Coast, CA (USA)
Measurement changes behavior
Dec 23, 2008, 10:36 am
What is the value of your pot? If it is 4 meg-ohms ( I see 4m in your post) then that is much too high as the impedance of the input of the Arduino will act like a voltage divider thus lowering your readings. The link you attached shows using a 10k pot and that should work fine.
Dec 23, 2008, 11:46 am
: Dec 23, 2008, 12:47 pm by dev_000
i am using a 10k pot... voltage source i am using is the one in the arduino... 5V port...
I would also like to know if something is faulty... voltage source isnt faulty chked it with a multimeter... any voltage i give should give a variation between 0- 1024 rite??
Dec 23, 2008, 01:01 pm
: Dec 23, 2008, 01:01 pm by dev_000
problem solved guys... it was a problem with the pot... changed it and it works gr8...