WINGONEER MCP2515 CAN Bus Module TJA1050

WINGONEER MCP2515 CAN Bus Module with TJA1050 Transceiver User Manual

1. Киришүү

This manual provides detailed instructions for the WINGONEER MCP2515 CAN Bus Module with TJA1050 Transceiver. This module is designed to facilitate CAN (Controller Area Network) communication in various embedded systems and DIY projects, including those based on Raspberry Pi, 51 series microcontrollers, ARM, and AVR platforms. It features the Microchip MCP2515 CAN controller and the NXP TJA1050 high-speed CAN transceiver.

Негизги өзгөчөлүктөрү:

  • Supports CAN V2.0B specification with a communication speed of up to 1 Mb/s.
  • Handles 0-8 byte data fields.
  • Expands standard frames, data frames, and remote frames.
  • 5V DC электр булагы менен иштейт.
  • Utilizes the SPI (Serial Peripheral Interface) protocol for control.
  • Includes a 120-ohm termination resistor to ensure impedance matching, robust drive capability, and reliable long-distance data transmission over signal lines.
  • Module dimensions: 4.4 cm x 2.8 cm, with screw hole center distance of 23 mm x 35 mm.
  • Typical operating current: 5 mA (excluding power indicator). Standby current: 1 microampэре.
  • Industrial-grade operating temperature range: -40°C to 85°C.
  • CAN Controller Chip: Microchip MCP2515.
  • High-Speed CAN Transceiver Chip: NXP TJA1050.

2. Продукт бүтүп калдыview

The WINGONEER MCP2515 CAN Bus Module integrates the necessary components for CAN communication into a compact board. Below are images illustrating the module and its schematic diagram.

WINGONEER MCP2515 CAN Bus Module

2.1-сүрөт: Жогорку view of the WINGONEER MCP2515 CAN Bus Module. This image shows the MCP2515 controller chip, TJA1050 transceiver, crystal oscillator, and terminal block for CAN H/L connections, along with header pins for power and SPI interface.

MCP2515 CAN Bus Module Schematic Diagram

2.2-сүрөт: Schematic diagram of the MCP2515 CAN Bus Module. This diagram illustrates the internal connections of the TJA1050 transceiver and MCP2515 controller, including power, SPI, and CAN bus lines, along with passive components.

3. Орнотуу

Proper setup is crucial for the reliable operation of the MCP2515 CAN Bus Module. Follow these steps for initial connection:

  1. Кубат менен камсыздоого туташуу: Connect the VCC pin of the module to a stable 5V DC power source and the GND pin to the system ground. Ensure the power supply can provide sufficient current for the module's operation (typical 5mA).
  2. SPI Interface Connection: Connect the module's SPI pins to your microcontroller (e.g., Raspberry Pi, Arduino, ARM, AVR) as follows:
    • CS (Chip Select): Connect to a digital output pin on your microcontroller.
    • SCK (Serial Clock): Connect to the SPI clock pin on your microcontroller.
    • MOSI (Master Out Slave In): Connect to the SPI data output pin on your microcontroller.
    • MISO (Master In Slave Out): Connect to the SPI data input pin on your microcontroller.
    • INT (Interrupt): (Optional) Connect to an interrupt-capable digital input pin on your microcontroller for event-driven communication.
  3. CAN автобусунун туташуусу: Connect the CAN H (High) and CAN L (Low) terminals of the module to the corresponding CAN H and CAN L lines of your CAN bus network. Ensure proper polarity.
  4. Токтотуу резистор: The module includes a 120-ohm termination resistor. In a CAN bus network, the two ends of the bus must be terminated with 120-ohm resistors. If this module is at an end of the bus, its internal resistor can be used. If it is in the middle, ensure only the end nodes have termination.

4. Иштөө нускамалары

Operating the MCP2515 CAN Bus Module involves configuring the MCP2515 controller via the SPI interface and then sending/receiving CAN messages.

4.1. Программанын конфигурациясы

To use the module, you will need to write or adapt software for your microcontroller. This typically involves:

  1. SPI Initialization: Initialize your microcontroller's SPI peripheral to communicate with the MCP2515. The MCP2515 operates as an SPI slave device.
  2. MCP2515 Initialization: Configure the MCP2515 registers for desired CAN bus parameters, including:
    • CAN Bit Rate: Set the communication speed (e.g., 125 kbps, 250 kbps, 500 kbps, 1 Mbps).
    • Иштөө режими: Set the MCP2515 to Normal mode for active communication. Other modes like Loopback, Listen-Only, or Configuration mode are used for testing or setup.
    • Filters and Masks: Configure receive filters and masks to accept specific CAN message IDs and reject others, reducing CPU load.
    • Interrupts (Optional): If using the INT pin, configure the MCP2515 to generate interrupts on specific events, such as message reception.

4.2. Sending CAN Messages

To send a CAN message:

  1. Load the CAN message ID (standard or extended) into the appropriate transmit buffer registers (TXB0, TXB1, or TXB2).
  2. Load the data length code (DLC) and up to 8 bytes of data into the transmit buffer data registers.
  3. Request transmission by setting the appropriate control bit in the transmit buffer control register. The MCP2515 will then handle the transmission onto the CAN bus.

4.3. Receiving CAN Messages

To receive CAN messages:

  1. The MCP2515 has two receive buffers (RXB0 and RXB1). When a message matching the configured filters is received, it is stored in one of these buffers.
  2. Your microcontroller can poll the receive buffer status registers or respond to an interrupt (if configured) to detect new messages.
  3. Read the message ID, DLC, and data bytes from the receive buffer registers.
  4. Clear the receive buffer flag to indicate that the message has been processed, allowing the buffer to receive new messages.

5. Техникалык шарттар

СпецификацияНарк
Бренд атыWINGONEER
ӨндүрүүчүWINGONEER
Model (Implied)MCP2515 CAN Bus Module TJA1050
Өндүрүүчүнүн маалымдамасыJP01337
ASINB07F68GHBJ
Пакеттин өлчөмдөрү9.5 x 5 x 1.3 см
Элемент Салмагы10 г
Батареялар камтылганЖок
Батареялар талап кылынатЖок
CAN Specification SupportCAN V2.0B
Байланыш ылдамдыгы1 Мб/сек чейин
Маалымат талаасынын узундугу0-8 байт
Электр камсыздоо5V DC
Interface ProtocolSPI
Каршылык көрсөтүүнү токтотуу120 Ohm (onboard)
Operating Current (Typical)5 mA (excluding power indicator)
Күтүү агымы1 микроampere
Иштөө температурасы-40°C to 85°C (Industrial Grade)
CAN Controller ChipMicrochip MCP2515
CAN Transceiver ChipNXP TJA1050
Биринчи Amazon.co.jp сайтында жеткиликтүү3-июль, 2018-жыл

For detailed technical information, refer to the Microchip MCP2515 datasheet: http://www.microchip.com/wwwproducts/en/MCP2515

6. Техникалык тейлөө

The WINGONEER MCP2515 CAN Bus Module is a robust electronic component designed for long-term operation with minimal maintenance. Adhere to the following guidelines:

  • Экологиялык шарттар: Operate the module within its specified temperature range (-40°C to 85°C) and avoid environments with excessive humidity, dust, or corrosive substances.
  • Электр камсыздоо: Ensure a stable and clean 5V DC power supply. Voltage fluctuations or ripple can affect performance and longevity.
  • Физикалык текшерүү: Periodically inspect the module for any signs of physical damage, loose connections, or corrosion on the pins.
  • Тазалоо: Зарыл болсо, чаңды кетирүү үчүн модулду жумшак, кургак щетка же кысылган аба менен акырын тазалаңыз. Суюктуктарды же катуу химиялык заттарды колдонуудан алыс болуңуз.
  • Микропрограмма/Программа жаңыртуулары: Keep your microcontroller's CAN library or driver software updated to benefit from bug fixes and performance improvements.

7. Кыйынчылыктарды

If you encounter issues with your MCP2515 CAN Bus Module, consider the following troubleshooting steps:

  • Эч кандай байланыш:
    • Verify all power (5V, GND) and SPI connections are correct and secure.
    • Check CAN H and CAN L connections for correct polarity and continuity.
    • Ensure the CAN bus is properly terminated with 120-ohm resistors at both ends.
    • Confirm that the CAN bit rate configured in your software matches the bit rate of the other devices on the CAN bus.
    • Check the MCP2515 operating mode; it should be in Normal mode for active communication.
    • Verify your SPI communication. Use an oscilloscope or logic analyzer if available to check SPI signals (CS, SCK, MOSI, MISO).
  • Үзгүлтүксүз байланыш:
    • Check for noise on the power supply lines. Add decoupling capacitors if necessary.
    • Inspect CAN bus wiring for loose connections, damage, or excessive length without proper shielding.
    • Ensure the termination resistors are correctly placed and of the correct value.
  • Module Not Responding (SPI):
    • Double-check power connections.
    • Ensure the CS pin is correctly toggled during SPI transactions.
    • Verify the SPI clock speed is within the MCP2515's specifications.
  • Error Frames on Bus:
    • This often indicates a bit rate mismatch or incorrect termination. Re-check these settings.
    • Ensure no other device on the bus is generating errors due to misconfiguration.

8. Кепилдик жана колдоо

This WINGONEER product is typically covered by a standard manufacturer's warranty against defects in materials and workmanship. For specific warranty terms, duration, and support inquiries, please refer to the documentation provided at the time of purchase or contact your retailer or the manufacturer directly.

When contacting support, please provide the product model (MCP2515 CAN Bus Module TJA1050) and the ASIN (B07F68GHBJ) for quicker assistance.

© 2024 WINGONEER. All rights reserved. Information in this manual is subject to change without notice.

Ask a question about this manual

Ask about setup, troubleshooting, compatibility, parts, safety, or missing instructions. Manuals+ will review the question and use this page’s manual context to help answer it.