hero

Getting Started with UNO R4 WiFi

A step-by-step guide to install the board package needed for the UNO R4 WiFi board.

To use the Arduino UNO R4 WiFi board, you will need to install the UNO R4 WiFi board package, which is part of the Arduino UNO R4 Core.

To install it, you will need the Arduino IDE, which you can download from the Arduino Software page. In this guide, we will use the latest version of the IDE 2.

Software & Hardware Needed

You can also use the Web Editor which comes with all Arduino boards pre-installed.

Download & Install IDE

  1. First, we need to download the Arduino IDE, which can be done from the Arduino Software page.
  2. Install the Arduino IDE on your local machine.
  3. Open the Arduino IDE.

The Arduino IDE.
The Arduino IDE.

Install Board Package

To install the board package, open the "Board Manager" from the menu to the left. Search for UNO R4 WiFi and install the latest version (or the version you want to use).

Install UNO R4 WiFi boards package.
Install UNO R4 WiFi boards package.

You should now be able to select your board in the board selector. You will need to have your board connected to your computer via the USB-C® connector at this point.

Arduino UNO R4 WiFi board found.
Arduino UNO R4 WiFi board found.

Congratulations, you have now successfully installed the UNO R4 WiFi board package via the Arduino IDE.

Compile & Upload Sketches

To compile and upload sketches, you can use the:

  • Checkmark for compiling code.
  • Right arrow to upload code.

There are several examples available for the UNO R4 WiFi board, which can be accessed directly in the IDE, through File > Examples. These examples can be used directly without external libraries.

UNO R4 WiFi examples.
UNO R4 WiFi examples.

Tetris Animation Sketch

The UNO R4 WiFi comes preloaded with a Tetris animation. If you've overwritten that sketch and want to restore the board to play the animation again, the sketch can be found here:

1#include "Arduino_LED_Matrix.h"
2#include <stdint.h>
3
4ArduinoLEDMatrix matrix;
5
6const uint32_t frames[][4] = {
7 {
8 0xe0000000,
9 0x0,
10 0x0,
11 66
12 },
13 {
14 0x400e0000,
15 0x0,
16 0x0,
17 66
18 },
19 {
20 0x400e0,
21 0x0,
22 0x0,
23 66
24 },
25 {
26 0x40,
27 0xe000000,
28 0x0,
29 66
30 },
31 {
32 0x3000000,
33 0x400e000,
34 0x0,
35 66
36 },
37 {
38 0x3003000,
39 0x400e,
40 0x0,
41 66
42 },
43 {
44 0x3003,
45 0x4,
46 0xe00000,
47 66
48 },
49 {
50 0x3,
51 0x300000,
52 0x400e00,
53 66
54 },
55 {
56 0x0,
57 0x300300,
58 0x400e00,
59 66
60 },
61 {
62 0x1c000000,
63 0x300,
64 0x30400e00,
65 66
66 },
67 {
68 0x401c000,
69 0x0,
70 0x30430e00,
71 66
72 },
73 {
74 0x401c,
75 0x0,
76 0x430e30,
77 66
78 },
79 {
80 0x4,
81 0x1c00000,
82 0x430e30,
83 66
84 },
85 {
86 0x0,
87 0x401c00,
88 0x430e30,
89 66
90 },
91 {
92 0x800000,
93 0x401,
94 0xc0430e30,
95 66
96 },
97 {
98 0x800800,
99 0x0,
100 0x405f0e30,
101 66
102 },
103 {
104 0x800800,
105 0x80000000,
106 0x470ff0,
107 66
108 },
109 {
110 0x800800,
111 0x80080000,
112 0x470ff0,
113 66
114 },
115 {
116 0x800,
117 0x80080080,
118 0x470ff0,
119 66
120 },
121 {
122 0x38000000,
123 0x80080080,
124 0x8470ff0,
125 66
126 },
127 {
128 0x10038000,
129 0x80080,
130 0x8478ff0,
131 66
132 },
133 {
134 0x10038,
135 0x80,
136 0x8478ff8,
137 66
138 },
139 {
140 0x700010,
141 0x3800080,
142 0x8478ff8,
143 66
144 },
145 {
146 0x400700,
147 0x1003880,
148 0x8478ff8,
149 66
150 },
151 {
152 0x400,
153 0x70001083,
154 0x88478ff8,
155 66
156 },
157 {
158 0xf000000,
159 0x40070081,
160 0x87f8ff8,
161 66
162 },
163 {
164 0xf000,
165 0x400f1,
166 0x87f8ff8,
167 66
168 },
169 {
170 0x8000000f,
171 0xc1,
172 0xf7f8ff8,
173 66
174 },
175 {
176 0xc0080000,
177 0xf00081,
178 0xc7ffff8,
179 66
180 },
181 {
182 0x400c0080,
183 0xf81,
184 0x87fcfff,
185 66
186 },
187 {
188 0x3400c0,
189 0x8000081,
190 0xf87fcfff,
191 66
192 },
193 {
194 0x20200340,
195 0xc008081,
196 0xf87fcfff,
197 66
198 },
199 {
200 0x38220200,
201 0x3400c089,
202 0xf87fcfff,
203 66
204 },
205 {
206 0x38220,
207 0x2003408d,
208 0xf8ffcfff,
209 66
210 },
211 {
212 0x86100038,
213 0x220240bd,
214 0xf8ffcfff,
215 66
216 },
217 {
218 0xec186100,
219 0x38260ad,
220 0xfbffcfff,
221 66
222 },
223 {
224 0x3ec186,
225 0x100078af,
226 0xfaffffff,
227 66
228 },
229 {
230 0x114003ec,
231 0x186178af,
232 0xfaffffff,
233 66
234 },
235 {
236 0x3b411400,
237 0x3ec1febf,
238 0xfaffffff,
239 66
240 },
241 {
242 0x143b411,
243 0x4ec3febf,
244 0xfbffffff,
245 66
246 },
247 {
248 0xc040143b,
249 0x4fd7febf,
250 0xfbffffff,
251 66
252 },
253 {
254 0xc60c0439,
255 0x4ff7ffff,
256 0xfbffffff,
257 66
258 },
259 {
260 0x33c60f9,
261 0x4ff7ffff,
262 0xffffffff,
263 66
264 },
265 {
266 0x3cbc33ff,
267 0x4ff7ffff,
268 0xffffffff,
269 66
270 },
271 {
272 0x8ffbff,
273 0x7ff7ffff,
274 0xffffffff,
275 66
276 },
277 {
278 0xf0cffbff,
279 0xfff7ffff,
280 0xffffffff,
281 66
282 },
283 {
284 0xfe1fffff,
285 0xffffffff,
286 0xffffffff,
287 66
288 },
289 {
290 0xffffffff,
291 0xffffffff,
292 0xffffffff,
293 66
294 },
295 {
296 0x7fffffff,
297 0xffffffff,
298 0xfffff7ff,
299 66
300 },
301 {
302 0x3fe7ffff,
303 0xffffffff,
304 0xff7ff3fe,
305 66
306 },
307 {
308 0x1fc3fe7f,
309 0xfffffff7,
310 0xff3fe1fc,
311 66
312 },
313 {
314 0xf81fc3f,
315 0xe7ff7ff3,
316 0xfe1fc0f8,
317 66
318 },
319 {
320 0x500f81f,
321 0xc3fe3fe1,
322 0xfc0f8070,
323 66
324 },
325 {
326 0x500f,
327 0x81fc1fc0,
328 0xf8070020,
329 66
330 },
331 {
332 0x5,
333 0xf80f80,
334 0x70020000,
335 66
336 },
337 {
338 0x5,
339 0xa80880,
340 0x50020000,
341 600
342 },
343 {
344 0xd812,
345 0x41040880,
346 0x50020000,
347 200
348 },
349 {
350 0x5,
351 0xa80880,
352 0x50020000,
353 0xFFFFFFFF
354 }
355};
356
357void setup() {
358 Serial.begin(115200);
359 // you can also load frames at runtime, without stopping the refresh
360 matrix.loadSequence(frames);
361 matrix.begin();
362 // turn on autoscroll to avoid calling next() to show the next frame; the parameter is in milliseconds
363 // matrix.autoscroll(300);
364 matrix.play(true);
365 pinMode(LED_BUILTIN, OUTPUT);
366}
367
368void loop() {
369 digitalWrite(LED_BUILTIN, HIGH);
370 delay(1000);
371 digitalWrite(LED_BUILTIN, LOW);
372 delay(1000);
373}

Summary

In this tutorial, we have installed the UNO R4 WiFi board package, using the Arduino IDE.

For any issues regarding the UNO R4 WiFi board package, please refer to the Arduino UNO R4 Core.

Tutorial Toolbox

Contribute to Arduino

Join the community and suggest improvements to this article via GitHub. Make sure to read out contribution policy before making your pull request.

Missing something?

Check out our store and get what you need to follow this tutorial.

Suggest Changes

The content on docs.arduino.cc is facilitated through a public GitHub repository. You can read more on how to contribute in the contribution policy.