/easy-ds18b20

Dallas DS18B20 Digital Temperature Sensor

Primary LanguageC++

Spark Core and Maxim DS18B20 1-Wire Temperature Sensor

There's a lot of libraries out there for the DS18B20. I wanted one with an API that's easy to use for the common simple scenario of just having the temp sensor be the only device on the 1-wire bus and wanting to read values in fahrenheit.

Sample application using Spark/Particle Core and Maxim DS18B20 Digital Temperature Sensor. The OneWire source code is taken from this link by @tidwelltimj. Inspiration also from LukeUSMC, but I couldn't get that library to work on my Core. The sample code publishes a variable named temperature with temperature value.

Wiring

Power to 3.3/5V
GND to GND
Signal to D0 (with pullup resistor)

The original project is here: https://github.com/krvarma/Dallas_DS18B20_SparkCore