waveshare 2-Channel Isolated CAN Bus FD Expansion HAT

Waveshare 2-Channel Isolated CAN Bus FD HAT for Raspberry Pi User Manual

Model: 2-Channel Isolated CAN Bus FD Expansion HAT

Indledning

The Waveshare 2-Channel Isolated CAN Bus FD Expansion HAT is designed for Raspberry Pi series boards and Jetson Nano, providing two independent CAN FD channels. It features the MCP2518FD CAN controller and MCP2562FD CAN transceiver, supporting both original CAN2.0 and CAN FD protocols. This HAT incorporates multiple protection circuits to ensure safe and reliable communication in various applications.

Waveshare 2-Channel CAN FD HAT top view

Billede: Top view of the Waveshare 2-Channel CAN FD HAT, showing the Waveshare logo and "2-CH CAN FD HAT" text.

Funktioner

  • 2-Channel CAN FD Support: Equipped with MCP2518FD CAN Controller and MCP2562FD CAN Transceiver, supporting CAN with Flexible Data-Rate for high anti-interference capability and stable operation.
  • Raspberry Pi-kompatibilitet: Standard Raspberry Pi 40PIN GPIO header, compatible with Raspberry Pi series boards and Jetson Nano. Includes breakout SPI control pins for host control boards like Arduino/STM32.
  • Multi Onboard Protection Circuits: Features 500W lightning/surge protection, ESD protection, short circuit protection, and electrical isolation for enhanced communication safety and reliability.
  • Electrical Isolation Circuitry: Utilizes SM24CANB TVS Diode, ESD Protection, and Transient Peak Voltage Protection to provide isolated and stable CAN FD capability.
  • Flexible Jumper Settings: Easily select 3.3V / 5V operating voltage and enable/disable the 120Ω terminal resistor via onboard jumpers.

Produkt overview og Pinout

Waveshare 2-Channel CAN FD HAT components and pinout

Billede: Detaljeret view of the HAT's components and pinout definitions.

What's On Board

  1. MCP2518FD controller
  2. MCP2562FD transceiver
  3. S18642ED digital isolator
  4. MP1584EN power chip
  5. RT9193-33 power chip
  6. B0505LS-1W power supply isolation module
  7. Standard Raspberry Pi 40PIN GPIO header
  8. CAN bus screw terminal
  9. External power supply terminal (8-28V DC input)
  10. MCU control pins (for use with host boards like Arduino)
  11. 120Ω terminal resistor switch
  12. 3.3V/5V logic level switch
  13. CAN operating mode selection
  14. 2A fast resettable fuse
  15. Power supply reverse-proof diode
  16. Power supply flow backward proof diode
  17. Friløbsdiode
  18. SM24CANB TVS diode

Pinout Definition (HAT Specific Functions)

HAT FunctionRaspberry Pi GPIO Pin(s)
CAN0 SPI MISOGPIO9 (ben 19)
CAN0 SPI MOSIGPIO10 (ben 21)
CAN0 SPI SCKGPIO11 (ben 23)
CAN0 Chip Select (CS0)GPIO8 (ben 24)
CAN0 Interrupt (INT0)GPIO5 (ben 29)
CAN1 SPI MISOGPIO19 (ben 35)
CAN1 SPI MOSIGPIO20 (ben 37)
CAN1 SPI SCKGPIO21 (ben 39)
CAN1 Chip Select (CS1)GPIO7 (ben 26)
CAN1 Interrupt (INT1)GPIO6 (ben 31)
Magt5V (Pin 2, 4), 3.3V (Pin 1, 17)
JordGND (Pin 6, 9, 14, 20, 25, 30, 34, 40)

Note: This table highlights the primary functional pins used by the HAT. Refer to the image above for a complete Raspberry Pi 40PIN GPIO header pinout.

Opsætning og installation

1. Fysisk installation

Align the 40-pin GPIO header of the CAN FD HAT with the corresponding header on your Raspberry Pi or Jetson Nano board. Gently press down to ensure a secure connection. The HAT is designed to fit directly onto the Raspberry Pi's GPIO pins.

Waveshare 2-Channel CAN FD HAT mounted on Raspberry Pi

Image: The 2-Channel CAN FD HAT securely mounted on a Raspberry Pi board, showing the SPI control header breakout for other host boards.

2. Jumperkonfiguration

Before connecting power or CAN devices, configure the onboard jumpers according to your application requirements.

  • Logic Level Selection (3.3V / 5V): Use the "3.3V/5V logic level switch" (labeled 12 in the overview) to select the appropriate operating voltage for the logic signals, matching your host board (e.g., Raspberry Pi uses 3.3V).
  • 120Ω Terminal Resistor: The CAN bus requires a 120Ω termination resistor at each end of the bus. Use the "120Ω terminal resistor switch" (labeled 11 in the overview) for each CAN channel to enable or disable this resistor as needed. Ensure only two 120Ω resistors are active on the entire CAN bus network.
  • CAN Operating Mode Selection: The "CAN operating mode selection" jumper (labeled 13 in the overview) allows configuration for single or dual SPI operation. By default, CAN0 and CAN1 use two separate SPI interfaces.
Waveshare 2-Channel CAN FD HAT jumper settings

Image: Close-up of the HAT showing the 120Ω terminal resistor switches and the 3.3V/5V logic level switch.

3. Connecting CAN Devices and Power

Connect your CAN devices to the "CAN bus screw terminal" (labeled 8 in the overview). Each CAN channel (CAN_0 and CAN_1) has dedicated H (High), L (Low), and G (Ground) terminals. Ensure correct polarity.

For external power, connect an 8-28V DC power supply to the "External power supply terminal" (labeled 9 in the overview). This is optional if your Raspberry Pi can adequately power the HAT and connected devices, but recommended for stable operation, especially with multiple CAN devices or long bus lines.

Waveshare 2-Channel CAN FD HAT connection diagram

Image: Diagram illustrating connections for external power supply and two CAN devices to the HAT.

Betjeningsvejledning

Once physically installed and configured, the Waveshare 2-Channel CAN FD HAT communicates with your Raspberry Pi via the SPI interface. You will need to enable SPI on your Raspberry Pi and install the necessary drivers and libraries to interact with the MCP2518FD CAN controller.

  • Softwarekonfiguration: Refer to the Waveshare product wiki or documentation for specific software setup instructions, including enabling SPI, installing can-utils, and configuring the CAN interfaces (e.g., ip link set can0 up type can bitrate 500000 dbitrate 2000000 sample-point 0.75 dsample-point 0.75).
  • CAN FD-protokol: The HAT supports CAN with Flexible Data-Rate (CAN FD), allowing for higher data rates and larger data payloads compared to classic CAN 2.0. Ensure your software and connected CAN devices are configured to utilize CAN FD if desired.
  • Meddelelse: Use standard CAN communication tools and libraries in your chosen programming language (e.g., Python with python-can) to send and receive CAN messages through the can0 og can1 grænseflader.

Opretholdelse

The Waveshare 2-Channel CAN FD HAT is a robust electronic component designed for long-term operation. Minimal maintenance is required.

  • Miljøforhold: Operate the HAT within its specified temperature and humidity ranges. Avoid exposure to extreme temperatures, moisture, or corrosive environments.
  • Rensning: If necessary, gently clean the board with a soft, dry, anti-static brush or cloth. Do not use liquids or abrasive cleaners.
  • Statisk udladning: Always handle the HAT with proper ESD (Electrostatic Discharge) precautions to prevent damage to sensitive components.
  • Firmware/softwareopdateringer: Tjek regelmæssigt den officielle Waveshare-profil website or product wiki for any updated drivers, firmware, or software libraries that may improve performance or add new features.

Fejlfinding

If you encounter issues with your Waveshare 2-Channel CAN FD HAT, consider the following troubleshooting steps:

  • No CAN Communication:
    • Verify that the HAT is securely seated on the Raspberry Pi's GPIO header.
    • Check all CAN bus wiring for correct polarity (CAN_H, CAN_L, GND) and secure connections.
    • Ensure the 120Ω terminal resistors are correctly enabled/disabled for your network topology. Only two terminators should be active on the entire bus.
    • Confirm that SPI is enabled on your Raspberry Pi and the necessary CAN drivers are loaded.
    • Check the logic level jumper (3.3V/5V) matches your Raspberry Pi's GPIO voltage.
    • Verify the external power supply (if used) is providing the correct voltage (8-28V DC) and is properly connected.
  • HAT ikke detekteret:
    • Ensure the Raspberry Pi is powered off before installing or removing the HAT.
    • Double-check the physical connection to the Raspberry Pi's GPIO header.
    • Confirm that the Raspberry Pi's operating system is correctly configured to recognize SPI devices.
  • Intermitterende kommunikation:
    • Check for electromagnetic interference (EMI) sources near the CAN bus cables.
    • Ensure CAN bus cable length is within specifications for your chosen bitrate.
    • Verify the stability of the power supply to both the Raspberry Pi and the HAT.

For further assistance, refer to the official Waveshare product documentation or contact their technical support.

Specifikationer

FeatureBeskrivelse
CAN controllerMCP2518FD
CAN TransceiverMCP2562FD
CAN kanaler2 (Uafhængig)
Understøttede protokollerCAN 2.0, CAN FD
Host-interfaceSPI
KompatibilitetRaspberry Pi series boards, Jetson Nano, Arduino/STM32 (via breakout SPI)
Operation Voltage (Logic)3.3V / 5V (valgbar)
Ekstern strømindgang8-28V DC (via screw terminal)
Beskyttelseskredsløb500W lightning/surge, ESD, short circuit, electrical isolation (SM24CANB TVS Diode, S18642ED digital isolator, B0505LS-1W power isolation)
Terminal modstand120Ω (selectable for each channel)

Dispositionsdimensioner

Waveshare 2-Channel CAN FD HAT dimensions in millimeters

Image: Technical drawing showing the outline dimensions of the HAT in millimeters.

  • Længde: 65.00 mm
  • Bredde: 56.50 mm
  • Height (approx): 17.00 mm (from PCB to top of tallest component)

Garanti og support

This Waveshare product is covered by a standard manufacturer's warranty. For specific warranty terms, duration, and conditions, please refer to the official Waveshare webhjemmeside eller kontakt deres kundeservice direkte.

For technical support, documentation, and software resources, please visit the Waveshare product wiki or support portal. You can also reach out to their technical support team for assistance with installation, configuration, or troubleshooting.

© 2024 Waveshare. Alle rettigheder forbeholdes.