|
Re: Use Joysticks w/ 2004 EDU
The easiest way to do this is as follows.
DB15 Pins:
1,8,9,15: connect to any of the "analog +5v" pins on the edu controller.
4,5,12: Any ground on the edu controller.
3: analog 1 "sig"
6: analog 2 "sig"
add the following code to user_routines.c right after "void Default_Routine(void){ ":
pwm01 = (unsigned char) (Get_Analog_Value(rc_ana_in01) >> 2);
pwm02 = (unsigned char) (Get_Analog_Value(rc_ana_in02) >> 2);
Hope this helps and that i wasn't too late.
__________________
1139 Alumni
|