20. Octopus DS18B20 Digital Temperature Brick(EF04042)#

20.1. Introduction#

This brick uses the DS18B20 1-Wire digital temperature sensor from Maxim IC.

../../_images/c8DrDnH.jpg

20.3. Characteristics#

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.

20.4. Specifications#

Item Parameter
SKU EF04042
Power Dissipation ULP
Working Temperature -20-70℃
Working Voltage 3.3-5V

20.5. Outlook and Dimensions#

../../_images/Bc8O78l.jpg

20.6. Quick to Start#

Materials used and connection diagram#

Take sensor:bit for example

../../_images/Sc5JwUT.png

Add Package#

Click “Advanced”in the choice of the MakeCode to find more choices.

../../_images/smtcNoB2.png

Click “Extensions”, search “iot”in the dialog box and then download it.

../../_images/qChMeYd.png

Program as the picture shows#

../../_images/kO6z0oE.png

Reference#

Links: https://makecode.microbit.org/_FEiCtaV235Xw

You can also download the links below:

Result#

The current temperature is showing on the micro:bit.

20.7. Relevant Cases#

20.8. Technique Files#