Results 1 to 5 of 5

Thread: Arduino Two Tone Paging

  1. #1
    Junior Member
    Join Date
    Dec 2014
    Posts
    9
    Thanks
    0
    Thanked 1 Time in 1 Post
    Rep Power
    0
    Reputation
    30

    Default Arduino Two Tone Paging

    Hello dear friends.

    I was wondering if is possible to make a two tone (quick call 2) decoder to activate a relay on an Arduino boar. This is for a fire paging.



Look Here ->
  • #2
    Premium Member
    wotnot's Avatar
    Join Date
    Nov 2019
    Location
    Scenic Rim, SE Qld
    Posts
    3,271
    Thanks
    1,474
    Thanked 2,968 Times in 1,528 Posts
    Rep Power
    1368
    Reputation
    60229

    Default

    Will lives be at risk if this gizmo fails? If so, then stop now.
    Cited from -->>

    So the answer is 'yes', caveat & subject to the bold text above =)

    edit: oops, missed the word 'decoder' -- still yes, but same thing - don't trust lives on these things.
    Last edited by wotnot; 07-01-21 at 03:56 PM.

  • #3
    Senior Member
    trash's Avatar
    Join Date
    Jan 2008
    Location
    Tamworth
    Posts
    4,089
    Thanks
    148
    Thanked 3,229 Times in 1,451 Posts
    Rep Power
    1288
    Reputation
    47674

    Default

    I'm not an ardunio person, but this is a pretty simple thing to do with a PIC chip.
    A quick look at the tones I would do it one of a couple of ways. The simplest is if you're not wanting to change the code of the relay. Hard wire program it.
    That simply involves clipping the audio into a square wave and counting the change of state or zero crossings etc. Double integrating and timing the pulse positions is another.
    For a single tone you trigger on a range of positions. If the transitions are 500uS or pulese 1mS then it's a 1KHz tone.

    The code would go something like. ...
    If you have a carrier detect, then that can start the program else you'll just have to write anti-trip code into the software.

    wait:
    while( transistion <> 1mS ) wait else {
    measure the duration of the 1mS tone
    If it is not long enough then return to wait

    If the pulse is long enough then delay(short)
    if transistion <> 1.2mS then return to wait
    else measure the duration of the 1.2mS tone.

    If all is good, turn on the relay. (or toggle it)

    For arduino I would not be surprised if there is a library for A2D conversion for measuring audio frequency.
    All you'd have to do then is write a nice long case() function.
    Yes I am an agent of Satan, but my duties are largely ceremonial.

  • #4
    Premium Member
    wotnot's Avatar
    Join Date
    Nov 2019
    Location
    Scenic Rim, SE Qld
    Posts
    3,271
    Thanks
    1,474
    Thanked 2,968 Times in 1,528 Posts
    Rep Power
    1368
    Reputation
    60229

    Default

    Interesting stuff, huh...(I remember the sound from the teevee series 'Emergency')



    Better to get something other than the arduino to do the heavy lifting -- CMX823

    Multiple approaches;


  • #5
    Senior Member
    Reschs's Avatar
    Join Date
    Aug 2010
    Location
    Outside a few schooners
    Posts
    3,081
    Thanks
    913
    Thanked 2,149 Times in 1,059 Posts
    Rep Power
    934
    Reputation
    33278

    Default

    Why over think the problem.
    Cheap MP3 Recorder/Player Module and a switch.
    If you must have a code, cheap standalone electronic lock and use the relay out to turn the MP3 Player on.

  • Tags for this Thread

    Bookmarks

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts
    •