From the course: Learning Arduino: Interfacing with Analog Devices
Unlock the full course today
Join today to access over 24,800 courses taught by industry experts.
Wiring up our joystick - Arduino Tutorial
From the course: Learning Arduino: Interfacing with Analog Devices
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.
Practice while you learn with exercise files
Download the files the instructor uses to teach the course. Follow along and learn by watching, listening and practicing.
Contents
-
-
-
What are analog devices?2m 3s
-
Understanding analog-to-digital converters1m 50s
-
(Locked)
Exploring our temperature sensor (TMP37)2m 29s
-
(Locked)
Understanding how to interpret the sensor values2m 55s
-
(Locked)
Interpreting the sensor values1m 16s
-
(Locked)
Wiring up the temperature sensor57s
-
(Locked)
Coding to read the temperature sensor4m 56s
-
(Locked)
LDR (light-dependent resistor) sensor1m 36s
-
(Locked)
Using a voltage divider with our LDR3m 43s
-
Wiring up our LDR circuit1m 26s
-
(Locked)
Coding to read the LDR circuit3m 56s
-
(Locked)
Joystick module2m 9s
-
(Locked)
Wiring up our joystick1m 9s
-
(Locked)
Coding the joystick circuit4m 47s
-
-
-
-
-