CAN BUS - TJA1050 CAN Transceiver Module

SKU: GA5004-1
CAN TJA1050 transceiver module top view with VCC, TX, RX and GND pins and the CANH and CANL terminal

CAN BUS - TJA1050 CAN Transceiver Module

SKU: GA5004-1
Default
Regular price $3.49
/
  • Free shipping on all orders over $100
  • Secure payments
  • In stock, ready to ship
  • Inventory on the way

Add $94.01 more for free shipping

Tax included. Shipping calculated at checkout.

You'll also need

Choose a quantity and add it to your cart.

Arduino UNO Compatible
$10.9910+ in stock
Breadboard 400 holes
$4.4910+ in stock
Breadboard Jumper Wire - 140pcs
$11.9910+ in stock

The TJA1050 CAN Transceiver Module is a 5 V, high-speed CAN bus transceiver board that links a CAN controller’s TX and RX pins to the CANH and CANL bus wires.

It suits boards that already have a CAN controller, such as the ESP32. Boards without one, like the Arduino UNO, need a controller module as well.

Chip
TJA1050
Max speed
1 Mbaud
Supply
4.75–5.25 V
Bus pins
CANH / CANL

Why choose it

  • Direct ESP32 connection — the ESP32’s built-in CAN controller connects straight to the TX and RX pins.
  • Protected bus pins — CANH and CANL tolerate −27 V to +40 V DC, with ±4 kV ESD protection and thermal shutdown of the transmitter.
  • Small and bus-friendly — 22.0 × 11.5 mm, and an unpowered node does not disturb the bus lines.

Specifications

Core
Transceiver chip TJA1050 (SO8)
Maximum data rate Up to 1 Mbaud
Maximum nodes At least 110 nodes on one bus
Bus pins (CANH / CANL) DC −27 V to +40 V, ±4 kV ESD (human body model)
Power and logic
Operating voltage 4.75 V to 5.25 V
Supply current (chip) Typically 5 mA recessive, 50 mA dominant
TXD input levels High ≥ 2.0 V, low ≤ 0.8 V
RXD output Referenced to the 5 V supply
Connections and physical
Pins VCC, TX, RX, GND, plus a CANH / CANL terminal
Dimensions 22.0 × 11.5 × 3.3 mm
Weight 0.8–1.0 g

Compatibility

Platform Works Notes
Arduino UNO / Nano (5 V) ✗ No No CAN controller on the board. Use the MCP2515 CAN module instead.
ESP32 (3.3 V) ✓ Yes Built-in CAN (TWAI) controller. Power the module from 5 V and divide the RX line down to 3.3 V.
Raspberry Pi / Pico ✗ No No CAN controller. Use the MCP2515 CAN module instead.
Software ✓ Yes ESP32: Arduino-ESP32 board package (TWAI driver, driver/twai.h).

In the box

Included
  • 1 × TJA1050 CAN transceiver module

Applications

  • Adding a CAN bus interface to an ESP32 project
  • Linking several ESP32 nodes over a two-wire CAN bus
  • Listening to a CAN bus with the ESP32 in listen-only mode

Tutorial

What you’ll build: a self-test that sends a CAN frame through this transceiver and reads it straight back on an ESP32 · About 20 minutes.

How it works

A CAN bus has two parts. The controller builds the messages. The transceiver (this module) turns them into the voltages on the two bus wires.

  • TX — messages going from your board to the bus.
  • RX — messages coming from the bus to your board.
  • CANH and CANL — the two bus wires. Their voltage difference carries the data.
  • GND — the return path; every GND must be joined.
ESP32 Tutorial

You need: ESP32 DevKitC (ESP32-WROOM-32), this module, 3 × 1 kΩ resistors (one is the series resistor, two make the 2 kΩ leg), 4–5 jumper wires, a USB data cable.

ESP32 DevKitC 5VGNDGPIO21GPIO22 TJA1050 module VCCGNDTXRX 1 kΩ 2 kΩ to GND 5 V3.3 V signal⚠ RX output is 5 V

■ Power (5 V) ■ GND ■ Signal (TX, RX) ⌒ = wires cross, not connected (none in this diagram)

# ESP32 pin Module pin Wire Notes
1 5V (labelled 5V or VIN) VCC Red The module needs 4.75–5.25 V. Do not use 3V3.
2 GND GND Black Every GND must be joined.
3 GPIO21 TX Yellow CAN transmit: ESP32 → module. A 3.3 V signal is fine.
4 GPIO22 RX Yellow CAN receive: module → ESP32. Goes through the divider below.
4a Module RX 1 kΩ → GPIO22 Yellow 1 kΩ resistor in series.
4b GPIO22 2 kΩ → GND Black 2 kΩ resistor to GND (two 1 kΩ in series works). Together they turn 5 V into about 3.3 V.

Check the pin labels printed on your board and on the module before you plug anything in.

Watch out: ESP32 pins are 3.3 V only. The module’s RX output swings up to its 5 V supply, so never wire it straight to a GPIO. Wire with the USB cable unplugged.

1
Wire it up
Unplug the USB cable, then connect the wires from the table above. Double-check VCC goes to 5V and not 3V3.
2
Install the Arduino IDE
Download it from arduino.cc/en/software and install it.
3
Add the ESP32 boards
Open File → Preferences, paste https://espressif.github.io/arduino-esp32/package_esp32_index.json into “Additional boards manager URLs”, then open Tools → Board → Boards Manager, search for esp32 by Espressif Systems and click Install (official guide).
4
Select the board and port
Tools → Board → esp32 → ESP32 Dev Module, then Tools → Port. If no port appears, use a data USB cable (not charge-only) and install the USB driver for your board.
5
Upload the self-test
Paste the code below, press Upload. If the upload fails, set Tools → Upload Speed to 115200 and upload again. If it stops at “Connecting…”, hold the BOOT button until uploading starts.
▸ Example 1 — CAN self-test (send a frame and read it back)
// Wiring: VCC->5V, GND->GND, TX->GPIO21, RX->GPIO22 (through a 1k + 2k divider)
#include "driver/twai.h"

const gpio_num_t CAN_TX_PIN = GPIO_NUM_21;  // goes to the module TX pin
const gpio_num_t CAN_RX_PIN = GPIO_NUM_22;  // comes from the module RX pin (via divider)

uint8_t counter = 0;

void setup() {
  Serial.begin(115200);                      // speed of the Serial Monitor
  Serial.println("OK - epartners.co.nz test");

  // Self-test mode: no other CAN node is needed to acknowledge frames
  twai_general_config_t g_config = TWAI_GENERAL_CONFIG_DEFAULT(CAN_TX_PIN, CAN_RX_PIN, TWAI_MODE_NO_ACK);
  twai_timing_config_t  t_config = TWAI_TIMING_CONFIG_500KBITS();  // you can change this
  twai_filter_config_t  f_config = TWAI_FILTER_CONFIG_ACCEPT_ALL();

  if (twai_driver_install(&g_config, &t_config, &f_config) != ESP_OK) {
    Serial.println("CAN driver install failed - check the board package");
    while (true) delay(1000);               // stop here
  }
  if (twai_start() != ESP_OK) {
    Serial.println("CAN start failed");
    while (true) delay(1000);
  }
  Serial.println("CAN started at 500 kbit/s (self-test mode)");
}

void loop() {
  // Build one standard frame and ask the controller to receive it too
  twai_message_t tx = {};
  tx.identifier = 0x123;                    // you can change this
  tx.data_length_code = 2;
  tx.data[0] = 0xAB;
  tx.data[1] = counter++;
  tx.self = 1;                              // self-reception request
  tx.ss = 1;                                // single shot, no retries

  twai_transmit(&tx, pdMS_TO_TICKS(1000));

  twai_message_t rx;
  if (twai_receive(&rx, pdMS_TO_TICKS(1000)) == ESP_OK && rx.identifier == 0x123 &&
      rx.data_length_code == 2 && rx.data[0] == 0xAB) {
    Serial.printf("Frame 0x123 sent and read back (count %u) - transceiver OK\n", rx.data[1]);
  } else {
    Serial.println("TJA1050 not responding - check wiring and the 5 V supply");
  }
  delay(1000);
}

✓ Check: Open Serial Monitor at 115200 baud. You see OK - epartners.co.nz test once, then a line every second: Frame 0x123 sent and read back (count …) - transceiver OK. If you see TJA1050 not responding, check the 5 V wire and the TX/RX wires.

This test needs no second CAN node. The ESP32 sends a frame out of its TX pin through the TJA1050, and reads it back on its RX pin, so a good result proves the transceiver and your wiring work.

Troubleshooting

Problem Likely cause Fix
“TJA1050 not responding” or no output No 5 V on VCC, TX and RX swapped, or a loose wire Check VCC is on 5V, GND is joined, GPIO21 goes to TX and GPIO22 to RX.
Upload fails or stops part-way Upload speed too high for the USB cable Tools → Upload Speed → 115200, then upload again.
Stuck on “Connecting…” Board not in upload mode Hold the BOOT button until uploading starts.
No serial port appears Charge-only cable or missing USB driver Use a data USB cable and install the USB driver for your board.
Works in self-test but not on a real bus Bit rate differs, or no 120 Ω termination at the bus ends Set the same bit rate on every node and add a 120 Ω resistor between CANH and CANL at each end of the bus.

Try next: connect CANH/CANL to a second CAN node and change TWAI_MODE_NO_ACK to TWAI_MODE_NORMAL so the nodes acknowledge each other’s frames.

Spotted a problem in this tutorial? Email support@epartners.co.nz and we’ll check it and update the tutorial.

Good to know
  • This is a transceiver, not a CAN controller. It needs a board with a built-in controller (like the ESP32) or a separate controller such as the MCP2515 CAN Bus Module Board (TJA1050).
  • Power it from 5 V (4.75–5.25 V). Its RX output is 5 V, so 3.3 V boards need a voltage divider on that wire.
  • A CAN bus needs a 120 Ω resistor across CANH and CANL at each end. The board has a small resistor marked 121 near the CANH/CANL terminal.

Video guide

Datasheet

Key figures from the manufacturer's datasheet for the TJA1050, the CAN transceiver chip on this module.

TJA1050 CAN transceiver (SO8)
Supply voltage (VCC) 4.75 V to 5.25 V
Absolute maximum VCC −0.3 V to +6 V
Maximum data rate Up to 1 Mbaud
CANH / CANL DC voltage −27 V to +40 V
ESD (human body model) ±4 kV on all pins
TXD input levels High ≥ 2.0 V, low ≤ 0.8 V
TXD dominant time-out 250 µs min, 450 µs typ, 750 µs max
Supply current, recessive 5 mA typ, 10 mA max
Supply current, dominant 50 mA typ, 75 mA max
Propagation delay, TXD to RXD 250 ns max
Transmitter thermal shutdown About 165 °C junction
Nodes on one bus At least 110
Virtual junction temperature −40 °C to +150 °C

Download the TJA1050 datasheet (PDF)

▸ Preview the datasheet

If the preview does not load on your device, use the download link above.

Source: Philips Semiconductors (now NXP), TJA1050 High speed CAN transceiver, product specification 9397 750 12157, Rev 4.

Resources

Which one should I choose?

Product Key difference Best for
This product (TJA1050 transceiver) Transceiver only: needs a CAN controller on your board ESP32 and other boards with a built-in CAN controller
MCP2515 CAN Bus Module Board (TJA1050) Adds an MCP2515 CAN controller (SPI) alongside a TJA1050 transceiver Arduino UNO, Raspberry Pi Pico and other boards without a CAN controller

FAQ

▸ Can I use this module with an Arduino UNO?

Not on its own. The UNO has no CAN controller, and this module only translates TX/RX signals to the bus. Use the MCP2515 CAN Bus Module Board (TJA1050) for the UNO, or use an ESP32 with this module.

▸ Can I connect it directly to an ESP32?

Yes. The ESP32 has a built-in CAN (TWAI) controller, so TX and RX connect to two GPIO pins. Power the module from 5 V and divide the RX wire down to 3.3 V with two resistors.

▸ What supply voltage does it need?

4.75 V to 5.25 V. Do not power it from the 3.3 V pin.

▸ How fast is it and how many nodes can I connect?

The TJA1050 supports up to 1 Mbaud, and the datasheet states at least 110 nodes can be connected to one bus.

Technical question about this part? Email support@epartners.co.nz with your board and wiring, and we'll help you get it working.

Shipping: $5.99 urban, $9.99 rural. Free shipping on orders of $100 or more.

Order by 10:30am (NZT), Monday to Friday, and we dispatch the same day. Orders placed after 10:30am, on weekends or on public holidays are dispatched the next business day.

Delivery usually takes 1–2 business days after dispatch (2–3 for rural addresses). See our Shipping Policy for full details.

This site is protected by hCaptcha and the hCaptcha Privacy Policy and Terms of Service apply.

Recently viewed