Just made moved some wires around a little, but didn't change the circuit. Now it's stable even when wiggling, and becomes 0-1 with something in-between and 54-57 without something in-between.
OK, back to post #16 then, try a larger resistor.
Tried with a 50k. Now it's just 0-3 with something between and 25-28 without something in-between.
Sorry but I don't think this is the solution. For now I'll go to bed but I'll be ready tomorrow!
Bassusour:
Tried with a 50k. Now it's just 0-3 with something between and 25-28 without something in-between.Sorry but I don't think this is the solution. For now I'll go to bed but I'll be ready tomorrow!
Did you look at the SparkFun schematic that I linked to in Reply #17?
...R
I must have done something wrong when I first tested the circuit from post #13, since I got it to work now. Thanks for the help, I really appreciate it! You guys are awesome.
Hi,
How are you connecting all the wiring?
Good to hear you got it working.
Can you post a picture of your project so we can see your component layout?
Thanks... Tom.. ![]()
Yes, great that you got it working.
In addition to the picture suggested by Tom, future readers of this thread might be interested in what values you ended up with on the analogRead test? Based on the 10k resistor and datasheet, I'm thinking it should be about 2/3 of the supply voltage, so about 680 give or take a chunk, but with all the strange readings you got before, doubt is plaguing me.
Anyway, if you are using an old or poorly performing breadboard for your projects, then might I suggest getting a better replacement. They aren't terribly expensive and using a sub-standard one is only going to cause you frustration as your circuits get larger.