กลับไปหน้ารวมไฟล์
arduino-joystick-to-lcd-display-2840e2-en.md

This project reads input from an analog joystick and displays the x and y coordinates to an LCD display! I was inspired to build this project after my partner gifted me the joystick as an early x-mas present.

This project requires an Arduino Uno R3, a 16x2 LCD display, a 10 Kohm potentiometer, a 2-Axis joystick and lots of wires!

Analog Navigation: Joystick to LCD

Before touch screens, joysticks were the king of UI navigation. The Joystick to LCD project teaches you how to read dual-axis analog inputs and translate them into a coordinate system on a digital screen.

X and Y Coordinate Mapping

An Arduino Joystick is functionally just two potentiometers stacked on top of each other.

  • X-Axis: Sent into Analog Pin A0. Values 0-1023. At rest, it hovers around 512.
  • Y-Axis: Sent into Analog Pin A1. Values 0-1023. At rest, it hovers around 512.
  • The Click: It also features a digital push-button switch when you press down on the thumbstick.

The Arduino code must interpret "Greater than 700" on the X-axis as "Move Cursor Right", and "Less than 300" as "Move Cursor Left".

Hardware Assembly

  • Arduino Uno/Nano: The processor.
  • Thumb Joystick Module: The controller.
  • 16x2 Text LCD or Nokia 5110 Graphics LCD.
  • Jumper Wires.

Building a User Interface

This project is the stepping stone to building full Settings Menus for your 3D printer or robots. You write functions that allow the user to push the joystick UP and DOWN to scroll through options (Temperature, Settings, Calibration) and "Click" to select an option perfectly.

ข้อมูล Frontmatter ดั้งเดิม

apps: []
author: "dadbod"
category: "Basic Electronics"
components:
  - "20x Jumper wires (generic)"
  - "1x Rotary potentiometer (generic)"
  - "1x Standard LCD - 16x2 White on Blue"
  - "1x Arduino UNO"
description: "Navigate menus! Learn how to extract X/Y coordinates from an analog joystick module and use them to move a cursor or navigate a menu on an LCD."
difficulty: "Intermediate"
documentationLinks: []
downloadableFiles:
  - "https://projects.arduinocontent.cc/ab6a6b98-d21a-4479-af74-fa31977f0205.ino"
encryptedPayload: "U2FsdGVkX19ooLkQgfgq/8akm+L2ixo97Sgvtb+r4BygrJPwP0x0L84TLw9g/cDwvKNiaiZWVuiIpgMW9/nTfw7YGiGAK++GLjLE4WWo3zoNneb7dE0uL9GX8/LfGCW/9fU6ddayDG452+lg2pYmSbtgagyk1mTmoF6FuUib9mg="
heroImage: "https://cdn.jsdelivr.net/gh/bigboxthailand/arduino-assets@main/images/projects/arduino-joystick-to-lcd-display-2840e2_cover.jpg"
lang: "en"
likes: 0
passwordHash: "f8881dbfdc4a8ac5c4301de4fb288dfa6b72ee2ca2a0ad754bdb5311475fdc12"
price: 1120
seoDescription: "Learn to connect an analog joystick to Arduino Uno R3 and display X, Y coordinates on an LCD screen. Easy DIY project."
tags:
  - "data collection"
  - "fun"
title: "Arduino Joystick to LCD Display"
tools: []
videoLinks:
  - "https://player.vimeo.com/video/782596551"
views: 13147