Led Indication by Joystick

by suman_1790 in Circuits > Arduino

2341 Views, 4 Favorites, 0 Comments

Led Indication by Joystick

IMG_20170826_194351.jpg

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

Capture.PNG

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

IMG_20170826_200124.jpg

Lets press and move the joystick button and check whether it is working properly or not.