
![Image of [SEENGREAT] 라즈베리파이용 2채널 CAN 버스 확장 모듈 [220488]](https://abacasstorageaccnt.blob.core.windows.net/cirkit/95585794-65e6-430d-98f7-9caa42fec01f.png)
The [SEENGREAT] 라즈베리파이용 2채널 CAN 버스 확장 모듈 [220488] is a dual-channel CAN (Controller Area Network) bus expansion module designed specifically for Raspberry Pi. This module allows Raspberry Pi to communicate with CAN bus devices, making it ideal for automotive, industrial, and IoT applications. It supports high-speed communication and is compatible with a wide range of CAN-enabled devices.
![Image of BSP4: A project utilizing [SEENGREAT] 라즈베리파이용 2채널 CAN 버스 확장 모듈 [220488] in a practical application](https://abacasstorageaccnt.blob.core.windows.net/cirkit/1ce8a326-90ee-46b3-a5db-89aed094c26a.png)
![Image of LRCM PHASE 2 BASIC: A project utilizing [SEENGREAT] 라즈베리파이용 2채널 CAN 버스 확장 모듈 [220488] in a practical application](https://abacasstorageaccnt.blob.core.windows.net/cirkit/ca48ca3f-a962-4abb-ab84-250a52fddaef.png)
![Image of esp32-s3-ellipse: A project utilizing [SEENGREAT] 라즈베리파이용 2채널 CAN 버스 확장 모듈 [220488] in a practical application](https://abacasstorageaccnt.blob.core.windows.net/cirkit/8f56e617-81fb-4dab-b1dd-d990c8a42adb.png)
![Image of Copy of esp32-s3-ellipse: A project utilizing [SEENGREAT] 라즈베리파이용 2채널 CAN 버스 확장 모듈 [220488] in a practical application](https://abacasstorageaccnt.blob.core.windows.net/cirkit/5cdada9a-4424-46c1-9ec5-6fea75234641.png)
![Image of BSP4: A project utilizing [SEENGREAT] 라즈베리파이용 2채널 CAN 버스 확장 모듈 [220488] in a practical application](https://abacasstorageaccnt.blob.core.windows.net/cirkit/1ce8a326-90ee-46b3-a5db-89aed094c26a.png)
![Image of LRCM PHASE 2 BASIC: A project utilizing [SEENGREAT] 라즈베리파이용 2채널 CAN 버스 확장 모듈 [220488] in a practical application](https://abacasstorageaccnt.blob.core.windows.net/cirkit/ca48ca3f-a962-4abb-ab84-250a52fddaef.png)
![Image of esp32-s3-ellipse: A project utilizing [SEENGREAT] 라즈베리파이용 2채널 CAN 버스 확장 모듈 [220488] in a practical application](https://abacasstorageaccnt.blob.core.windows.net/cirkit/8f56e617-81fb-4dab-b1dd-d990c8a42adb.png)
![Image of Copy of esp32-s3-ellipse: A project utilizing [SEENGREAT] 라즈베리파이용 2채널 CAN 버스 확장 모듈 [220488] in a practical application](https://abacasstorageaccnt.blob.core.windows.net/cirkit/5cdada9a-4424-46c1-9ec5-6fea75234641.png)
The module connects to the Raspberry Pi via the GPIO header. Below is the pin configuration:
| Pin | Name | Description |
|---|---|---|
| 2 | 5V | Power supply (5V input from Raspberry Pi) |
| 6 | GND | Ground |
| 19 | SPI_MOSI | SPI Master Out Slave In |
| 21 | SPI_MISO | SPI Master In Slave Out |
| 23 | SPI_SCLK | SPI Clock |
| 24 | CS1 | Chip Select for CAN Channel 1 |
| 26 | CS2 | Chip Select for CAN Channel 2 |
| 22 | INT1 | Interrupt for CAN Channel 1 |
| 18 | INT2 | Interrupt for CAN Channel 2 |
Hardware Setup:
Software Setup:
Basic Circuit Example:
raspi-config.Below is an example Python script to initialize and send a CAN message using the module:
import can
import time
bus = can.interface.Bus(channel='can0', bustype='socketcan')
msg = can.Message(arbitration_id=0x123, data=[0x11, 0x22, 0x33, 0x44, 0x55, 0x66, 0x77, 0x88], is_extended_id=False)
try: # Send the CAN message bus.send(msg) print("Message sent on CAN bus") except can.CanError: print("Failed to send message")
try: response = bus.recv(timeout=1.0) # Wait for 1 second if response: print(f"Received message: {response}") else: print("No response received") except Exception as e: print(f"Error receiving message: {e}")
python-can library using pip install python-can before running the script.can0 with the correct CAN interface name (e.g., can1) if using the second channel.No Communication on the CAN Bus:
SPI Interface Not Working:
raspi-config and reboot the Raspberry Pi.CAN Messages Not Being Sent or Received:
Module Overheating:
By following this documentation, users can effectively integrate the [SEENGREAT] 라즈베리파이용 2채널 CAN 버스 확장 모듈 [220488] into their projects and leverage its capabilities for reliable CAN bus communication.