+21622886281
KY-026 sensor Micro:bit Project

Fire detection system with Micro:bit

Purpose of this project:

In this project a fire detection system with Micro:bit will be realized. It mainly uses a KY-026 flame sensor, buzzer and LED. When the flame sensor detects a fire, the Micro:bit board orders the buzzer to ring and the red LED to light up.

Required components

  • Micro:bit board
  • flame detector KY-026
  • buzzer 1 resistance 220Ω
  • 1 red LED connection wires
  • GPIO expansion board

Mounting

To complete the assembly, you can connect

  • the 2 terminals (+) of red LED and buzzer to the pin P0 of the Micro:bit
  • the 2 terminals (-) of red LED and buzzer to the pin GND of the Micro:bit
  • the pin DO of the flame sensor to the pin P1 of the Micro:bit board.
  • the VCC pin of the flame sensor to the 3.3V pin of the Micro:bit board.
  • the GND pin of the flame sensor to the GND pin of the Micro:bit board .

The mounting methods are numerous and here are some examples:

Mounting (1)

Mounting (2)

Makecode program

The Fire Detection System makecode program is as follows:




0 commentaire


Leave a comment

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

Scroll to Top