Arduino IDE on your Chromebook

Want to write code and upload it to your board using your Chromebook? It’s easy via your Ubuntu crouton installation. If you haven’t already set that up, follow my quick guide to Ubuntu 16.04 LTS on a Chromebook. For more information you can read the introductory guide: Linux on your Chromebook?

arduinouno

 

Step 1: Download the software: https://www.arduino.cc/en/Main/Software

arduinoidedl1

 

Step 2: Extract files to a destination of your choice (ex. “Documents”) so the source would be: /home/USERNAME/Documents/arduino-1.8.3/

 

Step 3: Run Arduino’s install.sh file. To do this, navigate to Arduino folder and right click in some white space and choose “Open Terminal Here” or just open the terminal and use the cd command to navigate to the folder (ex. cd /home/USERNAME/Documents/arduino-1.8.3/)

Next, run this command:

sudo ./install.sh

If the install fails, you need to replace a line inside the ‘install.sh’ file. Right click it and open it with Mousepad or another text editor.

arduino_edit

On the 9th line down, replace:

RESOURCE_NAME=cc.arduino.arduinoide

with

RESOURCE_NAME=arduino-arduinoide

 

Save and close. Run the install command again in the terminal. Installation should end with a “… done!” and there should be a shortcut in Applications >> Development

 

Step 4: Ports and permissions. Connect your board and start the Arduino IDE. Go to Tools > Board and select the type of board you connected and then go to Tools > Port and choose the port your board is on. Next, open the terminal and enter this command:

sudo usermod -a -G dialout <username>

If problems persist, follow with this command:

sudo chmod a+rw /dev/ttyACM0

Note: Use this command if you need to verify your port (the # at the end above):

ls -l /dev/ttyACM*

 

Step 5: Test it. With the IDE open, go File > Examples > 01 Basics > Blink

Upload it and stare in awe at the blinking light on your Arduino that you are now master of. For additional help try: https://www.arduino.cc/en/guide/linux

 

 

Advertisements

One Comment

Comments are closed.