From the course: Learning Arduino: Interfacing with Analog Devices

Unlock the full course today

Join today to access over 22,600 courses taught by industry experts or purchase this course individually.

Wiring up our joystick

Wiring up our joystick - Arduino Tutorial

From the course: Learning Arduino: Interfacing with Analog Devices

Start my 1-month free trial

Wiring up our joystick

- [Instructor] So I'm going to go ahead and do the wiring for the joystick. The very first thing I'm going to do is I'm going to connect the ground and VCC. So ground, the first pin goes to ground here in the Arduino board. And the five-volt go to the five volts on the Arduino board. For the x-axis, I'm going to connect it to A0 on the Arduino board. For the y-axis, I'm going to connect it to A1, which is analog input one on the Arduino board, and finally, the z-axis, which is the switch, I'm going to connect the switch to the digital input eight. So if you'd like to have a summary of all the connections, here's an overview of the connection that we did for the joystick.

Contents