analog joystick motor control
Author try to form voltage devider and on pic side is using picbasic POT command. So, X and Y axis must be connected to +5V. Used caps are 0.1 uF.
Command is like this:
POT pin,scale,variable
Measures resistance on "pin" by timing the discharge of a capacitor through the resistor (typ 5k-50k). "Scale" (1-255) is used to adjust for varying RC constants. If "scale" is set correctly, than "variable" is zero near minimum resistance and 255 near maximum resistance.
regards
meax98