Skip to content

relectric-car-team/mcu-canbus-distance-sensor

Repository files navigation

CANBUS-Enabled Backup Sensor (AJ-SR04M)

This repository holds base code used for the distance sensor project. It will also create a CANBUS network using PIC MCUs and has builtin Serial UART capability at 115200 baud rate. This specific repo is designed to be used with the PIC18F27Q84.

Usage

To use this code, clone it to a local folder and rename it to canbus-mcu-distance-sensor.X, open folder in MPLABX and ensure that the project can compile successfully.

Microcontroller Setup

PIC18F27Q84 setup:

PIC Setup

Contributing

Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.

Please make sure to update/add tests as appropriate.

License

Please see the license for licensing information