Arduino Joysticker

by saimmurtaza7447 in Circuits > Arduino

5068 Views, 33 Favorites, 0 Comments

Arduino Joysticker

images (5).jpg

This project is all about how to use an arduino with Joy stick and lcd

Things You Need

download.jpg
download (2).jpg
download (1).jpg
download (4).jpg

1x Arduino (Any type, I’m using an uno)

1x Breadboard (Sparkfun / Maplin )

1x 16×2 LCD Screen compatible with Arduino (Sparkfun / Maplin )

1x Thumb stick (I salvaged mine from a broken games controller) (Sparkfun )

1x Breakaway pins4x Bell Wire/Jumpers (Sparkfun / Maplin )

1x Wire Stripper1x Wire snips

1x Flat snip (For the breakaway pins)

Connection Lcd to Arduino

download (5).jpg

Connect pins 1,3 and 5 to the Arduino’s GND. (Doesn’t matter which one)

Connect pin 2 to the Arduino’s +5v

Connect pin 4 to the Arduino’s Digital Pin 12

Connect pin 6 to the Arduino’s Digital Pin 11

Connect pin 11 to the Arduino’s Digital Pin 10

Connect pin 12 to the Arduino’s Digital Pin 9

Connect pin 13 to the Arduino’s Digital Pin 8

Connect pin 14 to the Arduino’s Digital Pin 7

Connecting the Joystick

FOPTJRWGZQR3NR3.LARGE.jpg

Now let’s move onto the thumb stick, I’ve color coded all 6 pins on the thumb stick, each direction is Red, White and Black, they represent +5v, Analog signal and ground respectably.

Hook up the black wires into the ground rail, and the red wires into the +5v power rail, connect one white wire into analog in 0 and the other into analog in 1

Coding

download.jpg

click here for code

The PDF file is attached at top of the step

Uplode the code and enjoy playing with it