AST-CAN485 Hookup Guide
Example: Simple CAN Network
In this example, a simple two node CAN bus network is constructed. One node transmits a message, the other receives it and passes it on over the serial port to a PC.
Required Materials
The following materials are required for this example. You may not need everything though depending on what you have. Add it to your cart, read through the guide, and adjust the cart as necessary.
- 2x CAN485
- 2x 120Ω Resistors*
- FTDI
- USB Cable
- Breadboard, Jumper Wires, etc.
Hardware Hookup
Construct the network as shown.
Upload Code
Ensure that the CAN485 boards and CAN library have been installed. The example code is installed with the CAN library. It is available in the Arduino IDE under the examples menu.
Upload the transmitter example code to the transmitter node. Then upload the receiver example code to the receiver node.
What You Should See
The transmitter node will send a message every 500ms. The receiver node will receive it and pass it on to the PC over the serial port. Open the serial port on the PC using the Arduino Serial Monitor (or your favorite serial terminal) and select 1000000 (1MBaud).