+ Post New Thread
Results 1 to 14 of 14
  1. #1
    Newbie level 5
    Points: 441, Level: 4

    Join Date
    Oct 2010
    Location
    Chennai
    Posts
    8
    Helped
    0 / 0
    Points
    441
    Level
    4
    Blog Entries
    1

    Frequency Counter (5Mhz) using PIC16F72 and an Opamp Schmitt Trigger ...

    This frequency meter is capable of frequencies upto 5Mhz . It has an error rate of 5% at any frequency. (by averaging ..)

    The compiler used is HI-TECH C . (basically the program can be recompiled for any PIC which has a CCP1 module and timer 1).
    Xtal is 20 MHz.
    The opamp can be any model that has GBP of about 20Mhz.

    The circuit can directly measure any frequency upto 4.5 - 5 Mhz.

    ( The frequency range of this counter can be increased upto 10 to 20MHz, by adding a frequency divider circuit. )

    The files can be downloaded from
    Hotfile.com: ?atwy hosting plików jednym klikni?ciem: freqcntr.zip


    Check it out and suggest improvements if any :) This is my own successful project . mi8 b able to help in your doubts if ne.
    Hava Nice Time
    Last edited by itzvinodh; 9th December 2011 at 09:49.

  2. #2
    Advanced Member level 4
    Points: 11,688, Level: 25
    ALERTLINKS's Avatar
    Join Date
    Dec 2003
    Location
    Pakistan
    Posts
    1,163
    Helped
    349 / 349
    Points
    11,688
    Level
    25

    Re: Frequency Counter (5Mhz) using PIC16F72 and an Opamp Schmitt Trigger ...

    Link is not properly inserted.

  3. #3
    Advanced Member level 3
    Points: 7,036, Level: 19
    milind.a.kulkarni's Avatar
    Join Date
    Oct 2011
    Location
    Bangalore
    Posts
    923
    Helped
    208 / 208
    Points
    7,036
    Level
    19
    Blog Entries
    1

    Re: Frequency Counter (5Mhz) using PIC16F72 and an Opamp Schmitt Trigger ...

    Yes ....I also don't found link is working...
    Hope the post will be helpful to you....
    "Sharing is the best way of Learning"

    •   Alt9th December 2011, 09:45

      advertising

        
       

  4. #4
    Newbie level 5
    Points: 441, Level: 4

    Join Date
    Oct 2010
    Location
    Chennai
    Posts
    8
    Helped
    0 / 0
    Points
    441
    Level
    4
    Blog Entries
    1

    Re: Frequency Counter (5Mhz) using PIC16F72 and an Opamp Schmitt Trigger ...

    Well... Got the link working... Check it out now...

    •   Alt9th December 2011, 09:50

      advertising

        
       

  5. #5
    Advanced Member level 3
    Points: 7,036, Level: 19
    milind.a.kulkarni's Avatar
    Join Date
    Oct 2011
    Location
    Bangalore
    Posts
    923
    Helped
    208 / 208
    Points
    7,036
    Level
    19
    Blog Entries
    1

    Re: Frequency Counter (5Mhz) using PIC16F72 and an Opamp Schmitt Trigger ...

    Can u Please mention name / part number of the IC like Opam like ua741 and LCD like LCD-016M002B in the schematic will be helpful to may of us.... Also, I found capacitor missing for oscillator

    Nice share... and thanks for such good design....

    regards
    Hope the post will be helpful to you....
    "Sharing is the best way of Learning"

  6. #6
    Newbie level 5
    Points: 441, Level: 4

    Join Date
    Oct 2010
    Location
    Chennai
    Posts
    8
    Helped
    0 / 0
    Points
    441
    Level
    4
    Blog Entries
    1

    Re: Frequency Counter (5Mhz) using PIC16F72 and an Opamp Schmitt Trigger ...

    The Opamp (is used only as a Schmitt Trigger) can be any part that works above 5Mhz .... I have an updated design using a schmitt trigger (74HC14)... it will be easier and much cheaper than the opamp version i guess...

    As for the Capacitor values it should be 15pF .... (but its a non critical as specified in the datasheet of pic16f72). I didnt use it in my hardware circuit and it just worked well...

    The Display is a JHD162A (16x2 Character LCD) actually any HD44780 based Char LCD must work.

    The updated schemetic file is at....
    Hotfile.com: ?atwy hosting plików jednym klikni?ciem: Freqcntr.PDF

    ---------- Post added at 16:22 ---------- Previous post was at 16:09 ----------

    if you use an opamp its OPA2322. (BURRBROWN costs around Rs 200 :P ) ....

    So, better option would be to use a 74HC14 which is a Hex(has 6 inverter modules) Inverting Schmitt Trigger... It would be well around Rs 20 to 30... within our budget i guess ... :)

    The model has been simulated in Labview Proteus and has been also been implemented in hardware...
    Labview Proteus shows an error in reading of 2% (such errors are pointless in real life..) Still im trying on a new averaging feature which would reduce the errors, Would be uploading the code if successful (also planning to add a LC meter function to the same circuit ).

    The Coding is done to perform the job and does no fancy stuff like showing the readings in Mhz / KHz , decimal points etc...
    It simply shows the reading in Hz...
    Last edited by itzvinodh; 9th December 2011 at 11:05.

    •   Alt9th December 2011, 10:54

      advertising

        
       

  7. #7
    Advanced Member level 3
    Points: 7,719, Level: 20

    Join Date
    Apr 2006
    Location
    Hyderabad, India.
    Posts
    755
    Helped
    119 / 119
    Points
    7,719
    Level
    20

    Re: Frequency Counter (5Mhz) using PIC16F72 and an Opamp Schmitt Trigger ...

    there are counter design that work well beyond 30MHz. they use PIC16F628A, and a single transistor in the front signal conditioning.

    for example, check Ham Radio And Electronics Website :: HamRadioIndia

    once you can add a prescaler like SAB6456, you can reach V/UHF ranges.

  8. #8
    Newbie level 5
    Points: 441, Level: 4

    Join Date
    Oct 2010
    Location
    Chennai
    Posts
    8
    Helped
    0 / 0
    Points
    441
    Level
    4
    Blog Entries
    1

    Re: Frequency Counter (5Mhz) using PIC16F72 and an Opamp Schmitt Trigger ...

    @ mvs sarma

    Aktually the pic directly cannot reach a frequency like 30 Mhz since the 18F models themselves are upto 12MIPS only...
    so it doesnt matter whether it is PIC16F628A or PIC16F72 greatly...

    Depends on the prescaler... thats the reason i said adding a frequency divider circuit could greatly increase its range...

    My main concern is the cost nd complexity since its just a hobbist project...
    Thanks for the advice on using the SAB6456 as the prescaler :) would test it on proteus vsm simulator first :)
    Last edited by itzvinodh; 9th December 2011 at 14:51.

  9. #9
    Advanced Member level 3
    Points: 7,719, Level: 20

    Join Date
    Apr 2006
    Location
    Hyderabad, India.
    Posts
    755
    Helped
    119 / 119
    Points
    7,719
    Level
    20

    Re: Frequency Counter (5Mhz) using PIC16F72 and an Opamp Schmitt Trigger ...

    i have working unit with me. please study the link i have indicated. perhaps i can make .asm available if needed for examination.

  10. #10
    Super Moderator
    Points: 39,121, Level: 48

    Join Date
    Jul 2009
    Location
    Aberdyfi, West Wales, UK
    Posts
    6,498
    Helped
    1997 / 1997
    Points
    39,121
    Level
    48

    Re: Frequency Counter (5Mhz) using PIC16F72 and an Opamp Schmitt Trigger ...

    The PIC timer input will work MUCH faster than instruction speeds. You dont have to poll the pin to check it's state, it connects directly to the internal timer circuits. It's quite common for 4MHz clocked PICs to count pulses at up to 50MHz.

    Brian.

  11. #11
    Advanced Member level 3
    Points: 7,719, Level: 20

    Join Date
    Apr 2006
    Location
    Hyderabad, India.
    Posts
    755
    Helped
    119 / 119
    Points
    7,719
    Level
    20

    Re: Frequency Counter (5Mhz) using PIC16F72 and an Opamp Schmitt Trigger ...

    Yes. This should motivate the O P who could plan for reaching higher count while using 16F72 itself.

  12. #12
    Newbie level 5
    Points: 441, Level: 4

    Join Date
    Oct 2010
    Location
    Chennai
    Posts
    8
    Helped
    0 / 0
    Points
    441
    Level
    4
    Blog Entries
    1

    Re: Frequency Counter (5Mhz) using PIC16F72 and an Opamp Schmitt Trigger ...

    Thanks MVS SARMA..
    Am trying with the timer 0 and prescaler lik the ham radio people just did...
    i am not that good in assembly... so have to start from scarp in C...

  13. #13
    Advanced Member level 4
    Points: 11,688, Level: 25
    ALERTLINKS's Avatar
    Join Date
    Dec 2003
    Location
    Pakistan
    Posts
    1,163
    Helped
    349 / 349
    Points
    11,688
    Level
    25

    Re: Frequency Counter (5Mhz) using PIC16F72 and an Opamp Schmitt Trigger ...

    This frequency counter is around about 20 years old. The original version(i guess) was made with PIC16C54 printed in an electronics magazine as a constructional project. I have that issue. It appeared on internet with modifications and improvements.
    Frequency Counter,PIC 16F84,Weeder Technologies
    PIC 16F628 Frequency Counter with RS232 output in a DB9 backshell by Jan Panteltje
    http://www.unusualelectronics.co.uk/...eq_counter.pdf
    MC12080 400MHZ PIC 16F84A frequency counter
    Frequency counter with PIC and 4- to 5-digit LED display
    http://www.qrpproject.de/Media/pdf/D...EnglManual.pdf
    Microchip website has an application note AN592 of a frequency counter using PIC16C54,
    AN592 - Frequency Counter Using PIC16C5x - Application Notes - Details
    Using c, 50MHz.
    A PIC frequency counter project written in C using TMR1 and an LCD.
    And
    OM3CPH home page
    OM3CPH home page
    Last edited by ALERTLINKS; 14th December 2011 at 10:31.

  14. #14
    Newbie level 2
    Points: 673, Level: 5

    Join Date
    Mar 2009
    Posts
    2
    Helped
    0 / 0
    Points
    673
    Level
    5

    Re: Frequency Counter (5Mhz) using PIC16F72 and an Opamp Schmitt Trigger ...

    use the IC MB506,the max frequency can be reached to 2.4GHz
    SIGNATURE LINKS ARE NOT ALLOWED

+ Post New Thread
Please login