KansaiRobot
Member
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![Eek! :eek: :eek:](data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7)
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:
and they draw the following
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)
Code:
Battery(5v)---------3[ Pot ]1---------Ground
2|__________________________ to the A/D
but then I read somewhere that I will need a "capacitor" (I have no idea what these are for)
so
2)
Code:
Battery(5v)------------------------3[ Pot ]1---------Ground
| 2|__________________________ to the A/D
|
|
|__________________| Capacitor(0.1µF)|-------------Ground
And then I read the docs on the pot that says:
the 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)
and they draw the following
3)
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
Last edited: