Information
Item weight
Barcode
Created time
Last updated on
Item description
รายละเอียดสินค้า

ใช้แปลงระหว่าง CAN bus เป็น TTL ซึ่ง CAN bus ปัจุบันเป็นที่นิยมมากในการสื่อสารระหว่างบอร์ดคุมมอเตอร์และบอร์ดไมโครคอนโทรลเลอร์ รวมถึงอุปกรณ์ย่อยๆในรถยนต์รุ่นใหม่ๆ 

CAN bus tranceiver ตัวนี้เป็นเพียงตัวแปลงสัญญาณ TTL ในรูปแบบ CAN Bus ให้เป็นระดับแรงดันแบบ CAN bus เหมาะกับ ESP32 ที่มี CAN bus controller ในตัวอยู่แล้วผ่านขา GPIO4 และ GPIO5 ซึ่งวิธีการใช้งานสามารถใช้ไลบรารี่

https://github.com/sandeepmistry/arduino-CAN ได้ทันที

ตัวอย่าง Code สำหรับใช้งาน TJA1050 กับ ESP32 

ฝั่งรับ


#include <CAN.h>

void setup() {
  Serial.begin(115200);
  while (!Serial);

  Serial.println("CAN Receiver");

  // start the CAN bus at 500 kbps
  if (!CAN.begin(125E3)) {
    Serial.println("Starting CAN failed!");
    while (1);
  }
}

void loop() {
  // try to parse packet
  int packetSize = CAN.parsePacket();

  if (packetSize) {
    // received a packet
    Serial.print("Received ");

    if (CAN.packetExtended()) {
      Serial.print("extended ");
    }

    if (CAN.packetRtr()) {
      // Remote transmission request, packet contains no data
      Serial.print("RTR ");
    }

    Serial.print("packet with id 0x");
    Serial.print(CAN.packetId(), HEX);

    if (CAN.packetRtr()) {
      Serial.print(" and requested length ");
      Serial.println(CAN.packetDlc());
    } else {
      Serial.print(" and length ");
      Serial.println(packetSize);

      // only print packet data for non-RTR packets
      while (CAN.available()) {
        Serial.print((char)CAN.read());
      }
      Serial.println();
    }

    Serial.println();
  }
}





ฝั่งส่ง


#include <CAN.h>

void setup() {
  Serial.begin(115200);
  while (!Serial);

  Serial.println("CAN Sender");

  // start the CAN bus at 500 kbps
  if (!CAN.begin(125E3)) {
    Serial.println("Starting CAN failed!");
    while (1);
  }
}

void loop() {
  // send packet: id is 11 bits, packet can contain up to 8 bytes of data
  Serial.print("Sending packet ... ");

  CAN.beginPacket(0x12);
  CAN.write('h');
  CAN.write('e');
  CAN.write('l');
  CAN.write('l');
  CAN.write('o');
  CAN.endPacket();

  Serial.println("done");

  delay(1000);

  // send extended packet: id is 29 bits, packet can contain up to 8 bytes of data
  Serial.print("Sending extended packet ... ");

  CAN.beginExtendedPacket(0xabcdef);
  CAN.write('w');
  CAN.write('o');
  CAN.write('r');
  CAN.write('l');
  CAN.write('d');
  CAN.endPacket();

  Serial.println("done");

  delay(1000);
}





The TJA1050 is the interface between the CAN protocol controller and the physical bus. The device provides differential transmit capability to the bus and differential receive capability to the CAN controller. The TJA1050 is the successor to the PCA82C250 high speed CAN transceiver. The most important improvements are: • Much lower ElectroMagnetic Emission (EME) due to optimal matching of the CANH and CANL output signals • Improved behaviour in case of an unpowered node.
 
Specifications:
Input:
  • 1-----+5V
  • 2-----RXD
  • 3-----TXD
  • 4-----Ground


Output:
  • CANH
  • CANL


TJA1050 Chip Product Features:
  • The power supply voltage: TJA1050: 4.75~5.25v
  • Logic signal level voltage TJA1050: Compatible with 3.3v and 5v
  • The number of nodes TJA1050: 110
  • Communication speed, high speed 1M b/s
  • Standby mode : TJA1050: None
  • Logic interface 2.54mm pin CAN interface 301 terminal block
  • Module size: 29mm X 11mm
 
Conditions
Tags

Exchange or return policy



Every item comes with a 30-day warranty. However, there are certain conditions that apply:

  1. The customer should not be responsible for any self-inflicted damage, such as incorrect power connections (for example, supplying 5V instead of the required 3.3V for a sensor).

  2. The product must be in perfect condition, without any breakage or damage caused by electricity (e.g., short circuits leading to electrical fires).

  3. The store does not accept product exchanges due to customer misunderstandings, such as purchasing the wrong size for their project or buying something without eventually using it. Customers can inquire about the product details and ensure compatibility before making a purchase by contacting us through our Line account @modulemore during business hours. Please note that there may be delays in response between 12:00 PM and 2:00 PM.

Return Policy: To initiate a product return, customers must provide the original receipt or a copy for quick verification. Returns can be sent to our store address by following these guidelines:

  1. Provide a detailed description of the damaged item(s).
  2. Mention any tests or experiments conducted by the customer.

Please note that the store reserves the right to make the final decision regarding product replacement or refund.

English

Categories

TRACK & TRACE

*Enter your order ID or email used in placing an order

OVERVIEW

Pageviews2,073,164 view(s)
Visitors1,333,890 time(s)
Last updatedSep 7, 2025

JOIN US

ร้านModuleMore
ร้านModuleMore
/www.modulemore.com/en
Join as a Member
600
Become a member of this store to receive special offers and promotions
Choose your language
Language
Currency
Change
Modify language
My orders
This seller's information
ร้านModuleMore
ModuleMore
Arduino compatible board, Iot, ESP32, ESP8266, Nodemcu, Raspberry pi, micro:bit and etc.
Mobile number : 0831710868
E-mail : paheyisoicus@gmail.com
Send message to seller
About this seller
Recently viewed items
Favourite this seller
Join as a Member
Share this page
Share this page

TOP Back to top
Contact me