waveshare WAV_14882

Waveshare RS485 CAN HAT for Raspberry Pi Instruction Manual

Model: WAV_14882

1. บทนำ

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. คุณสมบัติ

  • 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.
  • ทีวีออนบอร์ด (Transient Voltage Suppressor) to effectively suppress surge voltage และสไปค์ชั่วคราว voltage in the circuit for RS485 transceiving, providing lightning-proof and anti-electrostatic protection.
  • Reserved control header, allowing compatibility with other control boards.

3. ข้อมูลจำเพาะ

พารามิเตอร์ค่า
ปฏิบัติการฉบับที่tage3.3โวลต์
ตัวควบคุม CANMCP2515
CAN ตัวรับส่งสัญญาณSIT65HVD230DR
ตัวรับส่งสัญญาณ RS485SP3485
มิติ65 × 30 มม
ขนาดรูยึด3.0มม.

4. การตั้งค่าและการติดตั้ง

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 การเชื่อมต่อทางกายภาพ

  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 ด้วยส่วนประกอบ

รูปที่ 1: ด้านบน view of the Waveshare RS485 CAN HAT, showing the main components and connectors.

Waveshare RS485 CAN HAT bottom view with GPIO pins

รูปที่ 2: ด้านล่าง 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 voltagใช่

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 วิดีโอการติดตั้ง

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. คู่มือการใช้งาน

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 exampเลส:

  • คู่มือผู้ใช้แบบออนไลน์: //bit.ly/3mC64mA

This manual provides instructions for setting up the SPI interface for the CAN controller and UART for RS485 communication, along with code exampมาเริ่มกันเลยดีกว่า

6 การแก้ไขปัญหา

6.1 ปัญหาการส่งข้อมูล

คำถาม: I cannot send or receive data.

คำตอบ:

  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

คำถาม: How do I configure the config.txt file when Ubuntu is installed on the Raspberry Pi?

คำตอบ:

  1. For mainstream Ubuntu systems, the config.txt file is typically located in the /boot/firmware โฟลเดอร์
  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 โดยตรง.

7. เนื้อหาแพ็คเกจ

รายการต่อไปนี้รวมอยู่ในแพ็คเกจผลิตภัณฑ์ของคุณ:

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

8. ข้อมูลเพิ่มเติม

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

เอกสารที่เกี่ยวข้อง - WAV_14882

พรีview RPi Zero Relay (EU) - คู่มือทางเทคนิค คุณสมบัติ และวิธีการใช้งาน
คู่มือฉบับสมบูรณ์สำหรับโมดูล RPi Zero Relay (EU) โดยละเอียดเกี่ยวกับความสามารถ CAN และ RS485 ข้อมูลจำเพาะ การจัดเรียงขา การติดตั้ง และการใช้งานampตัวอย่างสำหรับโปรเจ็กต์ Raspberry Pi
พรีview รีเลย์ Modbus RTU: คู่มือผู้ใช้และคู่มือทางเทคนิค
คู่มือฉบับสมบูรณ์เกี่ยวกับรีเลย์ Modbus RTU ครอบคลุมคำแนะนำด้านความปลอดภัย การเชื่อมต่อฮาร์ดแวร์ การตั้งค่าซอฟต์แวร์ด้วย SSCOM และ Modbus Poll และโปรโตคอลคำสั่งโดยละเอียดสำหรับการทำงานต่างๆ รวมถึงตัวอย่างampไฟล์สำหรับ Raspberry Pi, STM32, Arduino และการรวมเข้ากับ PLC
พรีview Waveshare PoE M.2 HAT+(B) สำหรับ Raspberry Pi 5: คู่มือการติดตั้งและการใช้งาน
คู่มือฉบับสมบูรณ์สำหรับการติดตั้งและกำหนดค่า Waveshare PoE M.2 HAT+(B) สำหรับ Raspberry Pi 5 เพื่อเปิดใช้งาน Power over Ethernet และรองรับ M.2 NVMe SSD สำหรับประสิทธิภาพและการจัดเก็บข้อมูลที่ดียิ่งขึ้น
พรีview คู่มือผู้ใช้และคู่มือทางเทคนิคสำหรับ Waveshare 2.13inch e-Paper HAT (B)
คู่มือฉบับสมบูรณ์สำหรับ Waveshare 2.13inch e-Paper HAT (B) ครอบคลุมการเชื่อมต่อฮาร์ดแวร์ การตั้งค่าซอฟต์แวร์ หลักการเขียนโปรแกรม และการแก้ไขปัญหาสำหรับ Raspberry Pi, Arduino, Jetson Nano และ STM32
พรีview คู่มือการใช้งานและคำแนะนำสำหรับอุปกรณ์ Waveshare SX1262 LoRaWAN/GNSS HAT
คู่มือฉบับสมบูรณ์สำหรับ Waveshare SX1262 LoRaWAN/GNSS HAT ครอบคลุมคุณสมบัติ พารามิเตอร์ทางเทคนิค การเชื่อมต่อฮาร์ดแวร์ การกำหนดพิน การตั้งค่าซอฟต์แวร์ แนวคิด LoRaWAN และการบูรณาการกับ The Things Network (TTN)
พรีview คู่มือผู้ใช้ไดรเวอร์ Waveshare e-Paper HAT: เชื่อมต่อจอแสดงผล SPI E-Paper เข้ากับ Raspberry Pi, Arduino, STM32
คู่มือผู้ใช้สำหรับ Waveshare e-Paper Driver HAT ซึ่งมีรายละเอียดเกี่ยวกับคุณสมบัติ พารามิเตอร์ผลิตภัณฑ์ ข้อมูลจำเพาะของอินเทอร์เฟซ และรุ่น e-Paper ที่รองรับ รวมถึงคู่มือการตั้งค่าสำหรับบอร์ดพัฒนา Raspberry Pi, Arduino และ STM32