1. Úvod
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.
Klíčové vlastnosti:
- 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.
- Funguje na 5V DC zdroj.
- 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 microamptaky.
- Industrial-grade operating temperature range: -40°C to 85°C.
- CAN Controller Chip: Microchip MCP2515.
- High-Speed CAN Transceiver Chip: NXP TJA1050.
2. Konec produktuview
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.

Obrázek 2.1: Nahoru 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.

Obrázek 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. Nastavení
Proper setup is crucial for the reliable operation of the MCP2515 CAN Bus Module. Follow these steps for initial connection:
- Připojení napájení: 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 (sériové hodiny): Connect to the SPI clock pin on your microcontroller.
- MOSI (Master Out (Výstup hlavního) - Slave In (Vstup podřízeného): Connect to the SPI data output pin on your microcontroller.
- MISO (Master vstup/výstup Slave): Connect to the SPI data input pin on your microcontroller.
- INT (Přerušení): (Optional) Connect to an interrupt-capable digital input pin on your microcontroller for event-driven communication.
- CAN Bus Connection: 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.
- Zakončovací odpor: 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. Návod k obsluze
Operating the MCP2515 CAN Bus Module involves configuring the MCP2515 controller via the SPI interface and then sending/receiving CAN messages.
4.1. Konfigurace softwaru
To use the module, you will need to write or adapt software for your microcontroller. This typically involves:
- Inicializace SPI: 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).
- Provozní režim: 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. Specifikace
| Specifikace | Hodnota |
|---|---|
| Název značky | WINGONEER |
| Výrobce | WINGONEER |
| Model (Implied) | MCP2515 CAN Bus Module TJA1050 |
| Reference výrobce | JP01337 |
| ASIN | B07F68GHBJ |
| Rozměry balení | 9.5 x 5 x 1.3 cm |
| Hmotnost položky | 10 g |
| Baterie jsou součástí dodávky | Žádný |
| Jsou vyžadovány baterie | Žádný |
| CAN Specification Support | CAN V2.0B |
| Rychlost komunikace | Až 1 Mb/s |
| Délka datového pole | 0-8 bajtů |
| Napájení | 5V DC |
| Protokol rozhraní | SPI |
| Zakončovací odpor | 120 Ohm (onboard) |
| Operating Current (Typical) | 5 mA (excluding power indicator) |
| Pohotovostní proud | 1 mikroampere |
| Provozní teplota | -40°C to 85°C (Industrial Grade) |
| CAN Controller Chip | Microchip MCP2515 |
| CAN Transceiver Chip | NXP TJA1050 |
| Poprvé k dispozici na Amazon.co.jp | 3. července 2018 |
For detailed technical information, refer to the Microchip MCP2515 datasheet: http://www.microchip.com/wwwproducts/en/MCP2515
6. Údržba
The WINGONEER MCP2515 CAN Bus Module is a robust electronic component designed for long-term operation with minimal maintenance. Adhere to the following guidelines:
- Podmínky prostředí: Operate the module within its specified temperature range (-40°C to 85°C) and avoid environments with excessive humidity, dust, or corrosive substances.
- Napájení: Ensure a stable and clean 5V DC power supply. Voltage fluctuations or ripple can affect performance and longevity.
- Fyzická kontrola: Periodically inspect the module for any signs of physical damage, loose connections, or corrosion on the pins.
- Čištění: If necessary, gently clean the module with a soft, dry brush or compressed air to remove dust. Avoid using liquids or harsh chemicals.
- Aktualizace firmwaru/softwaru: Keep your microcontroller's CAN library or driver software updated to benefit from bug fixes and performance improvements.
7. Řešení problémů
If you encounter issues with your MCP2515 CAN Bus Module, consider the following troubleshooting steps:
- Žádná komunikace:
- 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).
- Přerušovaná komunikace:
- 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. Záruka a podpora
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.