Skip to content

Latest commit

 

History

58 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

🚗OBD2 CAN_BUS Reader

GitHub forks GitHub Repo stars GitHub Issues or Pull Requests GitHub License GitHub last commit

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.

🔗 Looking for the Web UI? You can explore the dedicated user interface repository here: OBD2 K-Line Web UI Project

You can also see my other car projects:

  1. Тhis project is for BMW with I/K bus system.
  2. Тhis project is for Cars with CAN Bus.
  3. Тhis project is for Cars with ISO9141 and ISO14230 protocols.
  4. Тhis is my OBD2 CAN Bus Communication Library for Arduino IDE.
  5. Тhis is my OBD2 K-Line Communication Library for Arduino IDE.
  6. Тhis project is for VAG Cars with KW1281 protocol.

⚙️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

Warning

I am not responsible for any issues or damages that may occur during your testing. Please proceed with caution and at your own risk.

📱Pictures of the application I made

📂 The UI for this application has been moved to a separate repository. You can check out the source code and details here: Explore the Web UI Repository

🛠️Schematics for communication

📷 PCBs manufactured for this project:


☕ Support My Work

If you enjoy my projects and want to support me, you can do so through the links below:

Buy Me A Coffee PayPal GitHub Sponsors


📬 Contact

For information, job offers, collaboration, sponsorship, or purchasing my devices, you can contact me via email.

📧 Email: muksin.muksin04@gmail.com


Releases

Sponsor this project

Packages

Contributors

Languages