NB-IoT Tutorials

NB-IoT Tutorials

This page is currently under development.

Examples will be made for the following boards:

SODAQ ExpLoRer https://shop.sodaq.com/en/explorer.html
Arduino Zero / M0 https://www.arduino.cc/en/Guide/ArduinoZero
Arduino Leonardo https://www.arduino.cc/en/Guide/ArduinoLeonardoMicro

If you have an other board with the Arduino pinout, your board might also work. Ask your question on forum.sodaq.com.

Add Sodaq download url
Go to the library page to add the json to the Arduino IDE

Libraries

Download the required libraries
Sketch -> Include Library -> Manage Libraries…

Install the SODAQ NB-IoT library

Install the SODAQ WDT ( WatchDog Timer ) library

Accelerometer NB-IoT shield

Download the latest version of the Adafruit LSM303 library
Update the I2C addresses inside the library  to:

/*=========================================================================
 I2C ADDRESS/BITS
 -----------------------------------------------------------------------*/
 #define LSM303_ADDRESS_ACCEL (0x1D) // 0011001x
 #define LSM303_ADDRESS_MAG (0x1E) // 0011110x
/*=========================================================================*/

More tutorials:

Passthrough sketch, send AT commands

Send temperature and humidity to All Things Talk

Add pressure and GPS to All Things Talk

On github you can download some more examples:

https://github.com/janvl1234/Sodaq_NBIoT_examples

With MQTT you can get your last message from All Things Talk and use it on your own server.
Download the How-To word document to get started.