Skip to content

muki01/OBD2_K-line_Reader

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

🚗OBD2 K-line Reader

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

This code is for reading the K-Linke in Cars. With this code you can read sensor values, troubleshoot codes and more. It is compatible with ISO9141 and ISO14230(KWP slow and fast) protocols. I have shared schematics to communicate with the car. You can use these schematics or you can make another one. I used Arduino nano and ESP32 C3 as microcontrollers, but you can use another microcontrollers like STM32, ESP8266 and much more.

I will share more information about K-Line protocols and communication later. Stay tuned 😉.

You can also see this project for I/K Bus for BMW cars

⚙️Instalation

  • Open .ino file
  • 📚Instal these Libraries
    - ESPAsyncWebServer
    - AsyncTCP
    - ArduinoJson
    
  • Edit the pins for your Board
    #define K_Serial Serial
    #define K_line_RX 20
    #define K_line_TX 21
    #define Led 8
    #define Buzzer 1
    #define voltagePin 0
    
  • If you are using ESP32 C3,S2 or S3 board, you need to disable "USB CDC On Boot" option in Tools menu
  • Change Partition Scheme to "Huge APP (3MB No OTA, 1MB SPIFFS)" in Tools menu
  • Upload the code to your Board
  • Upload the Website to SPIFFS.
    • To upload the Web Site, you can use PlatformIO or you can upload with tool for Arduino IDE v1.x.x
      Here is documentation how to upload files to SPIFFS with Arduino IDE.

📱Pictures of the application I made

🛠️Schematics for communication

This is the schematic with Transistors

This is the schematic with L9637D

The device I made with ESP32 C3 SuperMini.