Raspberry Pi projec...
 

Subscribe now and choose from over 30 free gifts worth up to £49 - Plus get £25 to spend in our shop

[Closed] Raspberry Pi project

9 Posts
9 Users
0 Reactions
69 Views
Posts: 604
Free Member
Topic starter
 

I'd like to try to build something and wondered whether a R'Pi would be a good platform for it.

Any experienced users here who child comment or point me in the right direction would be most welcome.

So, it's a sort of security device that has irregularly blinking LED lights to simulate human activity but is also triggered by motion, so I was thinking that a PIR system would do that job? Then the alarm would be to play back some audio recordings/sounds though a speaker system and set off additional security lights.

Could all this be done by a total beginner?


 
Posted : 10/12/2016 7:52 pm
Posts: 4693
Full Member
 

Could all this be done by a total beginner?

No, but there are enough resources online so that you wouldn't be a total beginner for long.


 
Posted : 10/12/2016 7:57 pm
Posts: 16363
Free Member
 

Easier with an Arduino IMO. Lots of plug in boards to do the various elements (5v pir, mp3 trigger, relays) cheap on eBay. The programming is pretty straightforward but may take a little while if you are a complete beginner.


 
Posted : 10/12/2016 8:00 pm
Posts: 14041
Free Member
 

What sort if led lights do you want to trigger, Inside or outside?
PIR is pretty easy as well as energenie wireless controlled sockets for indoor lights.

Do a Google search of the pi forum.


 
Posted : 10/12/2016 9:00 pm
Posts: 401
Free Member
 

I think you could do this with a bit of learning and "scratch" a language/environment designed for noobs


 
Posted : 10/12/2016 9:33 pm
Posts: 4954
Free Member
 

Agree arduino is more suitable. You are adding a layer of complexity by using r pi with an OS etc.


 
Posted : 10/12/2016 9:40 pm
Posts: 6538
Full Member
 

Maybe also look at Siemens LOGO - small Boolean logic programmable relays/PLC's. Dead easy to 'program' - drag and drop virtual wires between logic/function blocks.

Probably a little more expensive than RP's but more industrial
http://w3.siemens.com/mcms/programmable-logic-controller/en/logic-module-logo/Pages/Default.aspx


 
Posted : 11/12/2016 10:18 am
 colp
Posts: 3323
Full Member
 

If you do want to use a Pi look at using motion and a decent USB webcam.
Motion has an "on event start" line that can call other scripts, so could call aplay to play a recorded sound file, or trigger a relay for a light.
Google "motion Pi webcam".
The Pi could also run Homebridge which would let you use Siri or Alexa to voice control stuff.


 
Posted : 11/12/2016 11:17 pm
Posts: 14041
Free Member
 

I've found that having a PIR trigger events is easier and more reliable than using motion, but the former doesn't work though glass.


 
Posted : 11/12/2016 11:57 pm
Posts: 0
Free Member
 

[quote=nickjb ]Easier with an Arduino IMO.

Apart from playing audio recordings. How would you do that on an arduino?

Though it's not terribly complicated on a RPi - the OS doesn't really get in the way for doing simple things like this, which you could as suggested above pretty much do in Scratch which is likely to be easier to programme than anything available for an Arduino.

You can connect a PIR directly to GPIO on a RPi, which is what I have in my skull (which also flashes LEDs and plays audio recordings). PIR is in the nose and pretty much everything directly connected to GPIO:


 
Posted : 12/12/2016 12:10 am