AnalogRead won't work properly

sorry for the typos btw, my keyboard doesn't register key sometimes

Whatever, just post the schematic. Your wiring list does show what seem to be the right pot connections, but the connection you call "ground" may not be grounded, in the bigger view of the system as a whole.

You could use a DMM to verify continuity between that pot pin, and Arduino ground.

ok im drawing rn dont mind my sloppy hand writing

i have checked the pins, they were all working fine

We judge mainly on substance, not style.

I see no obvious software problem, so you likely missed something.

hmmmmm tbh i have cheked every problem but the pot goes to 0 when I connect the ground to the middle pin andgoes back up when I release it

Schematic?

still working on it

By the way, the behaviour you describe in the original post is normal. Disconnecting the ground would produce the highest reading, and shorting the wiper would in fact produce the lowest. I hope you're not just chasing a non-problem. Does the pot work normally otherwise? If not, how exactly does it not work correctly? Discounting special test connections...

Shorting the wiper while the pot is near maximum will damage the pot.

no im not chasing a non problem, I've been trying to figure out why changing the pots wiper doesn't change the analog reading

Okay, and what is that unchanging reading?

the analog reading it just stays at 1023

Did you do the test in reply #22?

i dont havemy dmm with me right now its 2 story down rn

Can you trace the connection visually?

yes

result?

done with scem send pic, hope you can work it out

1 Like