3

TL:DR I wanna scare the shit out of intruders, do you recommend Arduino or Raspberry Pi?

So, I live in a place kinda like a college, but everyone get their own room. There's staff 24/7, and obviously, I really dislike some of them. Otheres I just like to joke with.

Sometimes, I've thought of putting together a "system" which will probably make them shit a brick.
The way I would do this, is have an Arduino or Raspberry Pi connected to a sensor, which will trigger an airhorn somehow. Yes, and airhorn. They should shit bricks, remember?

That's the beginning tho. Later, if this ever becomes something, I plan on adding some system so it wont trigger when I open the door, along with flashing red lights when intruders opens the door.

I attached a picture. The smaller rectangle is my closet. First circle is the sensor, which I assume can just tell when the door moves, if I place it correctly.
The rectangle is the Arduino or Raspberry Pi, which should control it all as you probably already know.
The second circle is the airhorn. Not sure how I'm gonna trigger that yet.

So, does any of you have some advice or recommendations on how I can make this dream become true? Or even additional components to make it more efficient?
Last and most importantly, would Arduino or Raspberry Pi be best for this, is there a specific model thats better fit?

Comments
  • 0
    I recommend a pi, it's a whole pc and it's easier to control connected devices (pi 2b or pi 3 are fine, pi zero might give you peripheral problems)
  • 2
    You could buy a pi-camera and do some face-recognition, there are way too many tutorials out there on how to do this.

    When it comes to press the airhorn it can't help you though.
  • 1
    @YouAreAPIRate I did not think of that. I was mainly thinking Arduino and just a sensor to detect movement. With a face-recognition camera, some things would be alot easier.

    The airhorn is a riddle for me as well.
  • 1
    @rasm945i i'd still go with a detection-sensor, the pi has enough gpio-ports just like the arduino. But if you put raspbian on your pi you already have a good python-library to control gpio-devices (and a whole os which makes many things much easier). The camera can't do realtime-face-detection though, it's a loop of take picture, analyze, repeat. But every cycle should take 1-2s so it should be ok. You can combine sensor and camera for best results (e.g. sensor detects someone -> take picture)

    I've also seen several examples that will notice you per sms/email/telegram/discord if something happens, optionally with picture
  • 1
    @YouAreAPIRate the notifier, I've seen something similar.
    Im basically the only one wearing a cap where I live, so if it in realtime just could roughly detect if the person wore a cap, that would be perfect.
    Guess I gotta get my hands on some new stuff soon.
  • 1
    @rasm945i hm... detecting a cap won't be easy, especially because i haven't seen code for something like that yet. Maybe you can rely on the detection sensor only, or you can program the pi to honk the airhorn if someone enters the room and doesn't press a button in 5s. The possibilities are endless.

    Keep me updated ^^
  • 1
    @YouAreAPIRate I'm currently a bit busy on other projects, so it's probably a month until I can actually get started. I'll try and remember to post updates ;)
  • 1
    Why so complex. A simple door sensor on gpio, some sort of switch, like a self made rfid card, to unarm the system and whatever device you like to produce something loud with.
    You know these things you can put on your keychain that makes a really schrill sound when the pin is being removed? Find the part that produces the sound and control it via gpio. I bet the gpio power is even more than enough
  • 0
    @Kimmax door sensor it is. Seems much better. I already got an rfid card/key, so id just need a rfid reader.
    And no, i dont think i know what that noisy thing is, and id prefer an air horn as well xD
  • 0
    Do you guys think a solenoid for a Raspberry Pi 3 Model B would be able to push hard enough to trigger an air horn?
Add Comment