Cirkit Designer LogoCirkit DesignerYour all-in-one circuit design IDE Launch Cirkit Designer App

How to Use RejsaCAN_OBD: Examples, Pinouts, and Specs

Image of RejsaCAN_OBDDesign with RejsaCAN_OBD in Cirkit Designer

Introduction

The RejsaCAN_OBD is a diagnostic interface designed for vehicles that utilize the CAN (Controller Area Network) protocol. It enables communication with the onboard computer systems, allowing users to read diagnostic trouble codes (DTCs), monitor real-time data, and analyze vehicle performance. This component is ideal for automotive diagnostics, performance tuning, and real-time data logging.

Explore Projects Built with RejsaCAN_OBD

Use Cirkit Designer to design, explore, and prototype these projects online. Some projects support real-time simulation. Click "Open Project" to start designing instantly!
Image of Arduino UNO WiFi CAN Bus Interface with Sensor/Actuator Module: A project utilizing RejsaCAN_OBD in a practical application
Arduino UNO WiFi CAN Bus Interface with Sensor/Actuator Module

This circuit features two Arduino UNO R4 WiFi microcontrollers interfaced with NS-LS2 light sensors and CAN_SN65HVD230 CAN bus transceivers. The Arduinos are configured to read light intensity data from the NS-LS2 sensors and communicate with each other over a CAN network, likely for a distributed sensing application. Power distribution is managed with 3.3V and 5V connections to the respective components, and the ground connections are shared across the devices to complete the circuit.

Open Project in Cirkit Designer

Common Applications and Use Cases

Technical Specifications

The RejsaCAN_OBD is designed to interface with the OBD-II port of vehicles and supports the CAN protocol. Below are the key technical details:

General Specifications

Parameter Value
Protocol Support CAN (ISO 11898)
Operating Voltage 5V (via microcontroller)
Communication Interface UART (Serial)
Baud Rate Configurable (default: 500 kbps)
Operating Temperature -40°C to +85°C
Dimensions 50mm x 25mm x 10mm

Pin Configuration and Descriptions

Pin Name Pin Number Description
VCC 1 Power input (5V)
GND 2 Ground connection
RX 3 UART receive pin (connect to TX of microcontroller)
TX 4 UART transmit pin (connect to RX of microcontroller)
CAN_H 5 CAN high signal (connect to vehicle OBD-II port)
CAN_L 6 CAN low signal (connect to vehicle OBD-II port)

Usage Instructions

How to Use the RejsaCAN_OBD in a Circuit

  1. Power the Module: Connect the VCC pin to a 5V power source and the GND pin to ground.
  2. Connect to Microcontroller:
    • Connect the RX pin of the RejsaCAN_OBD to the TX pin of your microcontroller.
    • Connect the TX pin of the RejsaCAN_OBD to the RX pin of your microcontroller.
  3. Connect to Vehicle OBD-II Port:
    • Connect the CAN_H pin to the CAN high line of the vehicle's OBD-II port.
    • Connect the CAN_L pin to the CAN low line of the vehicle's OBD-II port.
  4. Configure Communication: Set the baud rate of your microcontroller's UART to match the RejsaCAN_OBD's default baud rate (500 kbps, unless reconfigured).
  5. Send and Receive Data: Use serial commands to send requests and receive data from the vehicle's onboard systems.

Important Considerations and Best Practices

Example Code for Arduino UNO

Below is an example of how to use the RejsaCAN_OBD with an Arduino UNO to read data from a vehicle:

#include <SoftwareSerial.h>

// Define RX and TX pins for SoftwareSerial
SoftwareSerial RejsaCAN(10, 11); // RX = pin 10, TX = pin 11

void setup() {
  Serial.begin(9600); // Initialize Serial Monitor
  RejsaCAN.begin(500000); // Initialize RejsaCAN_OBD at 500 kbps

  Serial.println("RejsaCAN_OBD Initialized");
  delay(1000);
}

void loop() {
  // Send a request to the vehicle (e.g., engine RPM)
  RejsaCAN.println("010C"); // OBD-II PID for engine RPM

  // Wait for a response
  if (RejsaCAN.available()) {
    String response = "";
    while (RejsaCAN.available()) {
      char c = RejsaCAN.read();
      response += c;
    }
    Serial.println("Response: " + response);
  }

  delay(1000); // Wait 1 second before sending the next request
}

Notes on the Code

Troubleshooting and FAQs

Common Issues and Solutions

  1. No Response from the Module:

    • Ensure the vehicle's ignition is turned on.
    • Verify that the CAN_H and CAN_L connections are correct.
    • Check the baud rate configuration of your microcontroller.
  2. Incorrect or Garbled Data:

    • Confirm that the UART baud rate matches the RejsaCAN_OBD's baud rate.
    • Check for loose or faulty connections.
  3. Module Not Powering On:

    • Verify that the VCC pin is receiving 5V.
    • Check the ground connection.
  4. Vehicle Not Responding:

    • Ensure the vehicle supports the CAN protocol.
    • Verify that the OBD-II port is functional.

FAQs

Q: Can the RejsaCAN_OBD be used with vehicles that do not support CAN?
A: No, the RejsaCAN_OBD is specifically designed for vehicles that utilize the CAN protocol.

Q: How do I know if my vehicle supports the CAN protocol?
A: Most vehicles manufactured after 2008 support the CAN protocol. Check your vehicle's manual or OBD-II port specifications for confirmation.

Q: Can I use the RejsaCAN_OBD with other microcontrollers besides Arduino?
A: Yes, the RejsaCAN_OBD can be used with any microcontroller that supports UART communication, such as ESP32, STM32, or Raspberry Pi.

Q: Is it safe to leave the module connected to the vehicle?
A: Yes, but it is recommended to disconnect the module when not in use to prevent unnecessary power drain.

Q: How do I clear diagnostic trouble codes (DTCs)?
A: Send the OBD-II command 04 to clear all stored DTCs. Ensure you understand the implications of clearing codes before proceeding.