CAN Bus connector pin out

CAN bus (Controller Area Network bus), now widely used in the automotive industry, factory machine automation, medical industry, etc… Often you will come across a CAN bus cable and connection.

The underlaying physical signal of the CAN bus is actually the same differential signal on RS485/RS422. CAN bus value-add with the data communication protocol running on the RS485 kind of physical wires.

CAN Bus pin out (for D-sub09 male/female connector, for RJ45 8P8C connector)

There are various cable and connector standard using CAN Bus protocol. Some system uses D-sub09 male/female connector, some uses RJ45 8P8C jack. There are also CAN Bus implemented on XLR 4 pins connector, as well as . Power supply on the CAN Bus system can be 12V/24V. It depends on the system implementing the CAN Bus.

Connector pin out: D-sub09 (male/female)

  1. reserved
  2. CAN-
  3. GND
  4. reserved
  5. CAN-SHIELD
  6. GND
  7. CAN+
  8. reserved
  9. CAN-V+

Connector pin out: RJ45 (8P8C jack)

  1. CAN+
  2. CAN-
  3. GND
  4. reserved
  5. reserved
  6. CAN-SHIELD
  7. GND
  8. CAN-V+

Connector pin out: XLR 4 pins

  1. 24V
  2. CAN+
  3. CAN-
  4. GND

Connector pin out: M12 Circular Connector 5 pins

  1. CAN-SHIELD
  2. 24V
  3. GND
  4. CAN+
  5. CAN-

Background about CAN Bus

It was initially developed by Bosch in the mid-1980s to address the complex wiring harnesses found in modern vehicles, which were becoming increasingly complex due to the introduction of advance electronic control units (ECUs) and sensors. It is a communication standard designed for the vehicle industry to allow microcontrollers and devices to communicate with each other within a vehicle without a host computer.

The primary goal of the CAN bus was to reduce the amount of wiring needed in vehicles while providing a reliable communication protocol for various vehicle systems, such as engine management, transmission control, anti-lock braking systems (ABS), airbag systems, and more.

Key features of the CAN bus include:

Differential Signaling: CAN bus uses a differential signaling scheme, where data is transmitted as a voltage difference between two wires (CAN-High and CAN-Low). This provides immunity to noise and interference, making CAN bus communication reliable in noisy automotive environments.

Multi-Master: CAN bus allows multiple nodes (ECUs or devices) to transmit and receive data on the bus simultaneously. This is facilitated by a non-destructive arbitration mechanism where messages with higher priority are given precedence on the bus.

Deterministic Communication: CAN bus provides deterministic communication, meaning that messages are transmitted and received with predictable timing. This is essential for real-time control applications in vehicles.

Error Detection and Fault Tolerance: CAN bus incorporates built-in mechanisms for error detection and fault tolerance. Each message sent on the bus includes a cyclic redundancy check (CRC) to detect errors, and the protocol supports error handling mechanisms such as automatic retransmission of corrupted messages.

CAN bus has become the industrial standard for in-vehicle networking due to its reliability, simplicity, and cost-effectiveness. It has been widely adopted across the automotive industry and is also used in various other applications beyond automotive, including industrial automation, medical devices, and more. Over time, the CAN bus standard has evolved, with newer versions introducing enhancements such as higher data rates and improved error handling capabilities.

Check out our best seller general purpose Cable Tester tool.

DEX to RS232 cable pin out

DEX (Digital Equipment Exchange) is one of the protocol used in the vending machine industry. There are other protocol standard like the MDB which is also popular in the vending industry.

The DEX to RS232 cable is often use for connecting between the vending machine peripheral devices. It is also a common cable for connecting your computer to the DEX network on your vending system.

DEX to RS232 cable pin out

Connectors

DEX connector uses a 3 pins 6.35mm stereo jack (or also known as 1/4″ stereo plug). This jack is the same plug that is widely used on cables in the audio industry.

The pin out of a DEX connector: The tip of the jack is receiving the serial communication data, while the middle ring contact is for the transmit. The last big patch ring is common ground reference for the data signal.

The RS232 uses a D-Sub female 9 pins connector. This side can be plugged to the RS232 port of your computer, or can be connected to a RS232-to-USB converter, so that you can get connected to the serial communication data via the USB port instead. RS232 port is kind of rare in modern computers. RS232 to USB is a very common converter that allow us to connect to RS232 devices from our computer these days.

DEX cable and accessories

You can get your DEX connector, DEX harnesses, DEX to RS232 cable and converter from online.

The following are some of the online places where you can get your DEX stuffs.

Check out our best seller general purpose Cable Tester tool.

I2C Pin Out (STEMMA from Adafruit)

STEMMA is a connector system designed to simplify connecting sensors and other devices to microcontrollers and single-board computers. Used by Adafruit, STEMMA aims to streamline the process of prototyping and building electronics projects.

Do take note that STEMMA is a different connector to STEMMA QT. The pin out is similar but the connector is much smaller for STEMMA QT, suitable for smaller sensor circuit board.

I2C pinout for STEMMA from Adafruit

The I2C cable connector from STEMMA (Adafruit) is compatible to Grove (Seeed Studio). Their connector and the pin out are the same.

STEMMA I2C connector details

STEMMA I2C inter-connection system uses PH series from JST. JST specialises in connector product. The following is the datasheet and drawing for the JST PH series connectors use.

Cable Plug

Housing part number: PHR-4
– Available from Digikey: 455-1164-ND

Crimp Pin part number: SPH-002T
– Available from Digikey: 455-1127

Board Socket

– Socket part number: B4B-PH-K-S (Available from Digikey: 455-1706-ND)
– Socket part number: S4B-PH-K-S (Available from Digikey: 455-1721-ND)

Tools Accessories

Check out our best seller general purpose Cable Tester tool.