User avatar
HX56
Registered User
Registered User
Posts: 143
Joined: Tue Mar 10, 2020 5:36 am
Real Name: Justin
YouTube Username: HX56
Location: Australia

Port Ratio -> Sound Frequency

Sat Nov 06, 2021 8:17 am

Hi all,

Thought I'd make this post for anyone looking for frequencies for making custom electronic sirens, like myself.
If anyone knows the frequency of a certain port, please post it below.

Thanks!
Siren Enthusiast from Australia since 2012. Designer of the KEYTROL-K4 Siren Controller.

User avatar
Some_3t22s
Registered User
Registered User
Posts: 190
Joined: Wed Nov 23, 2016 4:25 am
Real Name: Evan
Discord: Devvendorf#5542
Location: Bettendorf, IA

Re: Port Ratio -> Sound Frequency

Sat Nov 06, 2021 2:57 pm

The frequency of specific ports, other than the port count, is based on the RPM of the motor spinning. Electrical frequency (50 vs. 60 Hz) is also a factor since a siren's motor spinning at 3600 RPM on 60 Hz produces a different tone than that of the same siren's motor at 3000 RPM on 50 Hz. I will say, however, multiplying the port number by the electrical frequency is usually a good rule of thumb.
Iowan citizen in a land of T-128s, 2001s and 4004/4008s among many others.

"The middle class worker wouldn't want to work on a whole bridge, a half bridge is much easier."
-Jack

User avatar
carolinasignalco
Registered User
Registered User
Posts: 332
Joined: Wed Jul 14, 2021 9:21 pm
Real Name: t-merk
Location: lancaster south carolina

Re: Port Ratio -> Sound Frequency

Sat Nov 06, 2021 4:07 pm

how about a 4/6 port spinning 8000 rpm
Proud owner of the Carolina Signal co, a mini siren manufacturing company.
I dont check my email!! please dont email me about mini sirens. i only respond to pms. (sorry) get used to typos

User avatar
DJ2226
Registered User
Registered User
Posts: 1415
Joined: Sat Mar 30, 2013 3:50 am
Real Name: Dennis Seldon
YouTube Username: DJ2226
Location: Columbus, Georgia

Re: Port Ratio -> Sound Frequency

Sun Nov 07, 2021 5:43 pm

To put Some_3t22s' in a mathematical equation it would be RPM * port / 60. Most 2T22s do 3450 RPM so 3450*10/60 = 575 Hz and 3450*12/60 = 690 Hz.

For those that want to create a tone generator and take the digital route, I'd recommend an Arduino. I've implemented a full-fledge tone generator on an Arduino Mega and does pretty much every tone from most manufacturers' products along with a voice board. I ended up programming it in such a way that I could technically drop the board into a HyperSpike or Genasys (LRAD) system and turn them into actual sirens if I wanted. I've actually thought about proposing the idea to Sentry, but they dropped the VR series before I could actually make any kind of proposal to them. The language these boards use is similar to C, C++, Java, etc. To replicate dual tones in the code you can use the low side frequency as the base frequency (that is how Federal does it on their controls) and multiply it by the ratio. Swap the numbers to make an improper fraction and turn the number into a decimal. Multiply the base times the decimal and it creates the offset.

This is an example from my code. On the more technical side of things, I use the ToneAC library to generate the tones since it produces pretty smooth frequency sweeps as opposed to the built-in tone() function. I modified the library to take advantage of the larger chip on the Mega and create a second output since ToneAC only has one. When I do frequency sweeps I use a loop to control it. The code will increase the pitch by 1 and wait a certain amount of milliseconds before looping back around and doing it again. After each incrementation of the pitch, I invoke the toneAC() function along with my own toneAC4() function to update the frequency of the outputs. With my version of that library, the sound comes out of pins 6 and 7 (ToneAC4) and 11 and 12 (regular ToneAC on the Mega).

Let's say we've peaked in alert tone and we are mimicking a 500-SHTT. The pitch has been set to 575 Hz. For a 10/12 ratio I turn it into 12/10 and divide the fraction out to get 1.2. I have a float (decimal) variable declared in the header of the code called "offset" that holds this value, so if I want to change it to something else I can just change this and it changes everything in the code. This is the code that updates the frequency on each output:

toneAC(pitch);
toneAC4(pitch * offset);
Proud owner of a Model 1.
DJ2226's YouTube Page

User avatar
Synther
Global Moderator
Global Moderator
Posts: 1053
Joined: Fri Jul 10, 2015 5:57 am
YouTube Username: UtahSirens
Location: Utah
Contact: YouTube

Re: Port Ratio -> Sound Frequency

Mon Nov 08, 2021 7:18 am

Here is a valuable tool I use every time I synth a siren.
https://www.airraidsirens.net/beta/sirenfreqgen/
State of Utah siren map - My channel
STH-10, SD-10, 2 Model 2s

Return to “Main Outdoor Warning Sirens Board”

Who is online

Users browsing this forum: Bing [Bot], Google [Bot] and 47 guests