1. Introducció
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.
Característiques principals:
- 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.
- Funciona amb una font d'alimentació de 5 V CC.
- 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 microampere.
- Industrial-grade operating temperature range: -40°C to 85°C.
- CAN Controller Chip: Microchip MCP2515.
- High-Speed CAN Transceiver Chip: NXP TJA1050.
2. Producte acabatview
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.

Figura 2.1: A dalt 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.

Figura 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. Configuració
Proper setup is crucial for the reliable operation of the MCP2515 CAN Bus Module. Follow these steps for initial connection:
- Connexió d'alimentació: 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).
- 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 (Sortida Mestra Entrada Esclau): Connect to the SPI data output pin on your microcontroller.
- MISO (Entrada principal Sortida esclau): 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.
- Connexió de bus 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.
- Resistència de terminació: 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. Instruccions de funcionament
Operating the MCP2515 CAN Bus Module involves configuring the MCP2515 controller via the SPI interface and then sending/receiving CAN messages.
4.1. Configuració del programari
To use the module, you will need to write or adapt software for your microcontroller. This typically involves:
- SPI Initialization: Initialize your microcontroller's SPI peripheral to communicate with the MCP2515. The MCP2515 operates as an SPI slave device.
- 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).
- Mode de funcionament: 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:
- Load the CAN message ID (standard or extended) into the appropriate transmit buffer registers (TXB0, TXB1, or TXB2).
- Load the data length code (DLC) and up to 8 bytes of data into the transmit buffer data registers.
- 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:
- 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.
- Your microcontroller can poll the receive buffer status registers or respond to an interrupt (if configured) to detect new messages.
- Read the message ID, DLC, and data bytes from the receive buffer registers.
- Clear the receive buffer flag to indicate that the message has been processed, allowing the buffer to receive new messages.
5. Especificacions
| Especificació | Valor |
|---|---|
| Nom de marca | WINGONEER |
| Fabricant | WINGONEER |
| Model (Implied) | MCP2515 CAN Bus Module TJA1050 |
| Referència del fabricant | JP01337 |
| ASIN | B07F68GHBJ |
| Dimensions del paquet | 9.5 x 5 x 1.3 cm |
| Pes de l'article | 10 g |
| Piles incloses | No |
| Piles necessàries | No |
| CAN Specification Support | CAN V2.0B |
| Velocitat de comunicació | Fins a 1 Mb/s |
| Longitud del camp de dades | 0-8 bytes |
| Font d'alimentació | 5V DC |
| Protocol d'interfície | SPI |
| Resistència de terminació | 120 Ohm (onboard) |
| Operating Current (Typical) | 5 mA (excluding power indicator) |
| Corrent d'espera | 1 microampere |
| Temperatura de funcionament | -40°C to 85°C (Industrial Grade) |
| CAN Controller Chip | Microchip MCP2515 |
| CAN Transceiver Chip | NXP TJA1050 |
| Primer disponible a Amazon.co.jp | 3 de juliol de 2018 |
For detailed technical information, refer to the Microchip MCP2515 datasheet: http://www.microchip.com/wwwproducts/en/MCP2515
6. Manteniment
The WINGONEER MCP2515 CAN Bus Module is a robust electronic component designed for long-term operation with minimal maintenance. Adhere to the following guidelines:
- Condicions ambientals: Operate the module within its specified temperature range (-40°C to 85°C) and avoid environments with excessive humidity, dust, or corrosive substances.
- Font d'alimentació: Ensure a stable and clean 5V DC power supply. Voltage fluctuations or ripple can affect performance and longevity.
- Inspecció física: Periodically inspect the module for any signs of physical damage, loose connections, or corrosion on the pins.
- Neteja: Si cal, netegeu suaument el mòdul amb un raspall suau i sec o aire comprimit per eliminar la pols. Eviteu utilitzar líquids o productes químics agressius.
- Actualitzacions de firmware/programari: Keep your microcontroller's CAN library or driver software updated to benefit from bug fixes and performance improvements.
7. Solució De Problemes
If you encounter issues with your MCP2515 CAN Bus Module, consider the following troubleshooting steps:
- Sense comunicació:
- 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).
- Comunicació intermitent:
- 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. Garantia i Suport
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.