Robofun
Published © GPL3+

Espruino Pico with DS18B20

Connect an DS18B20 temperature sensor with Espruino Pico

BeginnerFull instructions provided1,009
Espruino Pico with DS18B20

Things used in this project

Hardware components

Espruino Pico
Espruino Pico
×1
DS18B20 Temperature Sensor
×1
170 points breadboard
×1
Jumper cable
×1
4.7K Resistor
×1

Story

Read more

Schematics

Breadboard

Use this to connect the parts on your breadboard

Schematics

Code

Code for DS18D20

JavaScript
var ow = new OneWire(A5);
var sensor = require("DS18B20").connect(ow);
setInterval(function() {
  console.log(sensor.getTemp());
}, 1000);

Credits

Robofun

Robofun

1 project • 1 follower

Comments