20. Octopus DS18B20 Digital Temperature Brick¶
This brick uses the DS18B20 1-Wire digital temperature sensor from Maxim IC.
It can report degrees C with 9 to 12-bit precision, -55C to 125C (+/-0.5C). Each sensor has a unique 64-Bit Serial number etched into it that can allow for a huge number of sensors to be used on one data bus.
Item | Parameter :-: | :-: SKU|EF04042 Power Dissipation|ULP Working Temperature|-20-70℃ Working Voltage|3.3-5V
20.4. Outlook and Dimensions¶
20.5. Quick to Start¶
Materials used and connection diagram¶
Take sensor:bit for example
Click “Advanced”in the choice of the MakeCode to find more choices.
Click “Extensions”, search “iot”in the dialog box and then download it.
Program as the picture shows¶
You can also download the links below:---
The current temperature is showing on the micro:bit.