keyestudio
Share your creative ideas with us here
By ran | 05 July 2024 | 0 Comments

HOW to Detect Vapor in the Air with Microbit

Overview

Our lives are surrounded by air everywhere. The air contains many ingredients, some of which are useful, some are harmful, some of which have a significant impact on the human body, and some of which have a slight effect on the human body.

So in this lesson, you will learn how to use a steam sensor and micro:bit to detect the vapor content in the air. Show the analog value on the micro:bit LED matrix or on the serial monitor.

Components Required

  • Micro:bit main board*1

  • Keyestudio Micro bit Sensor V2 Shield*1

  • USB Cable*1

  • keyestudio Steam Sensor*1

  • Dupont Jumper Wire*3

  • Premium Battery Holder 6-cell AA*1

  • 1.5V AA Battery*6

Component Introduction

Keyestudio Steam Sensor:

Steam sensor is an analog sensor, which can be used as a simple rainwater detector or liquid level switch.

When moisture on the sensing area of this sensor rises, output voltage of its signal end will increase.

Connection Diagram

34

Test Code

 Img

Test Results

Wire up,plug in external power and upload code to micro:bit,Open CoolTerm, click Options and select SerialPort, set COM port and baud rate(115200). Click OK and Connect. The CoolTerm serial monitor shows the analog signal red by steam sensor. The higher the vapor content in the air, the greater the value.

You should see the value is showed on the LED matrix of micro:bit. Or you can open the serial monitor of CoolTerm to get the value as the figure shown below.

 

Leave a Reply

Your email address will not be published.Required fields are marked. *
Name
E-mail
Content
Verification code