An open API service indexing awesome lists of open source software.

https://github.com/muki01/obd2_can_bus_reader

OBD2 CAN Bus Read with Microcontrollers Like ESP32
https://github.com/muki01/obd2_can_bus_reader

canbus canbus-communication canbus-communications canbus-messages canbus-receiver canbus-sender canbus-sniffer iso11898 iso15765 iso15765-2 iso15765-4 obd obd-ii obd2

Last synced: 21 days ago
JSON representation

OBD2 CAN Bus Read with Microcontrollers Like ESP32

Awesome Lists containing this project

README

        

# đźš—OBD2 CAN_BUS Reader

This code allows you to interface with the CAN Bus in vehicles. It enables you to read sensor values, diagnose trouble codes, and more. It supports various baud rates (125KBPS, 250KBPS, 500KBPS, 1MBPS) and both 11-bit and 29-bit CAN identifiers.

I will share schematics to communicate with the car. You can use these schematics. I am currently testing this code with ESP32 S3. For now it will only work with ESP32 boards, I will do it for other boards in the future.

In the future, I will release a separate repository that dives deeper into CAN Bus functionality. In that project, I'll show how you can control various vehicle systems such as headlights, windows, locks, and more using the CAN Bus. I am currently testing this feature, and it works well.

You can also see my other car projects:
1. [Тhis](https://github.com/muki01/I-K_Bus) project is for BMW with I/K bus system.
2. [Тhis](https://github.com/muki01/OBD2_K-line_Reader) project is for Cars with ISO9141 and ISO14230 protocols.

## ⚙️Instalation
* Edit the pins and options for your Board
~~~
#define TX_GPIO_NUM GPIO_NUM_9 // CAN TX pin
#define RX_GPIO_NUM GPIO_NUM_10 // CAN RX pin
#define CAN_SPEED TWAI_TIMING_CONFIG_500KBITS() // CAN SPEED 125KBITS, 250KBITS, 500KBITS or 1MBITS
#define CAN_BIT 29 // 11BIT or 29BIT
~~~
* Upload the code to your Board

## 🛠️Schematics for communication

## The device I made with ESP32 S3 SuperMini.