Files
tyler parker f3f9d90cd0 fix: bridge.py - make part-neutral so part-1 download stops referencing part-2 files
The shared bridge shipped in both posts named Main.gd and
JoystickBridge.ino in its docstring and --baud help — so the part-1
(LED basics) download referenced files absent from its own project.
Neutralize the wording ("Godot", "the .ino sketch") so the same bridge
reads correctly in both downloads.
2026-08-10 17:01:09 -06:00
..

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
  bridge/start-bridge.bat              # Windows: double-click to start the bridge
  bridge/start-bridge.command          # macOS/Linux: double-click (or ./) to start the bridge
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: double-click arduino/bridge/start-bridge.bat (Windows) / arduino/bridge/start-bridge.command (macOS), or run python arduino/bridge/bridge.py. Leave it running.
  3. Godot: open godot/ArduinoGodot/ in Godot 4 and press Play — move the stick.