Example Code for micro:bit-Air Temperature Detector

This article offers a step-by-step tutorial on building an air temperature detector using a micro:bit, with detailed hardware and software preparation, wiring diagrams, and sample code in Mind+ and MakeCode.

Hardware Preparation

BOS0011 bos0044 BOS0035
BOS0011 Temperature Sensor BOS0044 OLED Module BOS0035 Mainboard-3IO
BOS0040 micro:bit mbt0039
BOS0040 micro:bit BOSON expansion board MBT0039 micro:bit

Software Preparation

Mind+ or MakeCode

Non-programming

Connection 1

Programming

Connection 2

Other Preparation Work

Tip: micro:bit and micro:bit BOSON expansion board will be used in programming projects.

Result

Non-programming Programming
Video 1 Video 2

Additional Information

Flowchart:

Flowchart 1

Was this article helpful?

TOP