Okay so here's the deal, we have 2 Arduino's- 1 for the robot and one for the wireless remote control, 1 Attack-3 modified joystick, a Gizduino and a Gizbee. We're making soccer bots and we have the design ready. It has 3 main functions, X,Y and Kick. X and Y being the movements going upper left, upper right, lower left or lower right. But for now all we need to worry about is how to move the robot straight, reverse, turn left and turn right, and the motor that kicks the ball.
For the modified Attack-3 Logitech joystick we'll only be using the movements and the trigger for the program. When the trigger is pushed one motor has to work and kick the ball, When the joystick is pushed forward or backwards it should go in that direction, or if its pushed left or right one wheel has to move forward while the other wheel moves backwards until we release it. We will worry about the movements in small increments at a later time, I need your help for the following, listed by priority:
- A program for finding out which is which for the controls, example: X1Y2K1 (x and y for movements, and k for kick. 1 for on and 0 for off)
- Making the robot move left,right,forwards,backwards by moving around the joystick.
- When pushing the trigger, it will activate the third motor and "kick" the ball.
I'm at a complete loss about what I'm going to do here. Please at least give me something to base my work on or a framework sort of program where I can modify and adjust. Thank you!