
88 Make: Robotic Arms
WHAT ARE WE BUILDING?
Now that we understand the basics of how a joystick works, we can integrate
one into our robotics projects. All we need to do is wire the joystick and add
a few lines of code. In this project, we’ll go over a basic method for building
a joystick circuit and programming an Arduino to read and use the joystick
data.
STEP 1: WIRING THE JOYSTICK
For our first joystick circuit, we’re going to keep things nice and simple. In
fact, look back to the pins we used in our first dual potentiometer circuit, and
you’ll see we’re going to be using the same ones (Figure
5-3
). In this image,
the first pin is labeled VCC. ...