For this mission you will take your existing Ultrasonic robot with swiveling servo and add a single wired joystick.
Push the joystick forward and backward and the robot moves forward or backward.
Use the joystick to turn left or right.
This is all good prep for the remote control battle bot.
Let’s be honest: your robot will be on a very short wired leash. This is to show how the joystick can control two servos at once.
You won’t need to disconnect anything.
Just wire the joystick following the directions in the code linked below.
Sample code for joystick and two servos