DS18b20 temp on the nRF51 Dongle

Ali-homoud gravatar image

asked 2017-05-19 18:14:56 +0200

Hello, I am working on a project that involves the implementation of a wireless temperature sensor. so, i bought the DS18b20 digital temp sensor and tried to apply the code in the following link https://developer.mbed.org/components... to get the sensor working on the nRF51 Dongle. my question is whether or not that is possible. after wiring the temperature sensor to the board and running the code, i get the following message through the serial monitor "No DS18b20 detected". i am sure that does not mean the sensor is not working because i ran a similar program on the Arduino Uno and got good results. I am new to working on the mbed boards. any help would be appreciated.

edit retag flag offensive close delete report spam


It should be possible, I see that there is a TARGET_NORDIC define in the library. On the dongle you can use pin 15->20. Make sure that you have updated to code to use one of these pins.

Sigurd ( 2017-05-22 10:45:05 +0200 )editconvert to answer