This repository serves as a centralized location to document and manage all peripherals, libraries, and related code integrated into the JetRacer project.
The goal of this repository is to:
- Keep track of all peripherals added to the JetRacer, including sensors, cameras, and other hardware components.
- Store and document libraries for communication protocols.
- Maintain code associated with each peripheral for easier management and collaboration.
- Description: Measures the vehicle's real-time speed and transmits the data to the system.
- Hardware: Arduino-based speed sensor.
- Communication Protocol with Jetson Nano: CAN Bus.
- Code: The Arduino code for processing and transmitting speed data is located in the
Pheripherals/speed-sensordirectory. - Setup:
- Connect the speed sensor to the Arduino as per the wiring diagram (included in the
Pheripherals/speed-sensordirectory). - Upload the provided code to the Arduino.
- Connect the speed sensor to the Arduino as per the wiring diagram (included in the
- Description: A library for interfacing with devices over the I2C communication protocol.
- Location:
/Communication/I2C. - Usage: Include the library in your project to communicate with I2C-compatible peripherals.
- Description: A library for communication using the CAN protocol, enabling data exchange between devices like the Jetson Nano and the arduino.
- Location:
/Communication/CAN. - Usage: Import the library to implement CAN-based communication for connected devices.
To maintain consistency, follow the steps below when adding a new peripheral to the repository:
- Create a New Directory: Create a directory for the peripheral (e.g.,
/camerafor a camera module inside /Pheripherals). - Add Documentation: Include a
README.mdfile in the directory with:- Peripheral Description: Explain the purpose and function of the device.
- Connection Details: Provide a wiring diagram or description.
- Code Details: Describe the code provided in the directory and how to use it.
- Update the Main README: Add a section for the new peripheral, linking to its directory.