Skip to content

Commit 46cf7e4

Browse files
authored
Merge pull request #92 from arduino/karlsoderby/chromebook-unowifir2-update
Chromebook guide update
2 parents d644339 + a177a58 commit 46cf7e4

File tree

1 file changed

+36
-26
lines changed

1 file changed

+36
-26
lines changed

content/hardware/02.hero/boards/uno-wifi-rev2/tutorials/uno-wifi-rev-2/uno-wifi-r2-chromebook-installation/uno-wifi-r2-chromebook-installation.md

Lines changed: 36 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -21,8 +21,6 @@ The [UNO WiFi Rev 2](https://store.arduino.cc/arduino-uno-wifi-rev2) is the conn
2121
- You will need to upgrade the firmware using either a **Windows/Mac/Linux** computer, prior to programming it via a Chromebook. Detailed instructions are provided in this tutorial, and the process only takes a few minutes!
2222
- It is only possible to use the [Web Editor](https://create.arduino.cc/editor), an online IDE that is part of the [Arduino Cloud](https://cloud.arduino.cc/).
2323

24-
***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](https://create.arduino.cc/iot/things).***
25-
2624
## Goals
2725

2826
The goals of this project are:
@@ -33,58 +31,66 @@ The goals of this project are:
3331

3432
## Hardware & Software Needed
3533

36-
- [Arduino IDE 2](https://www.arduino.cc/en/software#future-version-of-the-arduino-ide).
34+
- AVRDUDE (instructions provided in the next section for each OS).
3735
- [Arduino Web Editor](https://create.arduino.cc/).
3836
- [Arduino Create for Education](https://chrome.google.com/webstore/detail/arduino-create-for-educat/elmgohdonjdampbcgefphnlchgocpaij) (Chrome Web Store)
3937
- [Arduino UNO WiFi Rev 2](https://store.arduino.cc/arduino-uno-wifi-rev2).
4038

41-
***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](https://github.com/avrdudes/avrdude).***
42-
4339
## Upgrading Firmware
4440

4541
Since Chromebooks cannot run executables, the firmware upgrade for the UNO WiFi Rev 2 needs to be done through a Windows/Mac/Linux computer.
4642

47-
**1.** Make sure you have installed [Arduino IDE 2](https://www.arduino.cc/en/software#future-version-of-the-arduino-ide).
48-
49-
**2.** Download the [optiboot_atmega4.hex](/resources/firmware/optiboot_atmega4809.hex) file, and move it to your **Desktop folder**.
43+
First download the [optiboot_atmega4.hex](/resources/firmware/optiboot_atmega4809.hex) file, and move it to your **Desktop folder**.
5044

5145
![.hex file in your Desktop folder.](assets/hex-file-desktop.png)
5246

53-
**3.** Connect your UNO WiFi Rev2 board to your computer and open your Command Prompt (Windows) or Terminal (Mac/Linux), copy paste the command for your OS from the snippets below.
47+
Connect your UNO WiFi Rev2 board to your computer and follow the instructions for each operative system below.
48+
49+
***It is important that you move the `optiboot_atmega4.hex` file to your desktop folder, otherwise the following commands won't work.***
5450

5551
### Mac
5652

53+
**1.** Download the [AVRDUDE tool for Mac (.zip file)](http://downloads.arduino.cc/tools/avrdude-6.3.0-arduino17-x86_64-apple-darwin12.tar.bz2) and unzip it to your Desktop folder.
54+
55+
**2.** Open a terminal, and run the following command:
56+
5757
```
58-
/Users/$(whoami)/Library/Arduino15/packages/arduino/tools/avrdude/6.3.0-arduino17/bin/avrdude -C/Users/$(whoami)/Library/Arduino15/packages/arduino/tools/avrdude/6.3.0-arduino17/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
58+
/Users/$(whoami)/Desktop/avrdude/bin/avrdude -C/Users/$(whoami)/Desktop/avrdude/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
5959
```
6060

6161
### Windows
6262

63-
```
64-
"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
65-
```
63+
**1.** Download the [AVRDUDE tool for Windows (.zip file)](http://downloads.arduino.cc/tools/avrdude-6.3.0-arduino17-i686-w64-mingw32.zip) and unzip it to your Desktop folder.
6664

67-
**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):
65+
**2.** Open a command prompt (CMD), and run the following command:
6866

69-
![Successful upgrade](assets/windows-success.png)
67+
```
68+
"%userprofile%/Desktop/avrdude/bin/avrdude.exe" -C "%userprofile%/Desktop/avrdude/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
69+
```
7070

71-
**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.**
71+
### Linux
7272

73-
## Linux
73+
**1.** Download the [AVRDUDE tool for Linux (.zip file)](http://downloads.arduino.cc/tools/avrdude-6.3.0-arduino17-x86_64-pc-linux-gnu.tar.bz2) and unzip it to your Desktop folder.
7474

75-
In the terminal, navigate to your root directory.
75+
**2.** Open a terminal, navigate to your root directory.
7676

7777
```
7878
cd /
7979
```
8080

81-
Then, run the following command:
81+
**3.** Run the following command:
8282

8383
```
84-
home/$(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
84+
/Users/$(whoami)/Desktop/avrdude/bin/avrdude -C/Users/$(whoami)/Desktop/avrdude/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
8585
```
8686

87-
***Please note that on Linux, the path to the AVRDUDE tool may vary.***
87+
### Expected Outcome
88+
89+
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):
90+
91+
![Successful upgrade](assets/windows-success.png)
92+
93+
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.**
8894

8995
### Check AVRDUDE Installation
9096

@@ -93,26 +99,26 @@ The above commands utilizes a tool called **AVRDUDE**, which is included in each
9399
**Windows:**
94100

95101
```
96-
"C:/Program Files (x86)/Arduino/hardware/tools/avr/bin/avrdude.exe"
102+
"%userprofile%/Desktop/avrdude/bin/avrdude.exe"
97103
```
98104

99105
**Mac:**
100106

101107
```
102-
/Applications/Arduino.app/Contents/Java/hardware/tools/avr/bin/avrdude
108+
/Users/$(whoami)/Desktop/avrdude/bin/avrdude
103109
```
104110

105111
**Linux:**
106112

107113
```
108-
/home/$(whoami)/Downloads/arduino-1.8.19-linux64/arduino-1.8.19/hardware/tools/avr/bin/avrdude
114+
/Users/$(whoami)/Desktop/avrdude/bin/avrdude
109115
```
110116

111117
### Troubleshoot
112118

113119
If the command fails to upgrade the firmware, please make sure that:
114120

115-
- Arduino IDE / AVRDUDE is installed.
121+
- AVRDUDE is accessible (see above instructions). The commands are designed to look for the tool in the `Desktop` folder, so it will need to be unzipped there.
116122
- That you are using a Windows/Mac/Linux computer (remember, this cannot be performed on a Chromebook).
117123
- That you have the `.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.
118124

@@ -144,6 +150,8 @@ To program your Arduino via a Chromebook, you will need the [Arduino Create for
144150

145151
Congratulations, you have now uploaded a sketch to your UNO WiFi Rev 2 using the Web Editor on a Chromebook.
146152

153+
***For more details on using the Web Editor, visit the [Getting Started with Web Editor guide](/cloud/web-editor/tutorials/getting-started/getting-started-web-editor).***
154+
147155
### Troubleshoot
148156

149157
If things are not working as expected:
@@ -153,4 +161,6 @@ If things are not working as expected:
153161

154162
## Conclusion
155163

156-
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](/hardware/uno-wifi-rev2).
164+
In this tutorial, we learned how to prepare the UNO WiFi Rev 2 board, to be used on a Chromebook. This was done by loading a specific hardware to the board, using the **AVRDUDE** tool and some custom commands.
165+
166+
For more tutorials on the UNO WiFi Rev 2 board, visit the [official documentation](/hardware/uno-wifi-rev2).

0 commit comments

Comments
 (0)