Build Smart Alarm System Using IoT with micro:bit

Build Smart Alarm System Using IoT with micro:bit

This tutorial will teach us how to build a Smart Alarm System using IoT with microbit. If the IR sensor detects someone is entering the house the microbit will send an alarm notification to your device through Telegram. ⚠️?

Video Tutorial

Components Required

Connection

circuit diagram 40

By following the diagram above:

  • Connect the grove wifi module to P15 and P16
  • Connect IR sensor to P1

Code

microbit screenshot 1 30

Connect your REKA:BIT to your device and open MakeCode editor to start programming.

  • Add “ESP8266 Cytron” extension and follow the code block in the picture above
  • Follow the steps here to create Telegram bot. Get the API key of the Telegram bot and chat ID.
    If you want to learn more on how to send messages to Telegram, please check the video tutorial here
  • After completing the code, download it on microbit

You can also view and edit the code by clicking here!

Project Complete

smart alarm system 30

Upon completing the project successfully, you shall receive a message notification on your Telegram once the IR sensor detects someone entering the house.

Related Products