Forum Rule: Always post complete source code & details to reproduce any issue!
Results 1 to 2 of 2

Thread: Playing with the FreqMeasure Library

  1. #1
    Junior Member
    Join Date
    Sep 2015
    Location
    Christchurch , New Zealand
    Posts
    1

    Playing with the FreqMeasure Library

    Hi there from New Zealand
    I am a PIC C Programmer converting to Arduino Nano.
    I have been playing with the FreqMeasure Library and I have questions.

    I have modified the code to display on a 20x4 LCD using i2c. All works well.

    If I use a second nano to generate a fixed frequency(tone) , say 440hz, I get a perfect reading on my display.
    If I play the tone through a speaker into a mic then into the FreqMeasure loaded nano I start getting counts around 3285.

    Clearly my problem is the circuitry between the mic and the nano but I really don't know where to start with conditioning and filtering what the mic
    is picking up. I have the mic connected through an LM358 with a gain of ~100 and I have tried squaring the output through a 74HC40106 but the count
    remains the same.

    Any suggestions to help me learn about this would be gratefully received.

    Cheers

    Mark

  2. #2
    Senior Member+ Theremingenieur's Avatar
    Join Date
    Feb 2014
    Location
    Colmar, France
    Posts
    2,583
    I think that best is that you take an oscilloscope to check the output signals of the LM358 and of the 74HC106, take pictures and post them here. This will most probably allow experienced users to diagnose your problem from being the waveforms.

Posting Permissions

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