JOYSTICK TESTING WITH DESHBOT

by devkrishnavhora in Circuits > Arduino

6 Views, 0 Favorites, 0 Comments

JOYSTICK TESTING WITH DESHBOT

WhatsApp Image 2026-08-27 at 2.35.41 PM.jpeg

This project demonstrates how to connect and use a joystick module with an Arduino Nano and the DESHBOT Shield. The joystick is used as an input device, while an OLED display shows the joystick movement and values in real time.

The project is simple, compact, and useful for learning how analog and digital input

Supplies

WhatsApp Image 2026-08-27 at 2.28.38 PM.jpeg

Arduino Nano

DESHBOT Shield

Joystick Module

I2C OLED Display

Connecting wires

USB cable

Connections

WhatsApp Image 2026-08-27 at 2.35.41 PM.jpeg

Joystick Connection

The joystick is connected to the DESHBOT Shield as follows:

  1. VRX → Pin A1
  2. VRY → Pin A2
  3. VCC → 5V
  4. GND → GND

OLED Display Connection

The I2C OLED display is connected as follows:

  1. VCC → 5V
  2. GND → GND
  3. SDA → A4
  4. SCL → A5

The Arduino Nano is mounted directly onto the DESHBOT Shield, making the component connections easier and more organized.

Coding and Uploading


  1. Open the Arduino IDE on your computer.
  2. Connect the Arduino Nano with the DESHBOT Shield using a USB cable.
  3. Select Arduino Nano from Tools → Board.
  4. Select the correct Processor and COM Port.
  5. Install the required libraries:
  6. Adafruit GFX Library
  7. Adafruit SSD1306 Library
  8. Copy and paste the joystick and OLED program into the Arduino IDE.
  9. Check that the pin definitions match the DESHBOT Shield connections:
  10. VRX → D13
  11. VRY → A0
  12. OLED SDA → A4
  13. OLED SCL → A5
  14. Click the Verify button to compile the code.
  15. Click Upload to upload the program to the Arduino Nano.
  16. After uploading, move the joystick and observe the joystick values on the OLED display.


Downloads

Working Principle

WhatsApp Image 2026-08-27 at 2.35.59 PM.jpeg
WhatsApp Image 2026-08-27 at 2.36.07 PM.jpeg
WhatsApp Image 2026-08-27 at 2.35.41 PM.jpeg

The joystick has two movement directions: X-axis and Y-axis. When the joystick is moved, the Arduino Nano reads the signals from the joystick pins.

The VRY signal is read through analog pin A0, and its value changes according to the joystick position. The joystick data is then processed by the Arduino Nano.

The OLED display shows the joystick information in real time. This allows the user to visually monitor the joystick movement and sensor values.

How It Works

  1. Connect the Arduino Nano to the DESHBOT Shield.
  2. Connect the joystick module to the required shield pins.
  3. Connect the OLED display using the I2C pins.
  4. Upload the Arduino program.
  5. Power the Arduino Nano.
  6. Move the joystick in different directions.
  7. The Arduino reads the joystick input.
  8. The OLED display updates and shows the joystick values.

Features

  1. Real-time joystick input reading
  2. OLED display output
  3. Compact design using the DESHBOT Shield
  4. Easy Arduino Nano programming
  5. Useful for robot and game controller projects
  6. Simple connection and operation


Conclusion

The Joystick Control System using Arduino Nano and DESHBOT Shield is a simple project for understanding joystick input and OLED display interfacing. The DESHBOT Shield makes it easier to connect the Arduino Nano and external modules. The project can also be expanded in the future to control motors, robots, menus, or other electronic devices.