Go Down

Topic: How to choose the resistance of a pot for use with analog input (Read 1 time) previous topic - next topic

acapone

Hello,
I'm in the process of gathering parts for a Arduino based RGBW LED area/mood light.I plan on using five panel mount pots,four to control each of the colors via  PWM from the Arduino to the LED driver module's PWM pin and one for overall brightness control through PWM of the LED driver's supply through a MOSFET.
Anyway,I'm having trouble choosing the pots resistance.I'm new to Arduino and have no formal electronics training so please excuse any ignorance.
As I understand it using a pot with Adruino's analog input acts as a voltage divider,with the pots 'ends' connected across the supply and the wiper connected to the analog pin.So what effect does a pots resistance have on the function of the analog pin?I assume that a 5k pot and a 10k pot would act in the same way.Am I correct/incorrect? Am I missing something? Thanks in advance for any responses.

Grumpy_Mike

Quote
So what effect does a pots resistance have on the function of the analog pin?

As the analogue input pin is a very high impedance it has little effect. However, the analogue input is switched and the other side of the switch is a small capacitor. If you switch rapidly between analogue inputs the capacitor needs time to charge up to the new level. So unless the pot is below say 25K there is some affect of the previous pot on the reading of the current one.

Moral - use a 10K pot.

acapone

Seeing what you quoted I now realize that I could have greatly simplified my post. :smiley-red: I've been know to be "long winded" it's a curse (For those around me.)   :D Thanks for your help.

Grumpy_Mike

#3
Dec 14, 2011, 06:07 pm Last Edit: Dec 14, 2011, 06:10 pm by Grumpy_Mike Reason: 1
Don't worry often it take and outside view to cut to the chase.


Sent in a pub in Manchester with far too many beers inside me.   :)

AWOL

"Pete, it's a fool looks for logic in the chambers of the human heart." Ulysses Everett McGill.
Do not send technical questions via personal messaging - they will be ignored.

Grumpy_Mike

Well yesterday there was.

Triped up just outside my house and ended up in casualty. Grased knee, cut chin, strained calf muscle. Mind you it was a 7 hour lunch time with a frend I had not see for two years. He was the one who intreduced me to the Arduino in the first place.

Go Up