+21622886281
DHT11 Micro:bit TM1637 display

Measure the temperature with the DHT11 sensor and display it on a TM1637 display with Micro:bit

Purpose of this tutorial:

In this tutorial we will see how to read the temperature measured by the DTH11 sensor and display it on a TM1637 display.

Required components

  • Micro:bit sensor DTH11
  • display TM1637
  • Test plate (For mounting 1)
  • connecting wires

Mounting

To carry out the assembly we connect:

  • the DATA pin of the DTH11 sensor to the pin P0 of the micro:bit adapter
  • the VCC pin of the DTH11 sensor to the 3.3 V pin of the micro:bit.
  • Pin GND of the DTH11 sensor to pin GND of the micro:bi
  • Pin DIO of the display TM1637 to pin P1 of the adapter of the micro:bit
  • Pin CLK of the display TM1637 to pin P2 of the adapter of the micro:bit
  • Pin VCC of the display TM1637 to pin 3.3V of the microphone:bit
  • GND pin from display TM1637 to micro:bit GND pin

There are several mounting methods.

Mounting (1)

Mounting (2)

Makecode program

Here is the makecode program that reads the temperature measured by the DTH11 sensor and displays it on a TM1637 display

Note: you have to go to Extensions to import the DTH11/DTH22 and TM1637 extension




0 commentaire


Leave a comment

Votre adresse e-mail ne sera pas publiée. Les champs obligatoires sont indiqués avec *

Scroll to Top