Hello.
Have tried with Heltec Lora V3 and V4 and have not been able to make it work. Need a node to read 3 DS18B20 temperatures and corresponding battery voltage which then needs to be transmitted to another Lora Heltec Gateway which in turn send data over internet with a Graph.
The second part (Gateway) works great and I can make everything work fine with a DHT20, however, it must work with a ds18b20 thermometers.
Seems like a complete incompatibility between LoraWAN_APP (Heltec), HT_SSD1306Wire and OneWire/DallasTemperature.
It just does not compile, have also made the modifications to the onewire incompatibility with pins issue and still does not compile or crashes.
Can you PLEASE HELP
Help with OneWire DS18B20 and LoRaWan_APP
It’s a little difficult to offer any specific comment without seeing your code, but I do use the LoRaWan_APP library with the DS18B20 on the V3 module. However, I have always used the ThingPulse SSD1306 library.
For the V4 module, I gave up on the LoRaWan_APP library and went with the RadioLib library, although there is a little ‘extra work’ to get things going in this case, again with the DS18B20 and ThingPulse SSD1306 library.
While things have not always been straightforward, I’ve never had a problem with compilation, only with execution. But, as I say, I have both working in applications. Unfortunately, the code includes a lot of other stuff, so it’s not really practical to include that here, but it is available if you’re stuck.
I think I see the source of the compilation problem… I’m away from my normal development environment at the moment but using the WiFi LoRa 32 V4 environment that I have at hand, which uses all the latest versions of the Heltec software, I do get the compilation error described in the following post:
With a clue from a related post:
I can get the example sketch included in the first post above to compile if I do the following:
- Create the directory
Arduino/hardware/heltec/esp32/cores/esp32/driver - Copy the file
Arduino/hardware/heltec/esp32/tools/esp32-arduino-libs/esp32s3/include/driver/gpio/include/driver/gpio.hto that directory - Edit the file
Arduino/hardware/heltec/esp32/cores/esp32/esp32-hal-gpio.hand add the line
#include "driver/gpio.h"
with the other#includestatements near the top of the file.
That should at least solve the compilation problem. As noted, I’m not near my normal development environment at the moment so I don’t have access to a V3 hardware configuration that includes the sensor to verify that the sketch actually works. I do, however, have a V4 module configured with a DS18B20 sensor with me and that is working just fine, although the V4 configuration is using the RadioLib library.