Tuesday, September 13, 2016

I just wanted to write a quick post about a project I got working with the ESP8266 and the Arduino IDE to read a DS18B20 temperature sensor.  Here's the quick version.  YouTube content coming...

  1. Installed Arduino 1.6.11
  2. Added 8266 Board Manager
  3. Cloned OneWire lib from GitHub
  4. Cloned DallasTemp library
    1. Run oneWireSearch (found device)
    2. Note the PIN.  I mistook GPIO4 for Pin 2
    3. Modify Dallas "Single" example with DeviceAddress

Serial Monitor:

Requesting temperatures...DONE
Temp C: 26.50 Temp F: 79.70
Requesting temperatures...DONE
Temp C: 28.50 Temp F: 83.30
Requesting temperatures...DONE
Temp C: 29.00 Temp F: 84.20