Hello All,
I'm interfacing a temperature sensor ds18b20 with nFR52840, which uses one wire protocol.
I'm using this repo https://github.com/DSysoletin/nrf52_ds18b20_example to read the sensor.
To read the sensor correctly - I have to connect an external pul up resistor - 4.7k, 10k, 15k - all works fine.
Connecting an external resistor is making assembly difficult and will add to BOM.
So, I'm trying to enable internal pull ups available in nFRF52840 chip which is approax 11k. But I'm not able to read sensor by enabling internal pull up.
In the above mentioned repo, I'm replacing
nrf_gpio_cfg_input(DS18B20PIN, NRF_GPIO_PIN_NOPULL);
with
nrf_gpio_cfg_input(DS18B20PIN,NRF_GPIO_PIN_PULLUP);
Can anyone point out the reason why is it not working ?
Thanks.