Skip to content

Latest commit

 

History

History
60 lines (35 loc) · 1.55 KB

README.md

File metadata and controls

60 lines (35 loc) · 1.55 KB

HUD01 Arduino Build

This is a tutorial for building a hud for Diry Rally

video snapshot

Components

Enviroment Setup

  • Linux
  • Arduino IDE
  • Python3, pyserial

Wire Setup

Arduino uno is the same as nano

image

  • 8x8 LED

CLK -> D8

DIN -> D7

VCC -> 5V

GND -> GND

  • 4 digits

SCL -> A5

SDA -> A4

VCC -> VCC

GND -> GND

  • Voltmeter

+ -> D6

- -> GND

Build Arduino & Start

  1. Set up wire

  2. Connect Arduino board to your computer.

  3. Open, Compile & Upload hud_dev project. ( you may encounter a perimission issue, no fuss, just chmod a+rw to /dev/ttyUSBxport). If it was wired and set properly, the dots of the matrix should be all up either red or green execlusively and the 4 digits LED should be like ----. snapshot

  4. Assume you have configured your Dirt game properly, configure Arduino port in driver.py and start it by python driver.py or python3 driver.py, now it started to listen on UDP port.

  5. Open Dirt game, the hud start to read data while waiting for loading maps