This tutorial has been provided by SODAQ and is based on the NB-IoT Shield DeLuxe with the uBlox Sara N211 module, there are more NB-IoT starterkits available, we are happy to share their manuals. Read more about the available starterkits and certified module here
Sodaq NB-IoT shield
with NB-IoT antenne & Usb cable
This manual is written to use the Arduino IDE, feel free to use your own Arduino
compatible IDE. Download the latest Arduino IDE here
Connect the Arduino Leonardo with the usb cable to your pc.
Open the blink example sketch
Select the correct Board and Com port
(left to right)
● Verify, checks if there are no errors in the code.
● Upload, upload the code to your board
● New, opens a new empty sketch
● Open, open a sketch
● Save, save this sketch
● Serial monitor, opens a window to debug your code.
Use the upload button to send the blink sketch to the Arduino Leonardo.
If you get the message “Done uploading” led L should blink now.
Put the Sodaq NB-IoT Shield on the Arduino Leonardo.
In the first exercise with NB-IoT we are going to upload a Serial passthrough
sketch and send AT command directly to the U-blox module.
Go to the downloaded files.
Open the “SerialPassthroughNB-IoT” sketch and upload it to your board.
Open Serial monitor in your Arduino IDE: Ctrl+Shift+M
Set your connection settings to 9600 Baud, 8 Bit’s, No Parity and 1 stop bit. Set te flow control to: cariage return + linefeed
You can use any preferred serial monitor, for example for windows users you can use QCOM_V1.0.exe
Open the Serial connection
You should see now the message “Open COM Port Success
There are a few AT commands available.
Note: these AT commands are for firmware version 02B22, please see the compatibility matrix for more info.
Your Arduino and Shield are ready for Part 1 Network Attach
Sensors on the NB-IoT Board
In the git repository is a folder “sensors” in this folder you can find sketches of all the sensors on the deluxe version of the Sodaq NB-IoT Shield.
Every sketch is reading the sensor value from one sensor chip and printing it on the serial monitor.
Following sketches are inside this map
● HTS221, reading the temperature and humidity values.
● LPS22HB, from this chip only use the pressure values
This chip can also read temperature values, it comes uncalibrated.
For the GPS sensor download the library available from the library manager or github.
In order to install the libraries you will need to first add the SODAQ board/library
File->Preferences->Additional Board Manager URLs:
To download an additional library go to:
Search for “sodaq_ublox_gps”
Click on the library, an install button should be visible now.
Install the library
If a library has examples they are added in the example list of arduino.
Sensors and NB-IoT
In the folder “Sensors_NB-IoT” are the same sketches as in the “Sensors” but here the are modified to send the values over the NB-IoT network.
Author: Jan van Loenen SODAQ