We are familiarized with joystick. Given its ease of control, it's fun to control things using joystick.
In this project i'll explain how to turn on different colour led using joystick.
- jumper wire
- power supply
- Arduino UNO
- 4 different colour LED
Teachers! Did you use this instructable in your classroom?
Add a Teacher Note to share how you incorporated it into your lesson.
Step 1: Assemble the Circuit
For joystick connection
- Connect Rx pin to analog A0
- Connect Ry pin to analog A1
- Connect SW pin to digital pin 2
- Give 5 volt power supply to joystick from arduino
Here i used 4 led for indication purpose
Connect LEDs to digital pin 10,11,12,13 of your Arduino board.
Step 2: Upload the Code
Upload the code to your Arduino board using arduino IDE.
Step 3: Move Joy Stick Button and Check It
Lets press and move the joystick button and check whether it is working properly or not.
Participated in the
Makerspace Contest 2017