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 locations
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)
SAMD (Sara, Explorer, Autonomo, One)
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!!
Click on Sketch > Include Libraries > Manage Libraries…
In most libraries you can find some examples.
In the Arduino IDE go to File > Examples > Sodaq_xxxx > [example]
For most applications we need to enable “Both NL & CR”.
Or send the commands new line and carriage return manually.