Please, refer to the official Arduino website to getting started with MKR WiFi 1010.
Here are some problems I faced up during the develop of Arduino code on my Ubuntu Linux machine.
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
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
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).
I made a wiki page for all the folders of the repository.
In this section, I'll show you the shields used in some projects.
Thanks to the MKR SD Proto Shield you can add to your project an SD slot and a prototyping area.
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.