"It’s Here! The BFCM Sale of the Year – Grab Your Favorites!"

How to Build a micro:bit Temperature and Humidity Meter

Temperature and humidity sensor is a module based on DHT11 digital temperature and humidity sensing element. It is sensitive to the ambient temperature and humidity changes and can be used for temperature alarm, humidity testing and other works.Now let’s use it to measure the temperature and humidity of the surrounding environment.

Materials required:

How to Build a micro:bit Temperature and Humidity Meter
BBC micro:bit V2 x 1

How to Build a micro:bit Temperature and Humidity Meter
Nezha Breakout board x 1

How to Build a micro:bit Temperature and Humidity Meter
PlanetX DHT11 x 1

How to Build a micro:bit Temperature and Humidity Meter
PlanetX Segment x 2

How to Build a micro:bit Temperature and Humidity Meter
RJ11(4P4C) 200mm Cable x 3

How to Build a micro:bit Temperature and Humidity Meter
Building Blocks x N

Connection steps pictures

We connect to the nezha expansion board through the color corresponding to the sticker of the sensor.

Step 1

How to Build a micro:bit Temperature and Humidity Meter

The first PlanetX Segment is connected to the J1 port of the Nezha expansion board.

Step 2

How to Build a micro:bit Temperature and Humidity Meter

The second PlanetX Segment is connected to the J2 port of the Nezha expansion board.

Step 3

How to Build a micro:bit Temperature and Humidity Meter

PlanetX DHT11 sensor connected to J4

Let’s connect the micro:bit and start graphical programming

How to Build a micro:bit Temperature and Humidity Meter

Program:https://makecode.microbit.org/#editor

How to Build a micro:bit Temperature and Humidity Meter

We first set the variables (temperature and humidity), corresponding to the corresponding interfaces.

How to Build a micro:bit Temperature and Humidity Meter

Adjust the decimal point, count from the right as the first one, we just fill in “1”. The temperature variable reads the temperature value of the DH11 sensor, and the humidity variable reads the humidity value of the DH11 sensor.

How to Build a micro:bit Temperature and Humidity Meter

After we download the programming code, we can display the temperature and humidity of the surrounding environment.

From building connections to graphic programming, children’s logical ability was exercised, and children also understood the role of different sensors, entered the world of electronic science, and realized what they wanted.

Leave a Reply

images
In March, ELECFREAKS supported 5 schools to carry out school science and technology festival activities
images
Children’s Programming Education is the Future Trend
images
Technical verification! Nezha series products can complete WRO competition tasks
images
Let's take part in the Ceremony of the New Factory of ELECFREAKS together!
images
Bluetooth Bee(HC-05 and HC-06) User Guide
images
In March, ELECFREAKS supported 5 schools to carry out school science and technology festival activities
Monthly Archive