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

  • about 2 months ago: scabrero started this project.
  • about 2 months ago: scabrero added keyword "raspberrypi" to this project.
  • about 2 months ago: scabrero added keyword "hardware" to this project.
  • about 2 months ago: scabrero added keyword "diy" to this project.
  • about 2 months ago: scabrero originated this project.

  • Comments

    • scabrero
      about 2 months 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
      about 2 months ago by scabrero | Reply

      Second day

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

    • scabrero
      about 2 months 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
      about 1 month ago by scabrero | Reply

      Day 4

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

    • scabrero
      about 1 month ago by scabrero | Reply

      Day 5

      • Implement mailer library
      • Implement receiver
      • Tests

    • scabrero
      about 1 month ago by scabrero | Reply

      Day 6

      • Cleanup and publish

      https://github.com/scabrero/RemoteAlarm

    Similar Projects

    Upstream support for RPi4 CM4 and Pi400 by nsaenzjulienne

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


    Bird watcher with Raspberry Pi by scuescu

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


    Python bindings for Bosch Sensortec Environmental Cluster (BSEC) library by scabrero

    Project Description

    The BSEC library prov...


    Raspberry Pi and SUSE Manager by e_bischoff

    I have bought a Raspberry Pi 400 and would like...


    work on sunxi a64 cpufreq driver (for teres-1, pine64) by mbrugger

    With the teres-1 [1] laptop we have a first arm...


    Python bindings for Bosch Sensortec Environmental Cluster (BSEC) library by scabrero

    Project Description

    The BSEC library prov...