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 4 years ago: scabrero started this project.
  • over 4 years ago: scabrero added keyword "raspberrypi" to this project.
  • over 4 years ago: scabrero added keyword "hardware" to this project.
  • over 4 years ago: scabrero added keyword "diy" to this project.
  • over 4 years ago: scabrero originated this project.

  • Comments

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

      Day 4

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

    • scabrero
      over 4 years ago by scabrero | Reply

      Day 5

      • Implement mailer library
      • Implement receiver
      • Tests

    • scabrero
      over 4 years ago by scabrero | Reply

      Day 6

      • Cleanup and publish

      https://github.com/scabrero/RemoteAlarm

    Similar Projects

    Backfire TV - Take back control of your Firestick by andreabenini

    Take Back Control of Your Amazon Firestick.
    Tired of Ads, a cluttered launcher, and buttons you can't change? BackFireTV is a project to liberate your Firestick from Amazon's walled garden and make it truly yours. They call it the firestick. To fight fire with fire, you need a backfire.

    That's the soul of BackFireTV. To truly liberate it and return back to its core capabilities this project uses a linux script, one Android app and ADB access against Amazon's restrictive policies. We leverage these internal tools to create a "backfire" against the incessant ads and locked ecosystem, transforming your Firestick back into the useful, customizable device it was always meant to be.

    Goals

    I'm still defining it as a side project and something I'll surely do in the upcoming days with hw I already have. btw I'd like to register it in advance in order to work on it. I already have a somehow working concept I'll redefine later during the week


    Capyboard, ESP32 Development Board for Education by emiler

    Capyboard is an ESP32 development board built to accept individual custom-made modules. The board is created primarily for use in education, where you want to focus on embedded programming instead of spending time with connecting cables and parts on a breadboard, as you would with Arduino and other such devices. The board is not limited only to education and it can be used to build, for instance, a very powerful internal meteo-station and so on.

    Hack Week 25

    My plan is to create a new revision of the board with updated dimensions and possibly even use a new ESP32 with Zigbee/Thread support. I also want to create an extensive library of example projects and expand the documentation. It would be nice to also design additional modules, such multiplexer or an environment module.

    Goals

    • Implement changes to a new board revision
    • Design additional modules
    • Expand documentation and examples
    • Migrate documentation backend from MkDocs to Zensical

    Hack Week 24

    I created a new motherboard revision after testing my previous prototype, as well as a light module. This project was also a part of my master's thesis, which was defended successfully.

    Goals

    • Finish testing of a new prototype
    • Publish source files
    • Documentation completion
    • Finish writing thesis