Skip to content

touchgadget/pcars2-dashboard

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Project Cars 2 and F1 2020 Dashboard

8x8 LED Dashboard showing gear and RPM

Show Project Cars 2 (PCars2) racing simulation game telemetry on an 8x8 RGB LED display.

The program runs on a Raspberry Pi with a Pimoroni Unicorn hat (8x8 RGB LED board). Plug the Unicorn board into the Raspberry Pi board. No soldering needed. This is running on a Raspberry Pi 2 but any Pi from 2-4 should work. It should also work on a Pi Zero. The code has been tested on PCars2 running on a Playstation 4 but should work with Xbox One and PC since they all support the UDP telemetry API. PCars1 and PCars3 are not supported.

The PCars2 API is documented here.

This program is based on the Patch 5 version. Be sure to look at the Shared Memory version even though it only works on the Windows version of the game. The Shared Memory header file has many more comments than the UDP version.

The Unicorn LED hat is here.

Pimoroni gear is sold in the US by Adafruit and probably others.

The Unicorn hat Python library is here.

The UDP telemetry option must be enabled in the game. Set the System Options UDP Frequency = 1 and UDP Protocol Version = 2.

UDP options

Like all the Unicorn examples, this program must be run as root!

sudo python3 pcars2show.py

or

sudo python3 f12020show.py