Intro: Joystick and Servo

This intro will guide you through building a real circuit with sample program that uses a joystick to control a standard servo.  Standard servos sweep from zero to 180 degrees.

You will use the joystick from your kit and the BLUE servo that came with your kit.

Use this wiring diagram to get started – I would include a breadboard in your circuit.  There is a link to a sample program below the wiring diagram.

Click here for the code for this circuit. Copy/paste from the Google Doc to a new Arduino Cloud program and upload to your circuit.

The inspiration for this can be found here.