From the course: Learning Arduino: Interfacing with Analog Devices
Unlock the full course today
Join today to access over 23,200 courses taught by industry experts.
Using the joystick to control LEDs - Arduino Tutorial
From the course: Learning Arduino: Interfacing with Analog Devices
Using the joystick to control LEDs
- [Instructor] In this section, I'm going to integrate couple of the components that we worked on. The first project, we are going to use LEDs with a joystick. As we move through each axis, the light intensity changes accordingly. This example can be applied as part of a project where you need to have an LED to indicate what axis you're using and what direction. And since the values of the joystick changes between zero and 1,023, then we can use these values to change the light intensity of the LED. This is done for the X-axis and for the Y-axis too. For the Z-axis, whenever we press on the joystick, a yellow LED lights up and turns off when we release it.
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
-
-
-
-
-
-
(Locked)
Using the joystick to control LEDs51s
-
(Locked)
Wiring up the joystick and LEDs32s
-
(Locked)
Coding for the joystick and LEDs6m 17s
-
(Locked)
Using an LDR sensor to control a motor21s
-
(Locked)
Wiring41s
-
(Locked)
Coding the LDR and sensor4m 9s
-
(Locked)
Using a joystick to control a motor49s
-
(Locked)
Wiring up the joystick and motor37s
-
(Locked)
Coding the joystick and motor5m 48s
-
(Locked)
-