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

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

  • Comments

    • scabrero
      over 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
      over 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
      over 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
      over 3 years ago by scabrero | Reply

      Day 4

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

    • scabrero
      over 3 years ago by scabrero | Reply

      Day 5

      • Implement mailer library
      • Implement receiver
      • Tests

    • scabrero
      over 3 years ago by scabrero | Reply

      Day 6

      • Cleanup and publish

      https://github.com/scabrero/RemoteAlarm

    Similar Projects

    Framework laptop integration by nkrapp

    Project Description

    Although openSUSE doe...


    SUSE Prague claw machine by anstalker

    Project Description

    The idea is to build ...