Skip to content

Example code for DS18B20 on nRF52832/nRF52840 (bitbanged)

Notifications You must be signed in to change notification settings

swechencheng/Nordic-DS18B20

 
 

Repository files navigation

Nordic-DS18B20

Example code for the DS18B20 Digital Thermometer on nRF52840 and nRF52832.

Project based on SDK 15.0

Setup

Hardware

  • 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.

Software

  • 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

Expected output from terminal

Troubleshooting

  • No numbers being printed in the terminal?

Make sure that you have enabled support for printing floating-point numbers in SES IDE

About

Example code for DS18B20 on nRF52832/nRF52840 (bitbanged)

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • C 100.0%