Retrieving Signal From an Old Joystick

68

1

4

Posted in TechnologyArduino

Introduction: Retrieving Signal From an Old Joystick

About: I am an electronics enthusiast and a software engineer from eastern Europe.

This is a project that I started working on when I found an old joystick with a D15 port (game port).

Step 1: Watch the Video

Step 2: What You Will Need

1 x Arduino board

1 x Joystick with D15 port

2 x 10k resistors

2 x 100k resistors

jumper wires

(optional) breadboard

Step 3: Wiring and Connecting to the Arduino

Use the 100K resistors for the digital pins ,where you will read the signal from the buttons, and the 10k resistors for the analog pins, where you will read the analog signal from the XY axis.

Connect the 5v from the Arduino to the joystick and the GND to the resistors

Step 4: Upload the Code to the Arduino

You can fin the code here:

https://pastebin.com/tzUe8Te3

One you upload the code you can open the serial monitor, or serial plotter and view the data it gets from the analog pins.

Step 5: Stay Tuned for Part 2

I am planing on making a game so I can use the joystick to play it. It will possibly be an arcade type of game.

Share

    Recommendations

    • Spotless Contest

      Spotless Contest
    • Science of Cooking

      Science of Cooking
    • Space Challenge

      Space Challenge
    user

    We have a be nice policy.
    Please be positive and constructive.

    Tips

    Questions

    4 Comments

    Neat. Very good luck with the overall project :-) I love the old hardware and it's great to see it getting put to use again.

    1 reply