This section describes the hardware and system architecture of the PiRacer & the Head Unit.
The following tables displays all components and its datasheets that are used for this project.
Car | Gamepad | Dashboard | Head Unit | Raspberry Pi | CAN Hat | CAN Hat | Arduino Uno | Speed Sensor |
---|---|---|---|---|---|---|---|---|
PiRacer Base | ShanWan Wireless Gamepad | Waveshare 9inch DSI LCD | Waveshare 7inch HDMI LCD | Raspberry Pi 4 | RPI 2CH CAN HAT | Arduino Uno 1CH CAN HAT | Arduino Uno | LM393 |
This is how the assembled PiRacer looks like:
The following tables are showing the wiring & connection of all Componentens.
LM393 | Arduino |
---|---|
VCC | 5V |
GND | GND |
OUT | D3 |
The CAN HAT can directly be mounted on the Arduino Uno.
Chanel 1 (L & H) is used for the CAN communication between the Arduino Uno CAN HAT and the Raspberry Pi CAN HAT.
The CAN HAT is connected to the Raspberry Pi 4 via the SPI interface.
The drivetrain of the PiRacer is connected via I2C with the Raspberry Pi 4.
USB for touch input and power supply as well as HDMI for the video input are used to connect the Raspberry Pi 4 with the Head Unit.
The LCD Display is connected on the Raspberry Pi using the DSI connector.
The Power (5V) is supplied via the GPIO pins.
I2C is used to get the touchscreen input.