Introduction
A thermistor changes its resistance with temperature.
In this guide, learn to use a thermistor module with the micro:bit and program it in the MakeCode editor.
In this guide, learn to use a thermistor module with the micro:bit and program it in the MakeCode editor.
Completing this guide will teach you about thermistors and its relationship between resistance and temperature.Â
-
-
-
-
-
-
-
let AO = 0 basic.forever(function () { AO = pins.analogReadPin(AnalogPin.P1) basic.showNumber(AO) basic.pause(1000) })
-
let AO = 0 basic.forever(function () { AO = pins.analogReadPin(AnalogPin.P1) basic.showNumber(AO) basic.showNumber(input.temperature()) basic.pause(1000) })
-
let AO = 0 basic.forever(function () { AO = pins.analogReadPin(AnalogPin.P1) basic.showNumber(AO) basic.showNumber(input.temperature()) basic.pause(1000) if (AO > 900) { basic.showIcon(IconNames.No) } })
-
let AO = 0 basic.forever(function () { AO = pins.analogReadPin(AnalogPin.P1) basic.showNumber(AO) basic.showNumber(input.temperature()) basic.pause(1000) if (AO > 900) { basic.showIcon(IconNames.No) } else { basic.showIcon(IconNames.Yes) } })
-