#AzureIoT – Using a Raspberry Pi Grove Sensor in an ☁ Azure IoT Edge Module (4/N)

Buy Me A Coffee

Hi !

In my previous post I the steps to create an Azure IoT Module interacting with Grove sensors in a Raspberry Pi. I won’t write about Azure Container Registry, check the references section for more information. At this point I’ll azure we have an ARM32 image is published and ready to use from an ACR.

On Azure IoT on the module, let’s go to the [Set Modules] section and add the ACR information: name, address, user name and password. Then we can add a new module with the [Add // IoT Edge Module] option

Let’s define the name for the module, just in case, I always do this in lowercase. And then the uri which usually uses the format

# template
<your ACR>.azurecr.io/<module name>:<image version>-arm32v7

# in example for ebgrovetemperaturedht11 - version 0.0.43
[<your ACR>.azurecr.io/ebgrovetemperaturedht11:0.0.43-arm32v7]
add new custom module

As I wrote in my previous post, the module uses Environment Variables, so we can define them here

azure iot module define environmental variables

And, finally as I mentioned before, the specific create options to allow access to the grove sensors.

Confirm and Create the module with these options, and 20 seconds later we can see this module up and running in the Edge device,

azure iot modules up and running

And that’s it! I may add some extra posts with some specific details, however I hope that these 4 posts may help someone starting in a similar scenario!

References

Happy coding!

Greetings

El Bruno

More posts in my blog ElBruno.com.

More info in https://beacons.ai/elbruno



Azure ☁ IoT

Create an Azure IoT Module using Raspberry Pi and Grove Sensors

  1. Raspberry Pi + Grove Sensors, read temperature and humidity values
  2. Raspberry Pi + Grove Sensors, send temperature and humidity values as telemetry to Azure IoT Hub
  3. Raspberry Pi + Grove Sensors, create a Azure IoT Module to send temperature and humidity values as telemetry to Azure IoT Hub
  4. Raspberry Pi + Grove Sensors, publish and use the Azure IoT Module
  5. Raspberry Pi + Grove Sensors, notes on build and configuration
  6. Raspberry Pi + Grove Sensors, details on how to send a telemetry message and sample messages

Create an Azure IoT Module from Azure Custom Vision project


¿Con ganas de ponerte al día?

En Lemoncode te ofrecemos formación online impartida por profesionales que se baten el cobre en consultoría:

Advertisement

1 comment

  1. Thanks for the article.Can you please suggest how to vie the send message in iot hub,as Iam not getting any logs in device explorer.But module is up and running

    Like

Leave a comment

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s

This site uses Akismet to reduce spam. Learn how your comment data is processed.

%d bloggers like this: