0%

Arduino Uno R4

Continue, the Arduino UNO R4.

1. Introduction

1.1 lsusb

1
2
3
......
Bus 011 Device 058: ID 2341:1002 Arduino SA UNO WiFi R4 CMSIS-DAP
......

1.2 Spec

What I purchased is an Arduino UNO R4 WiFi. Detailed specification about it can be found on Arduino UNO R4 Wifi Doc.

1.3 Github Source Code

Typically, there's no need to rebuild your project from the ground up. However, when needed, Arduino UNO R4 Wifi USB Bridge offers open-source resource that you can utilize as a foundation for further development.

2. Demonstrate Arduino Examples

2.1 Environment Configuration

  • Install Arduino Environment When I tried to run the basic example blink, I was asked to install the package renesas_uno@1.0.5, as shown in the Output console of Arduino IDE: Arduino UNO R4 Wifi Output

2.2 Flash a Sketch

  • Sketch Verify/Compile
1
2
Sketch uses 51488 bytes (19%) of program storage space. Maximum is 262144 bytes.
Global variables use 6744 bytes (20%) of dynamic memory, leaving 26024 bytes for local variables. Maximum is 32768 bytes.
  • Upload
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
Sketch uses 51488 bytes (19%) of program storage space. Maximum is 262144 bytes.
Global variables use 6744 bytes (20%) of dynamic memory, leaving 26024 bytes for local variables. Maximum is 32768 bytes.
Erase flash

Done in 0.001 seconds
Write 51496 bytes to flash (13 pages)

[ ] 0% (0/13 pages)
[== ] 7% (1/13 pages)
[==== ] 15% (2/13 pages)
[====== ] 23% (3/13 pages)
[========= ] 30% (4/13 pages)
[=========== ] 38% (5/13 pages)
[============= ] 46% (6/13 pages)
[================ ] 53% (7/13 pages)
[================== ] 61% (8/13 pages)
[==================== ] 69% (9/13 pages)
[======================= ] 76% (10/13 pages)
[========================= ] 84% (11/13 pages)
[=========================== ] 92% (12/13 pages)
[==============================] 100% (13/13 pages)
Done in 3.480 seconds

Now, one LED starts blinking successfully.

3. Arduino UNO R4 WiFi Examples

3.1 Wi-Fi Web Server

First, let me test the example Wi-Fi® Web Server on Arduino official tutorial UNO R4 WiFi Network Examples. The code can be found on Github Arduino WiFiWebServer. And the following is printed in the Output console of Arduino IDE.

1
2
3
4
5
Please upgrade the firmware
Attempting to connect to SSID: TELUSXXXX
SSID: TELUSXXXX
IP Address: 192.168.1.YY
signal strength (RSSI):-52 dBm

3.2 Upgrade Firmware of UNO R4 Wifi

It's confusing that I received the error message Please upgrade the firmware, right after I installed/upgraded renesas_uno@1.0.5 from within Arduino IDE.

In the end, I noticed there are 2 main chips on Arduino UNO R4 WiFi, and renesas's firmware is installed/upgraded, but ESP32's firmware hasn't yet. Therefore, I proceeded with upgrading ESP32's firmware by following Arduino UNO R4 WiFi Upload to ESP32.

Different from 1.1, by shorting the download pin and GND, now we have a different lsusb result:

1
2
3
......
Bus 011 Device 007: ID 303a:1001 Espressif USB JTAG/serial debug unit
......

Again, I was asked to install the esp32 package(s), as shown:

esp32 installation

Click YES and continue the installation:

esp32 packages to upgrade
install esp32 package
install esp32 boards package

3.3 Wi-Fi Web Client

Now, let me test the example Wi-Fi® Web Client on Arduino official tutorial UNO R4 WiFi Network Examples. The code can be found on Github Arduino WiFiWebClient. And a bunch of communication info with www.google.com are printed on the Output console of Arduino IDE.

Arduino Wifi Web Client Upload
Arduino Wifi Web Client Running

4. Arduino UNO R4 WiFi - ChatGPT

Finally, let's extend a bit. Let's finish our demonstration of the day by chatting with OpenAI's ChatGPT on this Arduino UNO R4 WiFi.

My source code is provided at Longer Vision Robot Arduino Examples.

And its demonstration can be seen by this screenshot.

Arduino UNO R4 WiFi ChatGPT