It's my mistakes. 1.I want to measure temperature from DS18B20,but I don't confirm the capable of the pin - P0.05.Because it's Analog ,but DS18B20 is Digital. 2.I set the P0.05 like thislink text.But I read value of 0 all the time.
It's my mistakes. 1.I want to measure temperature from DS18B20,but I don't confirm the capable of the pin - P0.05.Because it's Analog ,but DS18B20 is Digital. 2.I set the P0.05 like thislink text.But I read value of 0 all the time.
DS18B20 can be read by 1-wire protocol. What I think you are doing is... just reading state of the pin? I suggest you to familiarize yourself how digital interfaces work, because it is not something that you connect and it just works.
Also, nrf5x does not have hardware 1-wire, it has to be software-bitbanged.
Think you ,I have found the reason of my question. Because I configured gpio_pin_drive by NRF_GPIO_PIN_S0D1, when I revise it to NRF_GPIO_PIN_S0S1,It 's formal Now!
Hi Jack were you able to have temperature measuring using the DS18B20? do you had to add extra hardware?
Hi!
If it is still relevant, you can find example for reading DS18B20 from nrf52840 here: https://github.com/DSysoletin/nrf52_ds18b20_example
Thanks for sharing!