Salik Syed
24-03-2004, 20:50
Okay...so i want to drive the edubot via a joystick, so i solder a connecter that puts it out to PWM cables. Now the connecter etc.. works but i can't get the joystick to output anything except 255
basically the code is :
speed=Get_Analog_Value(rc_ana_in01);
speed1=speed/4;
pwm01=pwm02=speed1;
Now when i run printf says 255 all the time for speed1!
The joystick works, all the connectors are fine, but when i measure volts it always says ~5V even if you connect SIG and Ground or SIG and +5V or +5V and Ground
regardless of joystick movement!!!!>????
I went in to the code and set analog inputs to 3 etc...but before i had a gyro hooked in analog in 1 and it worked so i don't get why this doesn't work!
Any help appreciated
Salik
basically the code is :
speed=Get_Analog_Value(rc_ana_in01);
speed1=speed/4;
pwm01=pwm02=speed1;
Now when i run printf says 255 all the time for speed1!
The joystick works, all the connectors are fine, but when i measure volts it always says ~5V even if you connect SIG and Ground or SIG and +5V or +5V and Ground
regardless of joystick movement!!!!>????
I went in to the code and set analog inputs to 3 etc...but before i had a gyro hooked in analog in 1 and it worked so i don't get why this doesn't work!
Any help appreciated
Salik