Project Description

I have a box room in the garage where I store all my precious mountain gear. This project aims to create a remote alarm system using a pair of MCUs (a RaspberryPi pico and a ESP8266) connected by a LoRa PtP link.

The RaspberryPi pico will be in the box room (garage, -2 floor):

RPI pico | <--------- Door Sensor (GPIO in) | <--------> LoRa module (SPI) | ----------> Light relay (GPIO out) | ----------> Buzzer (PWM) | <--------> RFID reader

It will monitor the status of the door sensor. If the door is opened the light will be turned on and if the RFID tag is not presented the alarm will be triggered. The buzzer will sound and will report via the LoRa link.

The ESP8266 will be in the flat, 4th floor.

ESP8266 | <--------> LoRa module (SPI) | ----------> Buzzer (PWM)

It will be connected to the WiFi, and if the alarm is triggered it will send mail notification and the buzzer will sound.

In the case the bad boys use signal inhibitors to disable the LoRa PtP link or cut the power, both MCUs will use a heartbeat signal. If the ESP8266 does not receive replies from the other unit it will trigger the alarm on its own.

Goal for this Hackweek

  • Research ISM band restrictions about on-air time, avoid LoRaWAN service disruption
  • Test communication between the box room in the garage (-2 floor) and my flat (4th floor)
  • Develop software for both MCUs
  • Design PCB to power RPi pico from 220v
  • Install the system

Resources

Looking for hackers with the skills:

raspberrypi hardware diy

This project is part of:

Hack Week 20

Activity

  • almost 3 years ago: scabrero started this project.
  • almost 3 years ago: scabrero added keyword "raspberrypi" to this project.
  • almost 3 years ago: scabrero added keyword "hardware" to this project.
  • almost 3 years ago: scabrero added keyword "diy" to this project.
  • almost 3 years ago: scabrero originated this project.

  • Comments

    • scabrero
      almost 3 years ago by scabrero | Reply

      First day

      • Finally using two ESP32 boards and Arduino framework to speed up development.
      • Breadboard wiring
      • Test all peripherals
        • SX1278 LoRa module
        • Mifare RC522 RFID reader
        • Relay module to toggle light
        • Door switch
        • Active buzzer
      • Test LoRA link
        • Link quality is good, RSSI -90 dbm

    • scabrero
      almost 3 years ago by scabrero | Reply

      Second day

      • Research
        • 220v power suppy
        • Varistor
        • Resettable fuse
      • PCB design
        • Order PCB to JLCPCB
      • Draw software flow chart

    • scabrero
      almost 3 years ago by scabrero | Reply

      Day 3

      • Completed state machine diagram
      • Completed states flowcharts
      • Implemented the sender node
        • Authenticating only with tag UID for now

    • scabrero
      almost 3 years ago by scabrero | Reply

      Day 4

      • Basic receiver code
      • Implemented LoRa link encryption
      • Start receiver flowcharts

    • scabrero
      almost 3 years ago by scabrero | Reply

      Day 5

      • Implement mailer library
      • Implement receiver
      • Tests

    • scabrero
      almost 3 years ago by scabrero | Reply

      Day 6

      • Cleanup and publish

      https://github.com/scabrero/RemoteAlarm

    Similar Projects

    Containerized home mirror by lkocman

    I'm running a simple home mirror, but I managed...


    Tumbleweed support for Raspberry Pi 4 with Quad SATA HAT by jbaier_cz

    [comment]: # (Please use the project descriptio...


    Unrealtone by emiler

    Project Description

    Device for connecting...


    Tumbleweed support for Raspberry Pi 4 with Quad SATA HAT by jbaier_cz

    [comment]: # (Please use the project descriptio...


    ESP32 Meteostation by emiler

    Project Description

    The goal is to build ...