Led Indication by Joystick
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.
Apparatus:
- Joystick
- jumper wire
- power supply
- Arduino UNO
- 4 different colour LED
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.
Upload the Code
Upload the code to your Arduino board using arduino IDE.
Downloads
Move Joy Stick Button and Check It
Lets press and move the joystick button and check whether it is working properly or not.