Libraries

Setting up your Arduino IDE

Make sure you have the latest Arduino IDE. Click here to go to the Arduino downloads page.

When your Arduino IDE is installed, it might be necessary to restart your computer. In some cases, if you don’t restart your computer, the IDE will not launch.

Add Board File lacations

When your IDE is all started, we should add the URL before we can install the libraries. Click on File > Preferences and at the bottom you should see ‘Additional Boards Manager URLs’. This is where you need to paste the following URL:

AVR (Moya, Mbili, Ndogo, Tatu)
http://downloads.sodaq.net/package_sodaq_index.json
SAMD (Sara, Explorer, Autonomo, One)
http://downloads.sodaq.net/package_sodaq_samd_index.json

arduino_prefs

You can use both URLs at the same time.

When you have pasted the URL, click ‘OK’ and you’re ready for the next step.

Install SODAQ boards

Click on Tools > Board:… > Boards Manager…
Search for SODAQ.
Click on a board collection, an install button will appear.
Install the latest version of your selected board collection.

Select Board and Port

Select your board from the menu:
Click on Tools > Board:… > your board

Connect your board to your computer.
Select the com port of your device.

Don’t let the name behind the port confuse you. The names will not always be as you expect.
Example: SODAQ ONE and Arduino Zero have the same Cortex-M0 microcontroller.
The name behind the port will most of the time show the first SAMD board in the list. e.g. SODAQ SARA, Arduino Zero and not SODAQ ONE as you would expect.
Always select the correct board under the board selection!!
Selecting a board with same microcontroller will compile and upload, but it will NOT work and may brake your device!!

Libraries

Click on Sketch > Include Libraries > Manage Libraries…

Schermafbeelding 2016-07-26 om 12.17.20

In most libraries you can find some examples.
In the Arduino IDE go to File > Examples > Sodaq_xxxx > [example]

Serial Monitor

For most applications we need to enable “Both NL & CR”.
Or send the commands new line and carriage return manually.