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
Copy file name to clipboardExpand all lines: content/hardware/02.hero/boards/uno-r4-wifi/tutorials/cheat-sheet/cheat-sheet.md
+29-33Lines changed: 29 additions & 33 deletions
Original file line number
Diff line number
Diff line change
@@ -17,6 +17,7 @@ software:
17
17
- web-editor
18
18
---
19
19
20
+
20
21
The **Arduino UNO** is our most popular and globally recognized development board, and has become a staple in the maker community and education since its release. The **Arduino UNO R4 WiFi** board is part of the 4th revision of UNO boards, and the first to feature a 32-bit MCU (RA4M1 series from Renesas).
21
22
22
23
The **UNO R4 WiFi** features a large 12x8 LED Matrix that you can create animations and simple graphics with, as well as an onboard ESP32-S3 module giving the board Wi-Fi and Bluetooth® functionality. It also features a DAC and an Op-Amp.
@@ -71,12 +72,14 @@ The ESP32 also exposes the ESP32's data lines, so that you can program the ESP32
71
72
72
73

73
74
74
-
The way this is implemented on the UNO R3 also means that the board is not able to emulate an HID device, such as a keyboard or a mouse. This is, however, not true for the UNO R4.
75
-
76
75
### USB Bridge
77
-
As mentioned, by default the ESP32 is acting as a serial bridge, however if you wish you can change this and get direct access to the serial bus on the RA4M1 MCU either with software or hardware.
76
+
By default the ESP32 acts as a serial bridge between a computer and the RA4M1 MCU. The USB data lines are routed through switches, and by default, these switches are set for communication to go via the ESP32 module.
77
+
78
+

78
79
79
-
1. Software - By pulling D40 to HIGH you will close the circuit that controls which MCU is connected to USB. While D40 is HIGH, the RA4M1 is connected to the USB Serial port.
80
+
If you wish you can change this and get direct access to the serial bus on the RA4M1 MCU either with software or hardware. See the instructions below:
81
+
82
+
1. Software - By pulling D40 to HIGH you will close the circuit that controls which MCU is connected to USB. While D40 is HIGH, the RA4M1 is connected to the USB Serial port, and while D40 is LOW the ESP32 is connected, like the default configuration.
80
83
You can do this by including the following code in `void setup()`
81
84
```arduino
82
85
pinMode(40, OUTPUT);
@@ -86,30 +89,36 @@ As mentioned, by default the ESP32 is acting as a serial bridge, however if you
86
89
87
90

88
91
89
-
### WiFi
92
+
### Wi-Fi®
93
+
94
+
The ESP32 onboard the UNO R4 WiFi is used to give the board Wi-Fi® capabilities. The Wi-Fi module has a bitrate of up to 150 Mbps. The ESP32 module has a built in trace-antenna, meaning that you do not need an external one to use the connectivity features of the board. However, this trace antenna is shared with the Bluetooth® module, which means that you cannot use Bluetooth® and Wi-Fi® at the same time.
90
95
91
-
### Bluetooth
96
+
### Bluetooth®
97
+
98
+
Thanks to the ESP32 module, the UNO R4 WiFi has Bluetooth® LE and Bluetooth® 5 capabilities, at a speed of up to 2 Mbps. The ESP32 module has a built in trace-antenna, meaning that you do not need an external one to use the connectivity features of the board. However, this trace antenna is shared with the Bluetooth® module, which means that you cannot use Bluetooth® and Wi-Fi® at the same time.
92
99
93
100
### Programming the ESP32 (Advanced)
94
-
The ESP32 can be programmed individually from the RA4M1, with access to the data lines in the ESP header. By default, the ESP32's is used mainly as a radio module using Wi-Fi and Bluetooth®.
101
+
102
+
The ESP32 module and the Renesas RA4M1-chip are part of a sophisticated USB-Serial system that is highly flexible and adaptive to allow for HID features while still keeping the ability to program both the main MCU, and the ESP32, if you so wish. By default, the ESP32's is used mainly as a radio module using Wi-Fi and Bluetooth®.
95
103
96
104
Overwriting the ESP32's firmware disrupts the communication between the two MCUs, but enables them to act independently.
97
105
98
-
To reprogram the ESP32 board you can find UART-pads next to the ESP32 Module, that are laid out as shown in the image below:
106
+
To reprogram the ESP32 board you can either find UART-pads next to the ESP32 Module, that are laid out as shown in the image below:
99
107
100
108

101
109
110
+
or you can use the pins exposed directly on the ESP32 header, shown here:
111
+
112
+

113
+
102
114
## LED Matrix
103
115
The LED Matrix on the UNO R4 WiFi is available to use in your program, to display still graphics, animations, or even play games on. Bundled in the core for the UNO R4 is a library for displaying frames on the matrix.
104
116
105
-
### LED_Matrix
106
-
Initialise a LED_matrix by for example adding this code to the start of your sketch:
107
-
```arduino
108
-
LED_matrix matrix;
109
-
```
117
+
To learn about the LED matrix in depth, check out the [LED Matrix Guide](/tutorials/uno-r4-wifi/led-matrix/).
110
118
111
-
### LED_Matrix.load()
112
-
If you've written your sketch to hold your frames as child-arrays inside of a parent-array, `load()` can be used to load the parent-array, as such:
119
+
-`Arduino_LED_Matrix matrix` - Initialises a LED matrix.
120
+
-`Arduino_LED_Matrix.load()` - Loads a frame into the frame buffer.
0 commit comments