Go Down

Topic: reading logarithmic values on linear potentiometer (Read 844 times) previous topic - next topic

SymonCarpenter

Hey!

I'm trying to read my new slide potentiometer

data sheet:
http://files.voelkner.de/675000-699999/675480-da-01-en-60MM_DUAL_SCHIEBEPOTI_PS60M_10K_20_.pdf

(without LED)

but unfortunately I'm getting logarithmic values.
I checked with the multimeter and it gives me 5k at center position as it should, but on the seriell monitor I get 16 at the same position where it should be around 500-512, shouldn't it? :o

thanks in advance for your help!

DrAzzy

If you're getting 5k resistance at middle it's not a log pot; I suspect it's wired wrong.
ATTinyCore and megaTinyCore for all ATtiny, DxCore for DA/DB-series! github.com/SpenceKonde
http://drazzy.com/package_drazzy.com_index.json
ATtiny breakouts, mosfets, awesome prototyping board in my store http://tindie.com/stores/DrAzzy

dlloyd

I'm sure all could be explained knowing your pot's part#, how its connected and your code.

Paul_KD7HB

The data sheet you referenced tells you there are three different resistance tapers available and they are A, B, and C. Only B is linear taper. What model number do you have?

Paul

Wawa

I checked with the multimeter and it gives me 5k at center position as it should, but on the seriell monitor I get 16 at the same position where it should be around 500-512, shouldn't it? :o
Did you connect all three pins. +5volt, ground, and taper.

You could get low values if the 5volt connection is missing.
Leo..

SymonCarpenter

thank you very much for your help!

Turns out I confused the taper and the ground pin.


feeling a little bit stupid now

JohnLincoln

Don't feel stupid, we all make mistakes, and have to learn by them.
I'm glad you have got it sorted out.

Go Up