This tutorial is only relevant for Chromebook users that uses an Arduino UNO WiFi Rev 2 board.
The UNO WiFi Rev 2 is the connected version of the classic UNO board. If you are using a Chromebook, setting up your board is a bit different for this particular board:
Note that only the Web Editor is supported in Chromebooks. It is not possible to configure and upload to UNO WiFi Rev 2 boards via the IoT Cloud.
The goals of this project are:
While you won't be using the Arduino IDE directly, you will be utilizing a tool called AVRDUDE that is included in each version of the IDE. If you wish to install just AVRDUDE, please refer to the GitHub repository.
Since Chromebooks cannot run executables, the firmware upgrade for the UNO WiFi Rev 2 needs to be done through a Windows/Mac/Linux computer.
1. Make sure you have installed Arduino IDE 1.8.X.
2. Download the optiboot_atmega4.hex file, and move it to your Desktop folder.
3. Open your Command Prompt (Windows) or Terminal (Mac/Linux), copy paste the command for your OS from the snippets below.
1/Applications/Arduino.app/Contents/Java/hardware/tools/avr/bin/avrdude -C /Applications/Arduino.app/Contents/Java/hardware/tools/avr/etc/avrdude.conf -v -patmega4809 -cxplainedmini_updi -Pusb -b115200 -e -D -Ufuse2:w:0x01:m -Ufuse5:w:0xC9:m -Ufuse8:w:0x02:m -Uflash:w:/Users/$(whoami)/Desktop/optiboot_atmega4809.hex:i
1"C:/Program Files (x86)/Arduino/hardware/tools/avr/bin/avrdude.exe" -C "C:/Program Files (x86)/Arduino/hardware/tools/avr/etc/avrdude.conf" -v -patmega4809 -cxplainedmini_updi -Pusb -b115200 -e -D -Ufuse2:w:0x01:m -Ufuse5:w:0xC9:m -Ufuse8:w:0x02:m -Uflash:w:%userprofile%\Desktop\optiboot_atmega4809.hex:i
4. This will start a process of uploading the
.hex
file to your board. This will not take long, but make sure you do not disconnect the board from your computer. When finished, you should see the following output in the terminal (screen capture from Windows): 5. Now that your firmware is upgraded, you should see your board blinking (1 second off, followed by a quick blink). This is another proof that it was successful. You can now disconnect your board, and plug it into your Chromebook.
In the terminal, navigate to your root directory.
1cd /
Then, run the following command:
1home/$(whoami)/Downloads/arduino-1.8.19-linux64/arduino-1.8.19/hardware/tools/avr/bin/avrdude -C home/$(whoami)/Downloads/arduino-1.8.19-linux64/arduino-1.8.19/hardware/tools/avr/etc/avrdude.conf -v -patmega4809 -cxplainedmini_updi -Pusb -b115200 -e -D -Ufuse2:w:0x01:m -Ufuse5:w:0xC9:m -Ufuse8:w:0x02:m -Uflash:w:/home/$(whoami)/Desktop/optiboot_atmega4809.hex:i
Please note that on Linux, the path to the AVRDUDE tool may vary.
The above commands utilizes a tool called AVRDUDE, which is included in each version of the IDE. To check whether it is accessible on your computer, you can run the following commands.
Windows:
1"C:/Program Files (x86)/Arduino/hardware/tools/avr/bin/avrdude.exe"
Mac:
1/Applications/Arduino.app/Contents/Java/hardware/tools/avr/bin/avrdude
Linux:
1/home/$(whoami)/Downloads/arduino-1.8.19-linux64/arduino-1.8.19/hardware/tools/avr/bin/avrdude
If the command fails to upgrade the firmware, please make sure that:
.hex
file in the Desktop folder. The command is written to look for it in that specific folder, so if it is not present, it will not work.To program your Arduino via a Chromebook, you will need the Arduino Create for Education app. This is downloaded and installed via the Chrome Web Store.
If you have previously installed the app, make sure your version is up to date.
To use the Web Editor, you will need to be logged into your Arduino account. If you don't have an account, you will need to register one.
1. Head over to the Web Editor.
2. Create a new sketch, and write your program.
3. When you want to upload, connect your board to your computer via USB.
4. After connecting, the board's name and port is visible at the top of the editor (next to upload button). In this case, it is
COM32
.5. Click the upload button. This will start the compilation process, and then upload the sketch to your board.
Congratulations, you have now uploaded a sketch to your UNO WiFi Rev 2 using the Web Editor on a Chromebook.
If things are not working as expected:
In this tutorial, we learned how to upload sketches to the UNO WiFi Rev 2 board, using the Web Editor on a Chromebook. For more tutorials on the UNO WiFi Rev 2 board, visit the official documentation.