Need help with alarm setup.

Hello all, thank you very much for reading. I am working on a project to take the sound produced by a buzzer from my NVR system by using a microphone sensor, then i need the Arduino to activate a relay that will power the 30 watt siren. I have a separate power supply for the siren so it won't be running off the Arduino. I am more mechanically inclined and have been unable to find the required code online. I would truly appreciate some help with the required code. Regards
5 Replies
Harbinger
HarbingerOP3mo ago
O, and the signal should be cut off after around 120 seconds
AnonEngineering
AnonEngineering3mo ago
this is a simple code that should do. in the sim there is no sound sensor but the light sensor works the same way. you can set the desired HOLD_TIME at the top of the code. Vcc and ground is the power supply for your siren. https://wokwi.com/projects/435842968227076097
Harbinger
HarbingerOP3mo ago
Thank you very much, i will give it a shot So, just to make sure, on the relay output side, NC is not used?
AnonEngineering
AnonEngineering3mo ago
NC = Normally Closed, NO = Normally Open, so it is the pin connected to COMmon I suppose you could for example connect a light to NC just to tell you the system is powered.
Harbinger
HarbingerOP3mo ago
Awsome thank you

Did you find this page helpful?