|
| 1 | +--- |
| 2 | +title: 'UNO WiFi Rev 2 Chromebook Setup' |
| 3 | +difficulty: easy |
| 4 | +description: 'A quick tutorial on how to setup your UNO WiFi Rev 2 board with a Chromebook, using the Web Editor & the Arduino Chrome App.' |
| 5 | +tags: |
| 6 | + - Chromebook |
| 7 | + - Installation |
| 8 | +author: 'Karl Söderby' |
| 9 | +hardware: |
| 10 | + - hardware/03.hero/boards/uno-wifi-rev-2 |
| 11 | +software: |
| 12 | + - web-editor |
| 13 | +--- |
| 14 | + |
| 15 | +## Introduction |
| 16 | + |
| 17 | +> This tutorial is only relevant for Chromebook users that uses an Arduino UNO WiFi Rev 2 board. |
| 18 | +
|
| 19 | +The [UNO WiFi Rev 2](https://store.arduino.cc/arduino-uno-wifi-rev2) 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: |
| 20 | + |
| 21 | +- 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! |
| 22 | +- 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/). |
| 23 | + |
| 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 | + |
| 26 | +## Goals |
| 27 | + |
| 28 | +The goals of this project are: |
| 29 | + |
| 30 | +- Learn how to upgrade the firmware on your UNO WiFi Rev 2, so it can be used with a Chromebook. |
| 31 | +- Learn how to install the [Arduino Create for Education](https://chrome.google.com/webstore/detail/arduino-create-for-educat/elmgohdonjdampbcgefphnlchgocpaij) app from Chrome Web Store. |
| 32 | +- Learn how to upload a sketch to your board using a Chromebook and the Web Editor. |
| 33 | + |
| 34 | +## Hardware & Software Needed |
| 35 | + |
| 36 | +- [Arduino IDE 2](https://www.arduino.cc/en/software#future-version-of-the-arduino-ide). |
| 37 | +- [Arduino Web Editor](https://create.arduino.cc/). |
| 38 | +- [Arduino Create for Education](https://chrome.google.com/webstore/detail/arduino-create-for-educat/elmgohdonjdampbcgefphnlchgocpaij) (Chrome Web Store) |
| 39 | +- [Arduino UNO WiFi Rev 2](https://store.arduino.cc/arduino-uno-wifi-rev2). |
| 40 | + |
| 41 | +***Please note that you need to install the Arduino IDE 2.0.X. The legacy IDE (1.8.X) will not work for this tutorial.*** |
| 42 | + |
| 43 | +## Upgrading Firmware |
| 44 | + |
| 45 | +Since Chromebooks cannot run executables, the firmware upgrade for the UNO WiFi Rev 2 needs to be done through a computer with the Windows/Mac/Linux OS installed. |
| 46 | + |
| 47 | +***While you won't be using the Arduino IDE 2.0 directly, you will be utilizing a set of tools that is included in the IDE. This is why you need to install the editor on your local machine.*** |
| 48 | + |
| 49 | +**1.** Make sure you have installed [Arduino IDE 2.0.X](https://www.arduino.cc/en/software#future-version-of-the-arduino-ide). |
| 50 | + |
| 51 | +**2.** Download the [optiboot_atmega4.hex](/resources/firmware/optiboot_atmega4809.hex) file, and move it to your **Desktop folder**. |
| 52 | + |
| 53 | + |
| 54 | + |
| 55 | +**3.** Open your Command Prompt (Windows) or Terminal (Mac), copy paste the command for your OS from the snippets below: |
| 56 | + |
| 57 | +**Mac Command:** |
| 58 | + |
| 59 | +``` |
| 60 | +/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 |
| 61 | +``` |
| 62 | + |
| 63 | +**Windows Command:** |
| 64 | + |
| 65 | +``` |
| 66 | +%userprofile%\AppData\Local\Arduino15\packages\arduino\tools\avrdude\6.3.0-arduino17\bin\avrdude.exe -C%userprofile%\AppData\Local\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:%userprofile%\Desktop\optiboot_atmega4809.hex:i |
| 67 | +``` |
| 68 | + |
| 69 | +**Linux Command:** |
| 70 | + |
| 71 | +``` |
| 72 | +/home/$(whoami)/.arduino15/packages/arduino/tools/avrdude/6.3.0-arduino17/bin/avrdude -C/home/$(whoami)/.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:/home/$(whoami)/Desktop/optiboot_atmega4809.hex:i |
| 73 | +``` |
| 74 | + |
| 75 | +**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): |
| 76 | + |
| 77 | + |
| 78 | + |
| 79 | +**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.** |
| 80 | + |
| 81 | +### Troubleshoot |
| 82 | + |
| 83 | +If the command fails to upgrade the firmware, please make sure that: |
| 84 | + |
| 85 | +- Arduino IDE 2.0 is installed. |
| 86 | +- That you are using a Windows/Mac/Linux machine (remember, this cannot be performed on a Chromebook). |
| 87 | +- 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. |
| 88 | + |
| 89 | +## Install Arduino App (Chrome Store) |
| 90 | + |
| 91 | +To program your Arduino via a Chromebook, you will need the [Arduino Create for Education app](https://chrome.google.com/webstore/detail/arduino-create-for-educat/elmgohdonjdampbcgefphnlchgocpaij). This is downloaded and installed via the Chrome Web Store. |
| 92 | + |
| 93 | + |
| 94 | + |
| 95 | +***If you have previously installed the app, make sure your version is up to date.*** |
| 96 | + |
| 97 | +## Web Editor |
| 98 | + |
| 99 | +***To use the [Web Editor](https://create.arduino.cc/editor), you will need to be logged into your Arduino account. If you don't have an account, you will need to register one.*** |
| 100 | + |
| 101 | +**1.** Head over to the [Web Editor](https://create.arduino.cc/editor). |
| 102 | + |
| 103 | +**2.** Create a new sketch, and write your program. |
| 104 | + |
| 105 | +**3.** When you want to upload, connect your board to your computer via USB. |
| 106 | + |
| 107 | + |
| 108 | + |
| 109 | +**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`. |
| 110 | + |
| 111 | + |
| 112 | + |
| 113 | +**5.** Click the upload button. This will start the **compilation process**, and then upload the sketch to your board. |
| 114 | + |
| 115 | +Congratulations, you have now uploaded a sketch to your UNO WiFi Rev 2 using the Web Editor on a Chromebook. |
| 116 | + |
| 117 | +### Troubleshoot |
| 118 | + |
| 119 | +If things are not working as expected: |
| 120 | + |
| 121 | +- Make sure you have the latest version of the [Arduino Create for Education App](https://chrome.google.com/webstore/detail/arduino-create-for-educat/elmgohdonjdampbcgefphnlchgocpaij) installed. |
| 122 | +- Make sure your board is connected to your computer properly. |
| 123 | + |
| 124 | +## Conclusion |
| 125 | + |
| 126 | +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). |
0 commit comments