Mr.Cool
Advanced Member level 2
mixing joystick outputs
i was just wondering if anyone can point me to a web site or can provide advice for a project i am doing. i have an analog joystick. i wish to control 2 motors with this joystick. i have the motor control hardware done. simple H-Bridge circuit. now i must provide a PWM signal to the legs of the H-Bridge. i would like to use the PIC 16F877 because i get them free and cause they have ability for PWM output.
my input comes from an analog joystick. This is what i was thinking. Connect Y-Axis resistor between +Vcc ang GND. add a series resistor following this formula:
Joystick Series Resistor = (+Vcc/.02) and 10K - (Joystick R)/2
input this analog signal into 16F877 A/D input.
do the same for the X-Axis input.
now i need software to do channel mixing such that ONE joystick can control 2 motors. preferably i would like this code in Pic Basic or Assembly.
thx for any help you can provide
Mr.Cool
i was just wondering if anyone can point me to a web site or can provide advice for a project i am doing. i have an analog joystick. i wish to control 2 motors with this joystick. i have the motor control hardware done. simple H-Bridge circuit. now i must provide a PWM signal to the legs of the H-Bridge. i would like to use the PIC 16F877 because i get them free and cause they have ability for PWM output.
my input comes from an analog joystick. This is what i was thinking. Connect Y-Axis resistor between +Vcc ang GND. add a series resistor following this formula:
Joystick Series Resistor = (+Vcc/.02) and 10K - (Joystick R)/2
input this analog signal into 16F877 A/D input.
do the same for the X-Axis input.
now i need software to do channel mixing such that ONE joystick can control 2 motors. preferably i would like this code in Pic Basic or Assembly.
thx for any help you can provide
Mr.Cool