Skip to content
This repository has been archived by the owner on Feb 4, 2022. It is now read-only.

Each folder contains a different topic about Arduino & IoT synergy.

License

Notifications You must be signed in to change notification settings

PitPietro/arduino-mkr-wifi-1010

Repository files navigation

Arduino MKR WiFi 1010

Please, refer to the official Arduino website to getting started with MKR WiFi 1010.

Table of contents

1.0 Setting Up Arduino on Linux

Here are some problems I faced up during the develop of Arduino code on my Ubuntu Linux machine.

1.1 Install Arduino IDE 1.x

Go to the official Arduino website, in the software section and download the version labelled Linux 32 bits (or 64 bits, if your machine supports it).

Open a terminal window:

# ensure you are in the home directory
cd ~
# navigate to Downloads
cd Downloads
# replace 'XXX' with the correct version number
# extract the contents of the downloaded file
tar -xvf arduino-XXX-linuxarm.tar.xz
# remove the archive
rm -rfv arduino-XXX-linuxarm.tar.xz
# move the extracted folder from home/$USER/Downloads to /opt
sudo mv arduino-XXX /opt
# complete the installation
sudo /opt/arduino-XXX/install.sh

1.2. Install Arduino IDE 2.0 Beta

Download the Arduino IDE 2.0 from the official software page.

# ensure you are in the home directory
cd ~
# navigate to Downloads
cd Downloads
# replace 'XXX' with the correct version number and OS architecture
# extract the contents of the downloaded file
unzip arduino-ide_XXX.zip
# remove the archive
rm -rfv arduino-ide_XXX.zip
# move the extracted folder from home/$USER/Downloads to /opt
sudo mv arduino-ide_XXX /opt
# run the IDE
sudo /opt/arduino-ide_XXX/arduino-ide

# Moreover, hit Citrl + C to stop the execution of the IDE
# back home
cd ~
# depending on your shell type, open the configuration file
nano .bashrc

# insert the following alias
alias arduino-beta="cd && cd /opt/arduino-ide_2.0.0-beta.3_Linux_64bit/ && ./arduino-ide"
# exit the terminal ì and open a brand new one
arduino-beta

1.3 Open the serial port

If you try to load a program that requires Serial Port and the IDE throws an error like the following:

processing.app.debug.RunnerException
# [...]
Caused by: processing.app.SerialException: Error touching serial port '/dev/ttyACM0'.
# [...]
Caused by: jssc.SerialPortException: Port name - /dev/ttyACM0; Method name - openPort(); Exception type - Permission denied.

You need to add the execution permission on the port:

cd && sudo chmod 666 dev/ttyACM0

You could also need to add yourself to the dialout group:

sudo usermod -a -G dialout $USER

Please Note: Logout and then log back in for the group changes to take effect (or just sudo restart the machine).

Please Note: If you accidentally stop the sketch from uploading, you just need to double click the reset button (reference).

2.0 Structure

I made a wiki page for all the folders of the repository.

3.0 Shields

In this section, I'll show you the shields used in some projects.

3.1 MKR SD Proto Shield

MKR SD Proto Shield

Thanks to the MKR SD Proto Shield you can add to your project an SD slot and a prototyping area.

3.2 MKR ETH

Arduino MKR ETH Shield image

If you want to connect the board to a wired network using an Ethernet cable, you need to buy the Arduino MKR ETH Shield from the official Arduino Store.

4.0 Reference

About

Each folder contains a different topic about Arduino & IoT synergy.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published