
The first thing that comes to mind when you think of joysticks is gaming. Although these components can be used to create a variety of games with your Arduino, they’re also useful for controlling robots, motors and servos. Joysticks are composed of 2 potentiometers (one that changes with up and down movements and another for left to right movements) and an off/on switch that is activated by pushing the knob down. We’ll learn to read the values coming from our joystick and then use them to perform a variety of actions like changing the brightness and colors of LEDs and controlling servos and motors.
MATERIALS:
You’ll be able to follow along and build all the projects featured in this course with the ELEGOO UNO Project Super Starter Kit.
LESSON CONTENT:
- Introduction to Joysticks
- Understanding x and y-axis ADC values
- Incorporating a joystick in your circuit
- Using the serial monitor to read x and y values
- Controlling the brightness of LEDs with a joystick
- Changing the color of a RGB LED with a joystick
- Mapping ADC values from the joystick to PWM values of the LEDs
- Control servos with a joystick
- Control speed and direction of DC motors with a joystick
- Assignment