Quote:
|
Originally Posted by FotoPlasma
Have you tried using different joysticks or potentiometers? It sounds like you either have something connected wrong or you are using a defective joystick.
|
Well, the problem is you can connect the joystick directly to the analog input of the EDU bot (or the RC for that matter), with out modifiying the joystick or adding an external resistor. (or other circuitry)
To hook a pot up to the analog input, you connect one side to +5, the other to Gnd, and the center to the input. this the creates a voltage divider such that the voltage on the signal pin varies as you turn the knob.
However, with a joystick, only one of the ends, (the Gnd side) and the wiper are wired to the connector. To hook it directly to the analog input you would either need to connect the other side of the pot in the joystick to +5, or connect a resistor from signal to +5. 50k is about what you want I think (1/2 total value of the joystick. )
The problem with the external resistor is that value read by the joystick is no longer linear with the movement of the joystick.