Arduino Forum

Using Arduino => Project Guidance => Topic started by: ckrmustafa on Jan 17, 2015, 03:38 pm

Title: Emergency Vehicle Siren Detector
Post by: ckrmustafa on Jan 17, 2015, 03:38 pm
Hi everyone  :) ,

I am newbee on arduino. I would like to make an "Emergency Vehicle Siren Detector" for my project but I dont know where to start to do. I googled the topic and found below link;

http://www.youtube.com/watch?v=937n1aEFeqU

May be I should start to learn to detect sound by microphone and filter by bandpass circuit. I searched but there was no source on this topic.

Can anyone advise me a way to do startup?


Thanks in advance to anyone who will advise.
Title: Re: Emergency Vehicle Siren Detector
Post by: PaulRB on Jan 17, 2015, 04:11 pm
Hi,

You are not going to like this advice, I am sorry. This is not a beginner project. It would be a difficult project for the most advanced Arduino expert. It may well be too complex for Arduino uno or mega, requiring more memory and processing power than most Arduinos. An expert might choose a due, I don't know.

I'm also not certain how useful it would be. The human ear can pick up a siren several miles away and estimate its direction and distance, even in a very noisy environment. It would take some very advanced electronics to achieve a crude version of this.

Is this project for a deaf person, perhaps to use while driving? If so, a great idea, but not for a first arduino project. Again, sorry, keep thinking of ideas!

Paul
Title: Re: Emergency Vehicle Siren Detector
Post by: ckrmustafa on Jan 17, 2015, 05:16 pm
I know it is a hard project for begginer like me :-) but I really want to do this project to control traffic lights on junction point to open road when emergency vehicle approach to the intersection. Everyone knows that emergency vehicles have transition priority but somebody may listening to music loudly in their cars so couldn't hear the sound of emergency vehicles' siren and so on. That's why this project is vital for society. Who knows, maybe one day we can save someone's live with this project :-).

Thanks in advance to anyone who will advise.
Title: Re: Emergency Vehicle Siren Detector
Post by: ckrmustafa on Jan 17, 2015, 08:18 pm
Hi Greensprings and thanks for your contribution. I think the strobe is suitable for dark environment not bright, dont I? The other question is that how radar detect the emergency vehicles? Thanks again.



Title: Re: Emergency Vehicle Siren Detector
Post by: Henry_Best on Jan 18, 2015, 03:54 am
The OP hasn't stated in which country he is, let alone which state. 
Here, in the UK, different types of EV emit slightly different sounds (Police, Ambulance and Fire Brigade all have similar but distinct sirens) and all of them sound different to the ones used in the US, or so I've heard in TV programmes. 
Also, our EVs are currently being fitted with a new type of siren which alternately produces about 5 seconds of high pitched and about 5 seconds of very low pitched sounds. A two-tone screech followed by a warbling deep bass sound. Even the deaf would hear/feel the low pitched sounds.
Title: Re: Emergency Vehicle Siren Detector
Post by: ckrmustafa on Jan 18, 2015, 07:52 pm
Hi again everyone :)
 I googled the strobe light's frequecy but there are many different information suc as 12Hz, 10-14Hz, <15Hz etc.
 Isn't there any standart frequecy value for emergency vehicle that use strobe light ?

Thanks in advance to anyone who will advise.
Title: Re: Emergency Vehicle Siren Detector
Post by: KenF on Jan 18, 2015, 08:36 pm
This may be an XY problem.  Why do you want to do this?
Title: Re: Emergency Vehicle Siren Detector
Post by: ckrmustafa on Jan 18, 2015, 08:46 pm
This may be an XY problem.  Why do you want to do this?
If siren dedector is hard to do I will try to make an strobe light based system. Thanks
Title: Re: Emergency Vehicle Siren Detector
Post by: KenF on Jan 18, 2015, 08:54 pm
If siren dedector is hard to do I will try to make an strobe light based system. Thanks
but WHY?
Title: Re: Emergency Vehicle Siren Detector
Post by: raschemmel on Jan 18, 2015, 08:57 pm
Quote
May be I should start to learn to detect sound by microphone and filter by bandpass circuit. I searched but there was no source on this topic.
What's the bandpass filter center frequency ?
What's the lower cutoff frequency and the upper cutoff frequency ?
What's the decibel threshold for the microphone signal amplitude ?
The video in that link doesn't prove anything.

THIS (https://www.sparkfun.com/products/12642) will do the same thing when combined with
THIS. (https://www.sparkfun.com/products/10468)

The cell phone was placed right next to the microphone with the volume on full. In real life, a siren is loud
up close but it would never trigger that cheap little microphone  unless it was within 30 ft. and even then
it would depend on microphone placement. To discuss this project intelligently you need to start by posting
the Design Criteria with specifications. (ie: bandpass filter specs specific to a  specific siren, sound level specs, total response time of the system etc...


Quote
If siren dedector is hard to do I will try to make an strobe light based system. Thanks
Maybe it's an XYZ problem...
Title: Re: Emergency Vehicle Siren Detector
Post by: Marmotjr on Jan 20, 2015, 12:57 am
Hi again everyone :)
 I googled the strobe light's frequecy but there are many different information suc as 12Hz, 10-14Hz, <15Hz etc.
 Isn't there any standart frequecy value for emergency vehicle that use strobe light ?

Thanks in advance to anyone who will advise.
Not all EV use the same signals.  Within a 20 minute drive of my location, I can find a region that uses Infrared strobes to actuate the traffic signals, another that uses visible strobes, and a third that uses the audible siren sounds to trip the lights.  And the sirens have to be of a specific tone/oscillation to trip the sensor.  I spent many years as a paramedic (flight and ground), and the systems are specific to the city/county/region they are setup in.  It depends on which manufacturer had the best sales pitch. 

It is also very difficult to get exact info (I haven't looked in quite a few years though) on the specs for each system.  1) They are proprietary products of each manufacturer, and 2) It is illegal (in most places) to use such systems on non-authorized vehicles.  Even authorized vehicles running just their opticon (the IR version I'm familiar with) without a good reason can get in trouble. 

Another point:  Any driver who is caring enough to want a detector, should be a good enough driver to have the situational awareness to notice an EV coming from a ways off.  Installing a detector into a vehicle is just giving the driver an excuse to not pay attention.  Any driver who normally wouldn't pay enough attention, doesn't care enough to think about this type of system.  You should be checking every mirror and your gauges every 10-20 seconds or so.  Reducing situational awareness is not a good idea.    And those drivers who don't give a damn to start with won't even use the thing if it hits them in the face.  I have followed drivers down the road for miles, (too) close to their bumpers blaring everything I had to get them to move. 

Thirdly, at least in my local, yielding of right of way is NOT required.  A motorist may continue on, at their pleasure, regardless of what an EV is trying to do, as long as that motorist would normally have right of way.  That is why we are trained to stop at every red light and visually clear the intersection, I try to make eye contact with every first in line driver.  Oddly enough, in my state an EV MUST yield to Mailmen and funeral processions (We're pretty sure that's why they died, the last ambulance had to yield to another funeral).

Side note on the use of Lights and sirens, On highways, EV's will only gain 3-5 seconds per mile running 'hot', and city driving they only gain about 10-15 seconds per mile, on average.  The one report I read long ago, showed that running 'hot' only makes an actual difference in <.1% of calls.  Of course, we never know if our next call will be that .1%, so we run hot. 

/rant
Title: Re: Emergency Vehicle Siren Detector
Post by: raschemmel on Jan 20, 2015, 05:38 am
Quote
Thirdly, at least in my local, yielding of right of way is NOT required.  A motorist may continue on, at their pleasure, regardless of what an EV is trying to do, as long as that motorist would normally have right of way.
You should put a pair of Diesel Locomotive Horns on your cab and hit the horn when your right on their bumper.
Title: Re: Emergency Vehicle Siren Detector
Post by: MorganS on Jan 20, 2015, 05:39 am
You mean like some sort of a loud siren?
Title: Re: Emergency Vehicle Siren Detector
Post by: raschemmel on Jan 20, 2015, 05:53 am
No. An EV already has a siren. Fire trucks have a special unique horn that is extremely loud, but a diesel locomotive has a special horn designed to be heard a mile away. If you were day dreaming behind the wheel with an EV on your bumper with the siren on, you might be able to ignore it, but a diesel locomotive
horn on your bumper is loud enough to make you jump out of your skin and every time it goes off your neves fire on full and you can't help but flinch. After several bursts, your nerves won't be able to take it much longer and you won't even be able to think straight. It's the closest thing to an electrical shock without actually being shocked. The response is almost the same. At 6 feet away it makes an EV siren look like a toy. There's no ignoring it. Your entire nervous system goes nuts at 6 feet away. Of course the effect at 200 to 300 ft is totally different. I'm talking about directly in the path of the horn at 6 ft away.  Consider this. The horn, even when mounted 10 ft above the ground on the top of the locomotive is very loud. Now
imagine that being 6 ft (or less) off the ground. Now the sound pressure wave is not traveling over your head. It is coming right at you. That, by itself , makes a huge difference.

diesel locomotive horn (https://www.youtube.com/watch?v=iXZctBrVrqI)

152 + db Train horn kit (http://www.amazon.com/Locomotive-Train-Horns-System-Solenoid/dp/B00AA1J8ZW)
Title: Re: Emergency Vehicle Siren Detector
Post by: JimboZA on Jan 20, 2015, 05:54 am
Side note on the use of Lights and sirens, On highways, EV's will only gain 3-5 seconds per mile running 'hot', and city driving they only gain about 10-15 seconds per mile, on average.  The one report I read long ago, showed that running 'hot' only makes an actual difference in <.1% of calls.  Of course, we never know if our next call will be that .1%, so we run hot.  
It's a particularly bad problem on some highways in Johannesburg. On some older stretches, where the geography prevents widening the road to make extra lanes, the municipality decided to make the emergency lanes into normal lanes.

Not that that matters actually: SA drivers are so ill-disciplined that vehicles often resort to the emergency lanes when the road blocks due to an incident. Then the EMTs can't get through anyway, and that's why my son's EV is one of these. Just about everything for ILS response in the panniers except road cones.
Title: Re: Emergency Vehicle Siren Detector
Post by: Marmotjr on Jan 20, 2015, 10:38 pm
The Pediatric MICU I used to run on had an airhorn mounted on the roof of the cab, but some idiot decided to mount the air tank and compressor under the passenger seat.  So if you hit the air horn, yes you would clear a path for miles, but then you had to listen to 10 minutes of the compressor running loudly inside the cab.

But it was worth it to wait for somebody with their windows open about to take a drink of coffee..........
Title: Re: Emergency Vehicle Siren Detector
Post by: raschemmel on Jan 21, 2015, 12:18 am
Quote
But it was worth it to wait for somebody with their windows open about to take a drink of coffee..........
ROFLOL... :D
Title: Re: Emergency Vehicle Siren Detector
Post by: Henry_Best on Jan 21, 2015, 04:27 am
Quote
I have followed drivers down the road for miles, (too) close to their bumpers blaring everything I had to get them to move.  
To those that don't pull over to let an EV pass, I ask: 
"What if it was their house on fire, their mother needing urgent medical treatment or their child being attacked?"
Title: Re: Emergency Vehicle Siren Detector
Post by: MorganS on Jan 21, 2015, 05:26 am
Well, they need to get home urgently to deal with that and pulling over for a truck to pass isn't going to help them accomplish that goal.
Title: Re: Emergency Vehicle Siren Detector
Post by: Shpaget on Jan 21, 2015, 08:52 am
I had a misfortune of being on the deck of a large ship when some guy on the bridge decided it would be fun to honk.
I was perhaps 20 m from the actual horn. There's no ignoring THAT. You crumble down in pain and cover your head to protect yourself from the sky falling on it.
To make the things worse, it was the dead of the night.

Anyway, this IR strobe traffic light thing is interesting.
Now, everybody who installed it on their non-EVs, raise your hands. :D
Title: Re: Emergency Vehicle Siren Detector
Post by: Marmotjr on Jan 21, 2015, 09:44 pm
I would assume the IR opticon would be an encoded pattern for each vehicle, since I know of reports that showed when individual vehicles were at what intersection.    Not all systems have this datalogging though.  Either way, some sort of code/pattern is required.   

But an arduino, IR detector, lawnchair, and a six pack near a hospital should eventually allow you to decrypt the signal.  Then it would be pretty simple to build your own.   
Title: Re: Emergency Vehicle Siren Detector
Post by: JimboZA on Jan 22, 2015, 03:21 am
What happens when EVs approach these intersections on 90 degree legs?- can't have it go green all round...
Title: Re: Emergency Vehicle Siren Detector
Post by: Marmotjr on Jan 22, 2015, 04:24 am
Some systems are directional, where they can detect which way the strobe or siren is originating from.  Those turn all the other directions Red, and leaves the one green.  That usually clears the path so we can roll right through, but not always.  Urban settings that use a siren signal rarely use this, as echos from buildings can confuse the sensor. 

Most systems though turn everything red when they detect a signal.  It's good because no one is moving, but because no one is moving, they tend to bunch up, and EV's get stopped at the light waiting for traffic to move out of the way. 
Title: Re: Emergency Vehicle Siren Detector
Post by: Ajayraj123 on Jan 12, 2018, 04:39 am
Can i detect the ambulance siren using elechouse voice recognition module and arduino?
Title: Re: Emergency Vehicle Siren Detector
Post by: raschemmel on Jan 12, 2018, 09:17 pm
Probably not
Title: Re: Emergency Vehicle Siren Detector
Post by: raschemmel on Jan 12, 2018, 09:39 pm
Quote
you don't need arduino, google for, 567 Tone Decoder (narrow bandpass filter) ,  electret microphone and frequency of siren.
(narrow bandpass filter) = Notch Filter
Title: Re: Emergency Vehicle Siren Detector
Post by: ted on Jan 12, 2018, 09:50 pm
(narrow bandpass filter) = Notch Filter
almost, opposite way
Title: Re: Emergency Vehicle Siren Detector
Post by: raschemmel on Jan 12, 2018, 10:02 pm
Quote
almost, opposite way
Correct.

I meant Notch-PASS filter. (https://www.google.com/search?q=notch+pass+filter&tbm=isch&source=iu&ictx=1&fir=xg6gIsR8tFUXBM%253A%252C7RBbLu3W6WGziM%252C_&usg=__nPJn-wXwI8YuAgqekSKgLbKVNKE%3D&sa=X&ved=0ahUKEwjW8aynqdPYAhUHKGMKHQhxCdkQ9QEIggEwDQ#imgrc=xg6gIsR8tFUXBM:)
Title: Re: Emergency Vehicle Siren Detector
Post by: ted on Jan 12, 2018, 10:05 pm
yes