Hello. This is my first Post.
Although I have experience programming, I have almost zero experience with circuits and electronics so any help will be greatly appreciated. Please bear in mind that I am not sure of even the basics
Anyway, I have been asked to build a new project that has three components: A potentiometer, A microcontroller, and an actuator. I would like to concentrate first on the first: The potentiometer
I know the theory behind so I would really like to ask about how to wire the potentiometer
first I thought something very simple:
1)
but then I read somewhere that I will need a "capacitor" (I have no idea what these are for)
so
2)
And then I read the docs on the pot that says:
3)
Now they dont even put the values of this R2 and capacitor....I am very confused.
Can someone teach or point me please to the simplest way to attach a potentiometer to a battery and use the connection 2 as an input to the A/D of the microcontroller.
Any help will be greatly appreciated.
Thanks in advance
Kansai
Although I have experience programming, I have almost zero experience with circuits and electronics so any help will be greatly appreciated. Please bear in mind that I am not sure of even the basics
Anyway, I have been asked to build a new project that has three components: A potentiometer, A microcontroller, and an actuator. I would like to concentrate first on the first: The potentiometer
I know the theory behind so I would really like to ask about how to wire the potentiometer
first I thought something very simple:
1)
Rich (BB code):
Battery(5v)---------3[ Pot ]1---------Ground
2|__________________________ to the A/D
so
2)
Rich (BB code):
Battery(5v)------------------------3[ Pot ]1---------Ground
| 2|__________________________ to the A/D
|
|
|__________________| Capacitor(0.1µF)|-------------Ground
and they draw the followingthe contact resistance(R1) in this sensor is set to a high level because its output terminal is designed to directly connect to the A/D port of the microprocessor. Consequently set the connection impedance (R2) to 1Mohm or more to eliminate the influence of the contact resistance(R1)
3)
Rich (BB code):
Battery(5v)----------------3[ Pot(R1) ]1---------Ground
2|
|_____[R2]-----Ground
|
|
|_____|capacitor|----Ground
|
|__________________________ to the A/D
Can someone teach or point me please to the simplest way to attach a potentiometer to a battery and use the connection 2 as an input to the A/D of the microcontroller.
Any help will be greatly appreciated.
Thanks in advance
Kansai