7 years, 5 months ago.

Detection problem of a DS1820 on a NUCLEO-L073RZ

Hello. I'm having problems with a DS18B20 sensor. I'm using it on a NUCLEO-L073RZ, but everytime it's connected i get on debug : "Found 0 device Pinmap error: wrong port number" but if I disconnected the sensor, the program find one device that return "-0.6°C", and if I connect the sensor then, it return "-1000.0°C". That happened with the DS1820 library on the ds1820_HelloWorld program. I've tried several libraries and programs, but the result is almost the same, it doesn´t work. Do you know what can be causing it, and way to solve it? Thank you

What Tomasz said below, see also: https://developer.mbed.org/questions/69344/Detection-problem-of-a-DS1820-on-a-NUCLE/.

That library is the same you already used, but now updated to work around the bugs and limitations of the STM mbed implementation. Hopefully in the future I can remove those workarounds again, but it should work now.

posted by Erik - 13 Jan 2017

1 Answer