Jamesuk
Posts: 1
Joined: Tue Jan 24, 2017 9:40 am

Security System

Tue Jan 24, 2017 10:07 am

Hi,

I am wondering if a raspberry pi would be suitable for a project I am planning. I would like to install some intruder beams around my business and for the beams to trigger a speaker playing a pre recorded message. Would I be able to code a pi to be triggered and play a 30 second clip on repeat for say 5minutes? If it also possible to log the time and date each time the beam is triggered and send me an email? If this is possible where would be a good place for me to start and which pi would be the most suitable.

Thanks
James

User avatar
Gert van Loo
Posts: 2487
Joined: Tue Aug 02, 2011 7:27 am
Contact: Website

Re: Security System

Tue Jan 24, 2017 1:24 pm

Yes, that is all do-able and possible.
If the Pi is doing nothing else you can write a small program that sits in a loop and looks for a GPIO pin change.
(To which you must connect your beam-disruptor circuit).
Then you can start some 'system' call to play sound.

Any Pi would do as it would need about 2% of the CPU power so I would look at power consumption most.
That probably means a Pi-zero, but for initial development a rev 2 B would be easier.

Return to “Beginners”