Files
blog-code/godot-arduino-2-joystick-dashboard/README.md
T
tyler parker bb1d70c620 Godot + Arduino series: companion project code
Self-contained project code for the "Godot Isn't Just for Games" series:
Arduino sketches, the Python serial<->UDP bridge, and the Godot 4 projects,
one folder per article.
2026-08-09 21:14:55 +00:00

1.0 KiB

Part 2 — A Live Joystick Dashboard

Code for "Godot Isn't Just for Games: A Live Joystick Dashboard" (article coming soon).

Builds on Part 1: a 2-axis KY-023 joystick streams its position up the same bridge into a Godot console — a glowing dot tracks the stick across an XY pad in real time, with the LED button still working.

Contents

arduino/
  JoystickBridge/JoystickBridge.ino   # streams "x,y,btn" + still drives the LED
  bridge/bridge.py                    # same serial <-> UDP relay as Part 1
godot/
  ArduinoGodot/                       # Godot 4 project: XY pad + dot + LED button

Wiring (adds to Part 1)

KY-023 joystick: +5V→5V, GND→GND, VRx→A0, VRy→A1, SW→D2. Keep the LED from Part 1 on D13.

Run it

  1. Flash arduino/JoystickBridge/JoystickBridge.ino to the Uno.
  2. Bridge: python arduino/bridge/bridge.py (leave running).
  3. Godot: open godot/ArduinoGodot/ in Godot 4 and press Play — move the stick.