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.
  • Onboard TVS (Transient Voltage Suppressor) to effectively suppress surge voltagд жана убактылуу спике томtage in the circuit for RS485 transceiving, providing lightning-proof and anti-electrostatic protection.
  • Reserved control header, allowing compatibility with other control boards.

3. Техникалык шарттар

ПараметрНарк
Operating Voltage3.3V
CAN ControllerMcp2515
CAN TransceiverSIT65HVD230DR
RS485 TransceiverSP3485
Өлчөм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 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 Орнотуу видеосу

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 examples:

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. Кыйынчылыктарды

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

Preview RPi Zero Relay (EU) - Техникалык колдонмо, функциялары жана колдонулушу
RPi Zero Relay (EU) модулу боюнча анын CAN жана RS485 мүмкүнчүлүктөрүн, мүнөздөмөлөрүн, түйүндөрүн, орнотуусун жана колдонуусун кеңири баяндаган кеңири колдонмо.ampRaspberry Pi долбоорлору үчүн колдонмолор.
Preview Modbus RTU Relay: User Manual and Technical Guide
Comprehensive guide to the Modbus RTU Relay, covering safety instructions, hardware connection, software setup with SSCOM and Modbus Poll, and detailed command protocols for various operations. Includes examples for Raspberry Pi, STM32, Arduino, and PLC integration.
Preview Raspberry Pi 5 үчүн Waveshare PoE M.2 HAT+(B): Орнотуу жана колдонуучу үчүн колдонмо
Raspberry Pi 5 үчүн Waveshare PoE M.2 HAT+(B) орнотуу жана конфигурациялоо боюнча кеңири колдонмо, бул жакшыртылган иштөө жана сактоо үчүн Power over Ethernet жана M.2 NVMe SSD колдоосун камсыз кылат.
Preview Waveshare 2.13 дюймдук электрондук кагаз шляпасы (B) колдонуучунун колдонмосу жана техникалык колдонмосу
Waveshare 2.13 дюймдук электрондук кагаз шляпасы (B) боюнча кеңири колдонмо, анда Raspberry Pi, Arduino, Jetson Nano жана STM32 үчүн жабдыктардын туташуулары, программалык камсыздоону орнотуу, программалоо принциптери жана көйгөйлөрдү чечүү камтылган.
Preview Waveshare SX1262 LoRaWAN/GNSS HAT колдонуучусунун колдонмосу жана колдонмосу
Waveshare SX1262 LoRaWAN/GNSS HAT боюнча анын функцияларын, техникалык параметрлерин, жабдыктын туташуусун, пинуттун аныктамасын, программалык камсыздоону орнотууну, LoRaWAN түшүнүктөрүн жана The Things Network (TTN) менен интеграциясын камтыган кеңири колдонмо.
Preview Waveshare e-Paper Driver HAT Колдонуучунун колдонмосу: SPI E-Paper дисплейлерин Raspberry Pi, Arduino, STM32ге туташтыруу
Waveshare e-Paper Driver HAT үчүн колдонуучу колдонмосу, анын өзгөчөлүктөрү, продукт параметрлери, интерфейстин спецификациялары жана колдоого алынган электрондук кагаз моделдери. Raspberry Pi, Arduino жана STM32 иштеп чыгуу такталарын орнотуу боюнча көрсөтмөлөрдү камтыйт.