I connected a DS18B20 to my node. The node runs https://github.com/matthijskooijman/arduino-lmic and works fine. If I load a basic test sketch for the DS18B20 on the same node hardware (so ignoring the RFM95W) it works fine too and I get good temperature readings.
When I merge the two sketches the sensor returns -127.00 which suggest a timing problem. Google suggested that the interrupts used by the LMIC code interfere so I added noInterrupts() and Interrupts() around the read logic, and now the results changed to 0.00.
noInterrupts(); sensors.requestTemperatures(); // Send the command to get temperatures printTemperature(insideThermometer); // Use a simple function to print out the data interrupts();
It looks to me that this way there won’t be interference anymore, but it still doesn’t work. Anyone a suggestion where to look next?
sub question: I noticed that apparently it was possible with the old large LMIC library to use a DS18B20 on a pro mini, but I wasn’t able to getting it fit in the available memory. At least not by simply merging the code. Does there happen to be a stripped done Dallastemperature/OneWire library that others use for this?