Skip to main content
Associate II
Apr 30, 2024 9:49 AM UTC
Question

Using L476rg and sx1272MB2DAS

I'm developing an end-node based on the STM32 Nucleo-L476RG with a LoRa module SX1272MB2DAS and a Grove sensor (based on DHT11). I'm facing a dilemma regarding how to retrieve data from the sensor. I'm torn between two options: modifying the data retrieval method in the I-Cube-Lrwan example (rather than using I2C) or implementing my own middleware in a new project. Which approach would you recommend, and how could I effectively implement it?

This topic has been closed for replies.

7 replies

Andrew Neil
Super User
Apr 30, 2024 9:56 AM UTC

@ABA wrote:

modifying the data retrieval method in the I-Cube-Lrwan example (rather than using I2C) 


Not sure what you mean by that?

It's not an I2C sensor.

It uses a proprietary single wire interface - so you're going to have to write some software yourself whatever happens

A complex system that works is invariably found to have evolved from a simple system that worked.A complex system designed from scratch never works and cannot be patched up to make it work.
ABAAuthor
Associate II
Apr 30, 2024 10:02 AM UTC

I've already successfully implemented the sensor separately, without integrating it with the LoRa functionality. Now, I'm attempting to incorporate it into the LoRa project using the example code provided in the I-cube-lrwan project. However, since the sensor uses a different interface, I'm encountering challenges in adapting the code.

 

Andrew Neil
Super User
Apr 30, 2024 10:22 AM UTC

@ABA wrote:

 I'm encountering challenges in adapting the code.


What challenges, exactly?

A complex system that works is invariably found to have evolved from a simple system that worked.A complex system designed from scratch never works and cannot be patched up to make it work.