|
|
|
![]() |
|
|||||||
|
||||||||
![]() |
|
|
Thread Tools | Rate Thread | Display Modes |
|
|
|
#1
|
|||||
|
|||||
|
Re: Knobs/Switches for the OI
The pinouts for all the ports on the OI are listed in this document: http://www.ifirobotics.com/docs/oi-r...c0-1-12-05.pdf
Use this to find an open port that will not be used by your joysticks and then wire in some potentiometes as outlined in the above post. We have done this successfully in the past with many standard potentiometers that can be found at radio shack. |
|
#2
|
||||
|
||||
|
Re: Knobs/Switches for the OI
Thankyou for the informaiton, Does anyone has a sample code to read the potentiometer in the RC.
|
|
#3
|
||||
|
||||
|
Re: Knobs/Switches for the OI
Hey,
I wired a 100K audio Potentiometer to OI. With the Middle and Outside terminals of the POT connected to the OI. I am getting the values from 231(min) - 254(max). Can any tell my what i am doing wrong or how i can increase this range. Thanks in advance. |
|
#4
|
||||
|
||||
|
Re: Knobs/Switches for the OI
Quote:
Yo Thoughtful, My guess is that you connected one end of the Pot. to +5vdc and the wiper to the sig. input, but didn't connect the remaining lead on the pot to gnd. If that is the case, then your pot is just acting as a pull up resister, an adjustable one at that. That is why you are only seeing numbers in the very high end of the max range. Once you connect the other end of the pot to gnd, you will , in essence, be spreading the +5v across the entire length of the pot. Now as you move the slider/wiper along the length of the pot, you will see values from ~255 to ~ 0. Actual numbers will slightly different. The other cause of what you are seeing is that you have an "open" in the wiring from gnd to the pot. |
![]() |
| Thread Tools | |
| Display Modes | Rate This Thread |
|
|