The Joy Robot
Home | Content | Services | About
Search Eng Dark

TJR-News News, Microcontrollers 2023-06-27

Arduino launches the UNO R4 family: the classic Arduino UNO goes 32-bit with a Renesas RA4M1, Wi-Fi and an LED matrix

For many of us, the Arduino UNO was the gateway into the world of electronics and microcontroller programming. Its R3 revision, based on the 8-bit ATmega328P, had gone more than a decade practically unchanged. This Monday, June 26, Arduino put its successor on sale: the UNO R4, announced last March 18 during Arduino Day.



The Arduino UNO R4 WiFi, with its LED matrix and ESP32-S3 module. Source: Arduino.



A jump to 32 bits

The big change is in the board's brain. The UNO R4 uses the Renesas RA4M1, a microcontroller with a 32-bit Arm Cortex-M4 core at 48 MHz. Compared with the UNO R3's ATmega328P, it offers three times the clock speed, eight times more flash memory (256 KB) and 16 times more RAM (32 KB).

The best part is that Arduino kept the same form factor, the same pinout and the same 5 V operating voltage. That means shields and most projects made for the UNO R3 should work on the R4. Arduino and the community are already updating the most popular libraries to make them compatible.



The main differences between the UNO R3 and the two versions of the UNO R4. Table: The Joy Robot.



Two versions

The UNO R4 Minima, for 20 dollars, is the basic version. Besides the new microcontroller, it adds a USB-C port, a 12-bit digital-to-analog converter (DAC), a CAN bus controller, an operational amplifier, a real-time clock (RTC) and an SWD port for debugging. It also accepts up to 24 V through the input jack and can act as a USB keyboard or mouse.

The UNO R4 WiFi, for 27.50 dollars, includes all of the above and adds:



  • An Espressif ESP32-S3 module that provides Wi-Fi and Bluetooth Low Energy, and lets you connect the board to Arduino Cloud.
  • A 12 × 8 red LED matrix built into the board, to show animations, text or sensor data without extra hardware.
  • A Qwiic connector to plug in I2C modules without soldering.
  • A system that detects errors that would make the board hang, such as a division by zero, and shows a detailed explanation in the serial monitor.

Trying out the LED matrix

The UNO R4 WiFi's LED matrix is controlled with the Arduino_LED_Matrix library, which comes included in the board package. This example draws a heart:



Language: Plain text

 1 | #include "Arduino_LED_Matrix.h"
 2 | 
 3 | ArduinoLEDMatrix matrix;
 4 | 
 5 | // 1 = LED on, 0 = LED off (8 rows x 12 columns)
 6 | uint8_t heart[8][12] = {
 7 |   { 0,0,0,0,0,0,0,0,0,0,0,0 },
 8 |   { 0,0,0,1,1,0,1,1,0,0,0,0 },
 9 |   { 0,0,1,0,0,1,0,0,1,0,0,0 },
10 |   { 0,0,1,0,0,0,0,0,1,0,0,0 },
11 |   { 0,0,0,1,0,0,0,1,0,0,0,0 },
12 |   { 0,0,0,0,1,0,1,0,0,0,0,0 },
13 |   { 0,0,0,0,0,1,0,0,0,0,0,0 },
14 |   { 0,0,0,0,0,0,0,0,0,0,0,0 }
15 | };
16 | 
17 | void setup() {
18 |   matrix.begin();
19 |   matrix.renderBitmap(heart, 8, 12);
20 | }
21 | 
22 | void loop() {
23 | }

To program it, just install the Arduino UNO R4 Boards package from the Arduino IDE's board manager and connect the board via USB-C.



Our take

It was about time. The ATmega328P is a beloved microcontroller, but in 2023 its 2 KB of RAM falls far short of boards like the ESP32 or the Raspberry Pi Pico, which cost the same or less and offer much more. The UNO R4 brings the Arduino UNO up to date without breaking compatibility, which is exactly what made it so popular.

We especially like the WiFi version: having Wi-Fi, Bluetooth and an LED matrix on the same board, with the UNO's form factor and documentation, makes it an excellent option for teaching and for IoT projects. We'll have to see how quickly the libraries that relied on ATmega-specific registers catch up, because that's the only weak point of the transition. For those of us who work with microcontrollers, it's great news.




The Joy Robot