All Collections
Connect your Devices
Connect Seeed Studio’s SenseCap A1101 LoRaWAN AI Sensor to Ubidots [Helium LNS]
Connect Seeed Studio’s SenseCap A1101 LoRaWAN AI Sensor to Ubidots [Helium LNS]

This article explores how to connect Seeed Studio’s SenseCap A1101 Vision AI to Ubidots

Sergio M avatar
Written by Sergio M
Updated over a week ago
image 2167.png

SenseCAP 1101 Vision AI sensor is a powerful edge device manufactured by our friend at Seeed Studio. One of its most advantageous features is that you can easily configure it by using SenseCAP Mate app, in which you can choose several different settings such as the Algorithm as well as the Model detection.

Requirements:

Table of Contents

1. Configure the SenseCap A1101

  • Please follow the steps given in this guide’s first section to get your device's AppEui, AppKey and DevEui.

  • You can select the algorithm as well as the model that the sensors detects

  • For this article, the Object Detection algorithm was chosen and the AI model was set to Face Detection, however, if you want to change these settings, you can do so.


Pro Tip: You can also train your own model. Refer to the following link for more information


2. Register the SenseCap A1101 on Helium LNS

  • Please follow section #2 of the following guide to register your device on Helium LNS.

3. Create the Integration to Ubidots

  • Please follow section #3 of the following guide to create the integration from Helium to Ubidots

4. Configure the decoder function

  • Go to "Functions" section on your Helium console

  • Click on "Create new function" button

  • Click "Custom"

  • Set a name for your decoder function

  • Delete all the code in the textbox

  • Paste the following decoder function provided by Seeed Studio on their official GitHub repository

  • Click on "Save Function" button

5. Connect the Integration to Ubidots

  • Please follow this guide's section #5 to connect the integration from Helium to Ubidots

6. Configure the Ubidots decoder

  • Go to your Ubidots account

  • Go to "Devices" → "Plugins"

  • Search for a newly created plugin. Its name is most likely to be "Helium integration"

  • Click on the pencil icon

  • Head to the "Decoder" section at the left side of the screen

  • Scroll down to the "Decoding Function" section and delete all the code present in the textbox

  • Paste the following code

  • Click on "SAVE & MAKE LIVE" button to save the changes

Decoder function code:

def format_payload(args):

# Log received data for debugging purposes. Uncomment this line if you want to print the incoming arguments
#print(args)
args = args["decoded"]["payload"]
ubidots_payload = {}

for arg in args:
if "field" in arg:
ubidots_payload.update({arg["field"] : arg["value"]})


return ubidots_payload

7. Visualize the Data on Ubidots

  • Head to the “Devices” section on your Ubidots account and you’ll be able to see a newly create device with the same name as you used for “Device name” at step 2.

8. Feedback, Suggestion and Related Articles

Feel free to post questions or suggestions in our community portal, or contact us via support@ubidots.com.


Other users also found helpful...

Did this answer your question?