You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In this tutorial, we are using a CANXXXXX breakout module.
28
+
In this tutorial, we are using a SN65HVD230 breakout module.
29
29
30
30
## Controller Area Network (CAN)
31
31
32
32
The CAN bus uses two wires: **CAN high** and **CAN low**. On the Arduino UNO R4 Minima, these pins are:
33
33
- D5/CANRX0 (receive)
34
34
- D4/CANTX0 (transmit)
35
35
36
-
To communicate with other CAN devices however, you need a transceiver module. In this tutorial, we will be using a CANXXXX module based on the XXX chip. To connect this, you can follow the circuit diagram available in the section below.
36
+
To communicate with other CAN devices however, you need a transceiver module. In this tutorial, we will be using a SN65HVD230 breakout. To connect this, you can follow the circuit diagram available in the section below.
37
37
38
38
For this tutorial, we will use a simple example that sends a CAN message between two UNO R4 Minima devices. If you wish, you can also connect an existing CAN device to the UNO R4 Minima.
39
39
@@ -55,10 +55,6 @@ Then, between the CAN transceivers, connect the following:
55
55
| CANH (HIGH) | CANH (HIGH) |
56
56
| CANL (LOW) | CANL (LOW) |
57
57
58
-
The complete circuit diagram can be seen below:
59
-
60
-
![CAN circuit.]()
61
-
62
58
## Code Examples
63
59
64
60
The following code examples needs to be uploaded to each of the UNO R4 Minima boards, one will send a message, one will receive it. These examples are available in the Renesas core, and using the Arduino IDE, you can access them by navigating to **File > Examples > Arduino_CAN > CANWrite/CANRead**
@@ -162,4 +158,4 @@ void loop()
162
158
163
159
This tutorial shows how to use the CAN bus available on the UNO R4 Minima, and how to send and receive data using the Arduino_CAN library.
164
160
165
-
Read more about this board in the [Arduino UNO R4 Minima documentation]().
161
+
Read more about this board in the [Arduino UNO R4 Minima documentation](/hardware/uno-r4-minima).
0 commit comments