I may be starting out here with an ambitious project, but the basic goal is to have several sensors, mostly PIR running off a Mega 2650 and sensor shield. Each sensor monitoring a room, hall, or other location. I want to give each sensor, (whatever type it is) an identity, so that when triggered it then calls on an individual output. Sometimes PIR might be replaced with other sensors to suit the situation. In basic form the outputs might light up individual LEDs, or buzzer sounds. Just to complicate it I thought it would be great to address some sort of media player containing multiple sound files so that a particular sensor addresses its corresponding sound. With pre recorded sound files the user is verbally told the name of the location where a sensor has activated. Thus you can then audibly monitor movements through a building. I foresee that this could supplement CCTV to save security staff the fatigue of watching blank screens and focus attention in the right locations at the right time.
I imagine that this same logic might be applied to say a home built pinball machine where switches and sensors that are triggered could play selected tunes, or initiate displays.
My big obstacle is that I’m new to Arduino and struggling with trying to understand the sketches to drive what I want to do. I assume you put in statements to identify each sensor, what it is and what it is connected to. Would the outputs then have to go to another arduino to address the correct sound? Would you call up wav files on an SD card reader? With multiple ideas I would like to see what unnecessary complications could be simplied.
Ideally outputting the sound into some sort of network stream would allow any PCs or mobile devices on the WiFi to receive the alerts.
I would like to also eventually embed a test program as a software switch parallel to all sensors. The idea is to reserve one input as “test”. Press the test button to send a single logic high sequentially onto each sensor line, thus to trigger each sound file. Just to isolate hardware from software issues.
Presume would need some sort of adjustable delay statement to suit the location whether it be an occupied area or one that is just passed through. In considering this issue I want to ask if a variable logic delay is possible? My thought is to use a variable potentiometer or similar to make “on the go” modifications to the delay time and reduce repeated alerts being unnecessarily sent. Could the resistance value of the POT be read, then converted to a digital value, then each value in array equals pre chosen delays ranging from immediate to infinity. Thus you can quickly disable false positives in a room that is occupied constantly, has pets roaming or other such real life issues.
I’m just looking for directions here on where to read to try and put all of this together. I am also very interested to learn those in the know whether the above is achievable.
Any feedback would be very much appreciated.