Frecuency Detection


Results 1 to 9 of 9

Threaded View

  1. #8


    Did you find this post helpful? Yes | No

    Default How i am going?

    Amazingly: there is no math at all in the final algorithm. I am having real fun doing this stuff by the way.

    In short words the math formula of DFT is a simple comparision of two bits in N samples, when the sample is passed through a 1bit A/D converter (Zero cross detector for example).

    What the algorithm does is:
    Code:
     if RealSample = StoredExpected then
               Energy = Energy + 1
     else
               Energy = Energy - 1
     endif
    The stored expected is a representation of 1`s and 0´s of the signal, considering the samplig frecuency.

    i.e. Stored Expected
    11111000001111100000111110000011111000001111100000 111110000011111


    This must be done with each sample and one can choose like 114 samples (any number, the bigger the better).

    The final Energy its a great representation of the existence of the Detected Frequency in the signal. a simple excel worksheet amazed me, this is really a great filter!!

    You could even try to trick the algorithm by adding two or three more frequencies at the same time and it will GET the result!

    Result so far:
    I am getting the greatest energy around 300 with a F applied of 350. Possible problem with optimization of code or large interrupt routine.

    I am attaching the excel sheet that amazed me in case someone is interested, you can move frequency and phase of two frequencies and watch the resultant Wave, and also watch the resultant energy, wich would show that the frequency is detected.

    Will post code so far tomorrow
    Attached Files Attached Files

Similar Threads

  1. Need some suggestion ignition coil pulse detection
    By phoenix_1 in forum Schematics
    Replies: 8
    Last Post: - 28th April 2009, 23:34
  2. Proximity detection - tuned loops
    By George in forum Off Topic
    Replies: 1
    Last Post: - 31st July 2007, 17:25
  3. Infrared Led Object Detection
    By alaaodeh in forum mel PIC BASIC Pro
    Replies: 5
    Last Post: - 12th March 2007, 04:10
  4. Auto Baud Rate Detection
    By mytekcontrols in forum Serial
    Replies: 10
    Last Post: - 31st October 2005, 02:17
  5. Low Voltage Detection
    By Srigopal007 in forum mel PIC BASIC Pro
    Replies: 1
    Last Post: - 5th January 2005, 18:29

Members who have read this thread : 0

You do not have permission to view the list of names.

Posting Permissions

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