Instrument Cluster
|
We implemented Tensor Regulators so that the servo motors of our JetRacer and our Raspberry Pi have the neccesary Voltage to function properly.
The Jetson communicates with the Raspberry via mqtt, with a Cloud Broker (HiveMQ) and a local Broker. We chose mqtt since its latency is pretty small, and it seems to get the job done well. The Raspberry is the one to display the information in the LCD, with informations of Jetson's temperature and battery, and also information of the speed directly from the speed sensor, with arduino via CAN.
This project demonstrates how to establish a CAN (Controller Area Network) communication between an Arduino and a Raspberry Pi. The Arduino reads speed data from a sensor, calculates the speed, and sends it to the Raspberry Pi over a CAN bus using an MCP2515 CAN module. The Raspberry Pi processes and displays the received data using Python.
Controller Area Network (CAN) is a robust communication protocol commonly used in automotive and industrial applications. This project involves: Using an Arduino to send speed data via a CAN bus. Configuring a Raspberry Pi to receive and process the data using Python.
MCP2515 Pin | Raspberry Pi GPIO Pin |
---|---|
VCC | 3.3V or 5V |
GND | GND |
CS | GPIO 8 (SPI0_CS0) |
SCK | GPIO 11 (SPI0_SCLK) |
MOSI | GPIO 10 (SPI0_MOSI) |
MISO | GPIO 9 (SPI0_MISO) |
INT | GPIO 25 (optional) |
MCP_CAN
, CAN-BUS Shield and install it.