Tone detection with Goertzel's algorithm


+ Reply to Thread
Results 1 to 4 of 4

Thread: Tone detection with Goertzel's algorithm572 days old

  1. #1
    Senior Member AlbertoFS's Avatar
    Join Date
    Apr 2005
    Posts
    689
    Thumbs Up
    Received: 92
    Given: 2
    Total Downloaded
    4.62 GB

    0 Not allowed!

    Default Tone detection with Goertzel's algorithm

    Hi all,
    I am writing a code to detect an audio tone using Goertzel's algorithm. Since the code is very big, I would like to find solutions to reduce the lines of code. I have this formula written for Arduino. For that I wanted to know if this formula is the same as model A or model B.

    Original formula:
    magnitudeSquared = (Q1*Q1)+(Q2*Q2)-Q1*Q2*coeff
    magnitude = sqrt(magnitudeSquared)

    Model A.
    magnitudeSquared = ((Q1 * Q1) + (Q2 * Q2) - Q1) * Q2 * coeff

    Model B.
    magnitudeSquared = (Q1 * Q1) + (Q2 * Q2) - (Q1 * Q2 * coeff)

    Thank you very much for your help.
    Alberto
    73's de Alberto ea3agv

  2. Attention

    This valuable resource relies upon the very small amount of revenue generated by displaying online advertisements to our visitors.

    The advertisements we display are relevant to this web site and your browsing history

    Please consider supporting us by disabling your ad blocker.


    Note: Some users have reported issues related to ad-blockers rendering parts of this wesite unusable,
    where possible we will rectify the issues to enable you to use this resource with adblocking enabled.

    If you can, please report issues in the forum area WebSite / Forum Issues


    Thank you for your attention.

  3. #2
    Senior Member tumbleweed's Avatar
    Join Date
    May 2011
    Posts
    524
    Thumbs Up
    Received: 60
    Given: 0
    Total Downloaded
    408.14 MB

    0 Not allowed!

    Default Re: Tone detection with Goertzel's algorithm

    model B = original formula

  4. Attention

    This valuable resource relies upon the very small amount of revenue generated by displaying online advertisements to our visitors.

    The advertisements we display are relevant to this web site and your browsing history

    Please consider supporting us by disabling your ad blocker.


    Note: Some users have reported issues related to ad-blockers rendering parts of this wesite unusable,
    where possible we will rectify the issues to enable you to use this resource with adblocking enabled.

    If you can, please report issues in the forum area WebSite / Forum Issues


    Thank you for your attention.

  5. #3
    Senior Member AlbertoFS's Avatar
    Join Date
    Apr 2005
    Posts
    689
    Thumbs Up
    Received: 92
    Given: 2
    Total Downloaded
    4.62 GB

    0 Not allowed!

    Default Re: Tone detection with Goertzel's algorithm

    Thank you George.
    73's de Alberto ea3agv

  6. Attention

    This valuable resource relies upon the very small amount of revenue generated by displaying online advertisements to our visitors.

    The advertisements we display are relevant to this web site and your browsing history

    Please consider supporting us by disabling your ad blocker.


    Note: Some users have reported issues related to ad-blockers rendering parts of this wesite unusable,
    where possible we will rectify the issues to enable you to use this resource with adblocking enabled.

    If you can, please report issues in the forum area WebSite / Forum Issues


    Thank you for your attention.

  7. #4
    Fanatical Contributor top204's Avatar
    Join Date
    Feb 2002
    Posts
    3,592
    Thumbs Up
    Received: 339
    Given: 162
    Total Downloaded
    1.99 GB

    0 Not allowed!

    Default Re: Tone detection with Goertzel's algorithm

    For this type of algorithm, A PIC18FxxKxx type of device will do the trick nicely, however, for more accuracy, and more speed, the dsPIC33 devices are marvelous. See the Proton24 samples for FFT that are included with the compiler, they operate at high frequencies and are extremely fast and very easy to use.

    I wrote a set of routines to detect DTMF a while ago and it also has its own software low pass filter in the design. :-)

    Proton24 DTMF decoder using DSP routines

    If you are going to create a Goertzel algorithm, the floating point operations on any PIC24 or dsPIC device is extremely fast, both 32-bit floats and 64-bit floats.

  8. Attention

    This valuable resource relies upon the very small amount of revenue generated by displaying online advertisements to our visitors.

    The advertisements we display are relevant to this web site and your browsing history

    Please consider supporting us by disabling your ad blocker.


    Note: Some users have reported issues related to ad-blockers rendering parts of this wesite unusable,
    where possible we will rectify the issues to enable you to use this resource with adblocking enabled.

    If you can, please report issues in the forum area WebSite / Forum Issues


    Thank you for your attention.

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

     

Similar Threads

  1. PSTN Dial Tone emulator
    By crankshaft in forum The Lounge
    Replies: 22
    Last Post: 6th April 2011, 00:05
  2. [SOLVED !] Advice on Tone Generation
    By SimonTempler in forum Proton Plus Compiler v3
    Replies: 3
    Last Post: 3rd April 2010, 21:31
  3. [SOLVED !] Tone generator
    By la3pna in forum Proton Plus Compiler v3
    Replies: 1
    Last Post: 19th October 2008, 00:59
  4. DTMF Decoder on Goertzel algorithm
    By Botezelli in forum Proton Plus Compiler v3
    Replies: 4
    Last Post: 8th August 2008, 16:23
  5. CTCSS tone detection
    By shunt010 in forum Proton Plus Compiler v3
    Replies: 20
    Last Post: 28th November 2006, 11:24

Posting Permissions

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