cancel
Showing results for 
Search instead for 
Did you mean: 

How do I send the data from my external soil moisture sensor by ADC being connected to an ADC input of the B-L072Z-LRWAN1 microcontroller using the I-CUBE-LRWAN1 example on the web or another method?

JAgui.1
Associate II

Hello everyone, 

I am completely new to the forum and to the world of LoRaWAN on microcontrollers.

I am doing my undergraduate final project. This is based on a B-L072Z-LRWAN1 core that has a couple of sensors connected to it. One of them is an ADC sensor that measures the humidity of the ground.

My problem is that I would like to send the data from this sensor via LoRaWAN to TTN. In support they helped me with the existing example (I-CUBE-LRWAN) and told me that I could modify this code to do it.

I have investigated the code a bit and I have found the task of sending data by LoRa, but of course my sensor is external and I must configure the pins for an analog measurement, and not having an .ioc I can not do it through CubeMX.

Can someone help me to add my sensor and port the code to send my data. 

Best regards, and thanks a million.

1 REPLY 1
Pavel A.
Evangelist III