Sensor Test Tutorial for Sixfab Arduino Cellular IoT Application Shield

Sixfab has came up with Arduino Cellular IoT shield that have combined LTE technilogies Cat.M1, Cat.NB1(NB-IoT) and eGPRS, which is based on Quectel BG96 module. It also have built-it sensors, LED and relay. Sixfab also has a RPi Cellular IoT Application HAT.

Sixfab is also providing library to use the shield. To keep the it easy we will be showing how to install the library and access the sensor data in our first tutorial. 

Lets start with setting up the library.

  1. Download Zip or clone the Library from our github repo. (Personally for Arduino I like to download zip)
    For cloning you may type the following command in your terminal.

    git clone https://github.com/sixfab/Sixfab_Arduino_CellularIoT_Library.git

     

  2. Now open your Arduino IDE<IMAGE>ardu_ciot_code1
  3. To add the library, from top menu go to Sketch > Include Library > Add ZIP Library ardu_ciot_code2
  4. Find your location of downloaded library and select the zip file / folder in case of cloning. Then click OK ardu_ciot_code3
  5. Once you add the library, you will be able to find the available examples for your Cellular IoT Application Shield. Lets open our first example from  File > Examples > Sixfab_CellularIoT > sensorTest ardu_ciot_code4
  6. This will open sensorTest.ino.
  7. Attach Sixfab Cellular IoT App. Shield to your Arduino(I am using Arduino Uno) and connect your Arduino to laptop/PC.ardu_ciot_img2
  8. Confirm wither the selected port is correct or not from Tools > Port  ardu_ciot_code5
  9. Now open the Serial Monitor from Arduino IDE. Then you may observe the following output. ardu_ciot_code6

So, These were output from triple axis Accelerometer, Temperature, Humidity and Light sensors. Besides it  turns on & off the USER LED and the Relay.

4 thoughts

  1. Hi

    I am interested to buy this BG96 shield for Arduino.

    Will it work with Arduino uno only?

    What examples are currently available?

    i am interested in UDP/TCP/ client and server
    GNSS demo..

    Will you teach how to make and keep a connection by GPRS and NBIoT?

    • Hi,
      It will work with any Arduino.
      You may find the available examples in our Github Repo.
      There is setMode(parameter) Available parameters are: GSM_MODE, CATM1_MODE, CATNB1_MODE

  2. Hi,

    I have tried following your examples and look for reasons as to why however I am none the wiser.

    When I try to uploads a sketch to the board I get the error:
    avrdude: stk500_recv(): programmer is not responding
    avrdude: stk500_getsync() attempt 1 of 10: not in sync: resp=0x00

    This happens 10 times before it fails.

    When I detach my shield (bought from SixFab: https://sixfab.com/product/arduino-gprs-gps-tracker-shield/)
    It will allow me to upload to my Arduino Board.

    What’s causing this?

    Many thanks!

Leave a Reply

Your email address will not be published. Required fields are marked *