Build a Smart IoT Alarm System with micro:bit and Telegram Alerts

Build a Smart IoT Alarm System with micro:bit and Telegram Alerts

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.

 

Join our micro:bit Malaysia Telegram Group for all your questions and discussions!

Related Products


Related Posts

Use micro:bit as a Game Controller for Scratch

Use micro:bit as a Game Controller for Scratch

Are you ready to have some fun with your micro:bit? In this tutorial, we'll show you how to play Scratch games using your versatile little device...
Display Date, Time, and Temperature on an LCD with micro:bit

Display Date, Time, and Temperature on an LCD with micro:bit

In this tutorial, we're going to learn how to display real-time information such as date, time, and temperature on an LCD screen using micro:bit...
Display Real-Time Temperature and Humidity on an OLED with micro:bit

Display Real-Time Temperature and Humidity on an OLED with micro:bit

Looking to add a little something extra to your micro:bit project? In this tutorial, we'll show you how to connect an OLED display to your micro:bit and display real-time temperature and humidity read..