Skip to content

Tinkercademy MakeCode package for using a DS1820 temperature probe with the BBC micro:bit (beta)

License

Notifications You must be signed in to change notification settings

jeonwonje/pxt-ds1820-temperature-sensor

 
 

Repository files navigation

DS1820 Temperature sensor

MakeCode for the DS1820 / DS18B20 Temperature sensor.

Hardware Setup

  1. Connect the appropriate pins (GND, V, S) to the micro:bit.
  2. Connect a resistor (10kΩ can do) across the V and S pins to pull the signal high. (The micro:bit's internal pull-up doesn't work, for some reason.)

Blocks

  1. Initialise with the connect temperature probe block in on start.
  2. Get your reading from the temperature variable.
  3. Note that the temperature is 10x the actual temperature, in degrees celsius. 30.5°C would hence show 305.

Supported targets

  • for PXT/microbit

About

Tinkercademy MakeCode package for using a DS1820 temperature probe with the BBC micro:bit (beta)

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • CMake 72.2%
  • C++ 20.6%
  • Assembly 5.3%
  • C 1.8%
  • TypeScript 0.1%