- Arduino (an Uno should be enough)
- A joystick
- 2 Servos (small enough that your arduino can power them both without an external power source)
- A breadboard (only if you want to see the wires better)
- Attach the joystick
VCCto 5vGNDto groundHORto an analogue input (default is 0)VERto an analogue input (default is 1)
- Connect the servos
- red to 5v
- black/brown to ground
- yellow/orange
- X-axis/horizontal into a digital input (default is 4)
- Y-axis/vertical into a digital input (default is 3)
- Change your settings in main.cpp
SERIAL_PRINTif you would likeSerial.printdebug messagesXPINOUTif you use a different pin for the horizontal servoYPINOUTif you use a different pin for the vertical servoXPININif you use a different analogue pin for the horizontal input from the joystickYPININif you use a different analogue pin for the vertical input from the joystick
- Upload the program
- Control the servos :)
