Example code for the DS18B20 Digital Thermometer on nRF52840 and nRF52832.
Project based on SDK 15.0
- nRF52832-DK or nRF52840-DK
- DS18B20 sensor
- Powering DS18B20 with external VCC (non-parasite mode)
- Only one sensor data wire on one PIN (bus)
- 4.7K Ohm pull-up resistor to VCC (3.3V-5.5V)
- Breadboard and jumper wires as needed.
- Download SDK 15
- Download Segger Embedded Studio
Clone or download this repo, and make sure that the ds18b20 folder is placed the folder SDK15_folder_path\examples\peripheral
- No numbers being printed in the terminal?
Make sure that you have enabled support for printing floating-point numbers in SES IDE