Getting Started With STM32L4 | MQTT via STM32 MCU

Getting Started With STM32L4 | MQTT via STM32 MCU

 Hello Tech geeks ! , today i have some new interesting technology and by that, I mean we will be dealing with different development board , further then do let's get started !

So, lets have a look at the lovely STM32L475VG IOT kit,  the ultra-low-power microcontroller based on the high-performance ARM® Cortex®-M4 32-bit RISC core operating at a frequency of up to 80 MHz . Device embed high-speed memories (Flash memory up to 1 Mbyte, up to 128 Kbyte of SRAM).


What we are going to do ?

We will measure humidity and temperature from the built-in sensor ST MCU (HTS221) and send it via MQTT to cloud and then received through smartphone.


Getting Started With STM32L4 | MQTT via STM32 MCU


HOW to program STM32 MCU ?

To make things simples am going to use Arduino IDE because its quite handy, we could also use IAR and Cube Mx but or any platform.


1. STEP 1 : install STM32 core in Arduino IDE

Follow those instructions : click here




2. STEP 2 : install STMDUINO library

Link : click here


3. STEP 3 : put your access point name and password in the code

Edit the code to allow your board to connect to Wi-Fi.


4. STEP 4 : set your cloud

To make this possible they are multiple ways, but I have used a free MQTT cloud.

Link : click here

You just have to sign up using an email account and it will deliver you id and password that will be needed in Arduino code and smartphone to connect with dioty cloud.


5. STEP 5 : put your  ID and user in the code

Just fulfill it 


6. STEP 6 : create user interface

There are many ways node -red to web page …, but I will use a mobile app from play store called MQTT Dashboard. 


Getting Started With STM32L4 | MQTT via STM32 MCU


Link : click here

code and technical support : click here


Getting Started With STM32L4 | MQTT via STM32 MCU



Auteur : Mohamed trabelsi

Post a Comment

Previous Post Next Post