waveshare WAV_14882

Waveshare RS485 CAN HAT for Raspberry Pi Instruction Manual

Model: WAV_14882

1. Ifihan

The Waveshare RS485 CAN HAT is designed to enable your Raspberry Pi to communicate with other devices over long distances using RS485 and CAN functions. This HAT is compatible with various Raspberry Pi models, including the 5, 4B, 3B+, 3B, 2B, B+, Zero, Zero W, Zero WH, and Zero 2 W.

2. Awọn ẹya ara ẹrọ

  • Standard Raspberry Pi 40PIN GPIO extension header, supporting Raspberry Pi series boards.
  • CAN function: Onboard CAN controller MCP2515 via SPI interface, with onboard transceiver SIT65HVD230DR.
  • RS485 function: Controlled via UART, supporting half-duplex communication and automatic TX/RX control without programming, with onboard transceiver SP3485.
  • Onboard 120Ω terminal resistor for RS485 and CAN interfaces, enabled via DIP switch.
  • Loriboard TVS (Transient Voltage Suppressor) to effectively suppress surge voltage ati tionkojalo iwasoke voltage in the circuit for RS485 transceiving, providing lightning-proof and anti-electrostatic protection.
  • Reserved control header, allowing compatibility with other control boards.

3. Awọn pato

ParamitaIye
Awọn ọna Voltage3.3V
CAN AdaríMCP2515
CAN TransceiverSIT65HVD230DR
RS485 TransceiverSP3485
Iwọn65× 30mm
Iṣagbesori Iho Iwon3.0mm

4. Eto ati fifi sori

This section guides you through the physical installation of the RS485 CAN HAT onto your Raspberry Pi. For detailed software configuration and driver installation, please refer to the official online user manual at //bit.ly/3mC64mA.

4.1 ti ara Asopọ

  1. Align the 40PIN GPIO extension header of the RS485 CAN HAT with the GPIO pins on your Raspberry Pi board.
  2. Gently press the HAT down onto the Raspberry Pi's GPIO header, ensuring all pins are correctly seated.
  3. Secure the HAT using the provided RPi screws pack (2pcs) through the mounting holes.
Waveshare RS485 CAN HAT top view pẹlu irinše

olusin 1: Top view of the Waveshare RS485 CAN HAT, showing the main components and connectors.

Waveshare RS485 CAN HAT bottom view with GPIO pins

olusin 2: Isalẹ view of the Waveshare RS485 CAN HAT, highlighting the 40PIN GPIO connector.

Waveshare RS485 CAN HAT connected to Raspberry Pi GPIO

Figure 3: The RS485 CAN HAT mounted on a Raspberry Pi, illustrating the standard 40PIN GPIO extension header connection.

Waveshare RS485 CAN HAT with CAN and RS485 components labeled

Figure 4: Close-up of the HAT, showing the CAN controller MCP2515, CAN transceiver SN65HVD230, and RS485 transceiver SP3485.

Waveshare RS485 CAN HAT with Transient Voltage Suppressor labeled

Figure 5: The onboard Transient Voltage Suppressor (TVS) is highlighted, which protects against surge and spike voltages.

Waveshare RS485 CAN HAT fully mounted on Raspberry Pi

Figure 6: The RS485 CAN HAT fully installed on a Raspberry Pi board.

Waveshare RS485 CAN HAT dimensions in millimeters

Figure 7: Dimensions of the RS485 CAN HAT, showing its compact size.

4.2 fifi sori Video

Video 1: Installation and basic setup guide for the RS485 CAN HAT on a Raspberry Pi.

Video 2: Demonstration of the RS485 CAN HAT's features and functionality.

5. Awọn ilana Iṣiṣẹ

After physical installation, software configuration is required to enable the CAN and RS485 functions. The Waveshare RS485 CAN HAT comes with development resources and a manual, including examples in wiringPi/Python. Please refer to the comprehensive online user manual for detailed programming guides and example:

This manual provides instructions for setting up the SPI interface for the CAN controller and UART for RS485 communication, along with code examples to get started.

6. Laasigbotitusita

6.1 Data Gbigbe oro

Ibeere: I cannot send or receive data.

Idahun:

  1. Ensure that the baud rates on both communicating devices are identical.
  2. The fixed frame ID in the routine is set to 0X123. Please configure the sending and receiving CAN ID of the other end of your CAN communication to be 0x123.

6.2 Ubuntu config.txt Configuration

Ibeere: How do I configure the config.txt file when Ubuntu is installed on the Raspberry Pi?

Idahun:

  1. For mainstream Ubuntu systems, the config.txt file is typically located in the /boot/firmware folda.
  2. Alternatively, you can use a card reader to access the Raspberry Pi's SD card on a computer (or another host that can recognize the SD card) and modify the config.txt file taara.

7. Akoonu Package

Àwọn nǹkan wọ̀nyí wà nínú àpò ọjà rẹ:

  • RS485 CAN HAT x1
  • RPi screws pack (2pcs) x1

8. Afikun Alaye

For easy testing and enhanced functionality, we recommend the isolated interface converter USB TO RS485 Converter (ASIN: B081MB6PN2).

Awọn iwe aṣẹ ti o jọmọ - WAV_14882

Ṣaajuview RPi Zero Relay (EU) - Itọsọna Imọ-ẹrọ, Awọn ẹya ara ẹrọ, ati Lilo
Itọsọna pipe fun modulu RPi Zero Relay (EU), ti o ṣe alaye awọn agbara CAN ati RS485 rẹ, awọn pato, awọn pinouts, fifi sori ẹrọ, ati lilo rẹ exampawọn iṣẹ akanṣe Raspberry Pi.
Ṣaajuview Modbus RTU Relay: Ìwé Ìtọ́sọ́nà Olùlò àti Ìtọ́sọ́nà Ìmọ̀-ẹ̀rọ
Ìtọ́sọ́nà pípéye sí Modbus RTU Relay, tí ó bo àwọn ìlànà ààbò, ìsopọ̀ hardware, ìṣètò software pẹ̀lú SSCOM àti Modbus Poll, àti àwọn ìlànà àṣẹ tí a ṣàlàyé fún onírúurú iṣẹ́.ampawọn les fun isopọmọ Raspberry Pi, STM32, Arduino, ati PLC.
Ṣaajuview Waveshare 31882 PCIe to 2-Bay SATA HAT+ for Raspberry Pi 5
Expand your Raspberry Pi 5 storage with the Waveshare 31882 PCIe to 2-Ch SATA HAT+. This plug-and-play adapter adds two SATA 3.0 (6 Gbps) ports, featuring dual LEDs, EEPROM, and flexible power options for DIY NAS and media server projects.
Ṣaajuview Waveshare PoE M.2 HAT+(B) fún Raspberry Pi 5: Ìfisílé àti Ìtọ́sọ́nà Olùlò
Ìtọ́sọ́nà pípéye lórí sí fífi sori ẹrọ àti ṣíṣètò Waveshare PoE M.2 HAT+(B) fún Raspberry Pi 5, tí ó ń mú kí Power over Ethernet àti M.2 NVMe SSD gbára dì fún iṣẹ́ àti ìpamọ́ tí ó dára síi.
Ṣaajuview Ìwé Ìtọ́sọ́nà àti Ìtọ́sọ́nà Ìmọ̀-ẹ̀rọ Waveshare 2.13inch e-Paper HAT (B)
Ìtọ́sọ́nà pípé fún Waveshare 2.13inch e-Paper HAT (B), tó ní í ṣe pẹ̀lú àwọn ìsopọ̀ ẹ̀rọ, ìṣètò sọ́fítíwè, àwọn ìlànà ìṣètò, àti ìṣòro fún Raspberry Pi, Arduino, Jetson Nano, àti STM32.
Ṣaajuview Ìwé Ìtọ́sọ́nà àti Ìtọ́sọ́nà fún Olùlò Waveshare SX1262 LoRaWAN/GNSS HAT
Ìtọ́sọ́nà pípéye sí Waveshare SX1262 LoRaWAN/GNSS HAT, tó bo àwọn ẹ̀yà ara rẹ̀, àwọn pàrámítà ìmọ̀-ẹ̀rọ, ìsopọ̀ hardware, ìtumọ̀ pinout, ètò sọ́fítíwọ́ọ̀kì, àwọn èrò LoRaWAN, àti ìṣọ̀kan pẹ̀lú The Things Network (TTN).