element14 Community
element14 Community
    Register Log In
  • Site
  • Search
  • Log In Register
  • Community Hub
    Community Hub
    • What's New on element14
    • Feedback and Support
    • Benefits of Membership
    • Personal Blogs
    • Members Area
    • Achievement Levels
  • Learn
    Learn
    • Ask an Expert
    • eBooks
    • element14 presents
    • Learning Center
    • Tech Spotlight
    • STEM Academy
    • Webinars, Training and Events
    • Learning Groups
  • Technologies
    Technologies
    • 3D Printing
    • FPGA
    • Industrial Automation
    • Internet of Things
    • Power & Energy
    • Sensors
    • Technology Groups
  • Challenges & Projects
    Challenges & Projects
    • Design Challenges
    • element14 presents Projects
    • Project14
    • Arduino Projects
    • Raspberry Pi Projects
    • Project Groups
  • Products
    Products
    • Arduino
    • Avnet & Tria Boards Community
    • Dev Tools
    • Manufacturers
    • Multicomp Pro
    • Product Groups
    • Raspberry Pi
    • RoadTests & Reviews
  • About Us
  • Store
    Store
    • Visit Your Store
    • Choose another store...
      • Europe
      •  Austria (German)
      •  Belgium (Dutch, French)
      •  Bulgaria (Bulgarian)
      •  Czech Republic (Czech)
      •  Denmark (Danish)
      •  Estonia (Estonian)
      •  Finland (Finnish)
      •  France (French)
      •  Germany (German)
      •  Hungary (Hungarian)
      •  Ireland
      •  Israel
      •  Italy (Italian)
      •  Latvia (Latvian)
      •  
      •  Lithuania (Lithuanian)
      •  Netherlands (Dutch)
      •  Norway (Norwegian)
      •  Poland (Polish)
      •  Portugal (Portuguese)
      •  Romania (Romanian)
      •  Russia (Russian)
      •  Slovakia (Slovak)
      •  Slovenia (Slovenian)
      •  Spain (Spanish)
      •  Sweden (Swedish)
      •  Switzerland(German, French)
      •  Turkey (Turkish)
      •  United Kingdom
      • Asia Pacific
      •  Australia
      •  China
      •  Hong Kong
      •  India
      •  Korea (Korean)
      •  Malaysia
      •  New Zealand
      •  Philippines
      •  Singapore
      •  Taiwan
      •  Thailand (Thai)
      • Americas
      •  Brazil (Portuguese)
      •  Canada
      •  Mexico (Spanish)
      •  United States
      Can't find the country/region you're looking for? Visit our export site or find a local distributor.
  • Translate
  • Profile
  • Settings
Personal Blogs
  • Community Hub
  • More
Personal Blogs
John Wiltrout's Blog Economy Frequency Counter & Crystal Tester
  • Blog
  • Documents
  • Mentions
  • Sub-Groups
  • Tags
  • More
  • Cancel
  • New
  • Share
  • More
  • Cancel
Group Actions
  • Group RSS
  • More
  • Cancel
Engagement
  • Author Author: jw0752
  • Date Created: 8 Apr 2016 3:53 PM Date Created
  • Views 4949 views
  • Likes 6 likes
  • Comments 22 comments
  • pic16f628a
  • crystal_tester
  • frequency_counter
Related
Recommended

Economy Frequency Counter & Crystal Tester

jw0752
jw0752
8 Apr 2016

While checking out the source of all things economical I came across this frequency counter kit and crystal tester.

 

http://www.banggood.com/1Hz-50MHz-Crystal-Oscillator-Five-LED-Display-Frequency-Meter-Kit-p-959592.html

 

Yes the price was only $7.45 and they insisted on shipping it for free. I did not expect much, but for $7.45 there is nothing to loose and if I could make it work it would be handy for testing salvaged crystals and showing the frequency of some of the little oscillator circuits that Grandson Ivan and I are putting together for practice bread boarding.

 

image

 

The kit came with a nice well made circuit board and all the needed components but there was a real lack of literature. I was not worried about assembly instructions as the screening on the board was very self explanatory but operational instructions were another matter. As I began to assemble the unit, I would take breaks and search the internet for more information on this particular design. After a little research I discovered the designer of the circuit was Wolfgang "Wolf" Buescher who is a HAM Radio operator, Call Sign DL4YHF. Apparently the Chinese marketers of this kit had appropriated the design without Wolf's permission or giving credit where credit was due. Wolf who is a really great guy was forgiving particularly since the price being charged was reasonable and he had originally put the design out open source. I decided that before blogging about this kit I would email Wolf and get his permission and give him credit for a great little practical circuit. Here is Wolf's Web Site and the back ground information on the original build using a PIC 16F628A processor. If someone wants a bigger challenge than just a kit it would be possible to build this unit from Wolf's original design. With Wolf's permission in hand I will proceed with the build.

 

http://www.qsl.net/dl4yhf/freq_counter/freq_counter.html

 

I checked my pile of project enclosures and found a small plastic box that I had purchased at the Walmart for about $2.00. It looked like a perfect fit for the circuit and the peripheral jacks and switches. Here is a picture of the project box and the raw board:

 

       imageimage

 

Before I began the assembly of the components I used the raw circuit board to mark the mounting hole in the top of the project box. I also marked the position of the crystal jack, which I wanted to come through the top as well as the location of the hole for the program button. The next step would be to build the unit and begin the testing before I went to the trouble of fitting it into the project box. I decided to power the unit with a 9 Volt battery so I left the DC jack off and wired directly to a battery clip and a small SPST toggle switch.

 

image

 

Here we can see the circuit reading a 12 MHz crystal in the initial test.

 

The first night I was able to get the unit to work with several salvage crystals that I had in my bin. However the unit would not accept signals from the Waveform Generator. As it was very late at night, or should I say very early in the morning, I decided to quit for the night and let my brain work on prospective experiments that I could run to further check out the unit and get it completely working as designed. The next night I returned refreshed and got down to work checking things out. I used the oscilloscope to check the wave form and the voltage of the output of the internal crystal tester oscillator as it entered the #3 input pin of the PIC. This was found to be 9.6 volts peak to peak. I reconfigured the wave form generator to these parameters and tried the input of the counter again. This time everything worked fine. Last night it seems I had been too conservative in my input voltage. A quick test of limits revealed that the circuit would not work if less than 7 Volts PP ( 2.45 V rms) is applied to the input). Since the Oscillator was supplying about 10 V PP (3.5 V rms). I will begin with the assumption that this as a safe operating range. It will be important for me to find out what is the input voltage limit for the PIC. Since the unit has the input tied, unbuffered, directly to the input pin I am concerned that a spike or excess input voltage could damage the PIC. Further testing revealed good accuracy of the frequency tester between 1 Hz and 25 MHz which is the top limit of my signal generator. Specifications on the kit claim a range of 1 Hz to 50 MHz but I am not able to verify this.

 

    imageimage

With the satisfactory initial tests I proceeded to cut the mounting and access holes into the plastic of the top. This box is made of a fairly soft poly plastic. If the hole needed is small enough a sharp twist drill bit works well but for larger holes I have not found a really satisfactory method to make a nice clean hole. Any ideas on how to cut holes in this type of material would be appreciated.  It I cut it with a high speed cutter it melts the plastic and makes a mess of splatter. If I try to ream the plastic it just deforms and wraps around so that I have to use an xacto knife to clean up the edges of the hole after it is made. If I use a twist drill that is to large it cracks the plastic. Perhaps some sort of hole punch would be best but the ones that I have will not reach deep enough into the work area for this project.

 

image

Here is the completed unit, before labeling, testing a 10 MHz crystal. For the crystal test socket I used a header riser to bring the pin jacks up to and through the front panel. A second 3 pin header was then plugged into the first to give a raised, accessible crystal test socket.

 

        imageimageimage

 

Three views of the completed project, still without labeling.

 

        imageimageimage

 

    imageimage

Here are a series of tests showing the range of the frequency counter and its accuracy. Note that the decimal point of the little counter flashes if the output in displayed in kHz and remains steady if the display is in MHz. With the testing completed the only thing left is to get out the trusty label machine and finish the job.

 

        imageimageimage

 

This was a really fun project with a total over all cost for parts in the area of $15.00 USD. It is working well within the accuracy that I consider acceptable for a hobby shop such as the one I have. If you decide to make one for yourself, be sure to check out the link to Wolf Buescher's Web Site for more detailed information on the circuit and how it works.

 

John

  • Sign in to reply

Top Comments

  • mcb1
    mcb1 over 9 years ago +2
    Any ideas on how to cut holes in this type of material would be appreciated. I ran across these years ago and they are brilliant for holes in many materials. They go by various names but Step drill seems…
  • D_Hersey
    D_Hersey over 9 years ago +1
    Sometimes, you can get little metal tube from the hobby store and use a file to turn the end into a little knife blade and put it into drill press set up to turn slowly. This slices the hole in the poly…
  • shabaz
    shabaz over 9 years ago +1
    Hi John, Nice project! Just thinking, if you like, the input could be like the diagram in this PDF , figure 6a, with a 5V-powered 74AHCT14 logic gate (guessing the PIC is running at 5V?), with a couple…
  • jw0752
    jw0752 over 9 years ago

    I have continued this Blog as a Part II at this link:

     

    https://www.element14.com/community/people/jw0752/blog/2016/04/23/frequency-counter-and-crystal-tester-part-ii

     

    John

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • More
    • Cancel
  • jw0752
    jw0752 over 9 years ago in reply to D_Hersey

    Thanks Don,

    I can see that you are correct. I will google as suggested.

    John

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • More
    • Cancel
  • D_Hersey
    D_Hersey over 9 years ago

    A counter front-end is like an FM detector -- we want all of the gain we can get because we only care about edges.

     

    You may have some fun if you google 'ecl prescaler'

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • More
    • Cancel
  • jw0752
    jw0752 over 9 years ago

    Hi all,

    Last night I was doing some testing of the limits to the input signal level and I found one of the actual limits and latched up the input to the PIC16F628. Now when I put in a crystal or inject a signal all I get on the display is nonsense. After a review of the Data Sheet (180 Pages) of the 16F628 I found on page 135 that the RA4 (Pin3) input can not tolerate more than -0.3 volts below Vss. I have been feeding full sine and square wave 7 volts PP to the input. I got what I deserved but it re-enforces the need for some sort of buffering on the raw input to this frequency counter. I will continue to look for a proper front end while I wait for my next China Mail Packet. The original designer has a recommended preamp circuit on his web page and this is probably a good direction to try. It would be nice to have some sort of gain control so that a range of input voltages could be used.

    John

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • More
    • Cancel
  • jw0752
    jw0752 over 9 years ago in reply to D_Hersey

    Hi Don,

    Thank you for the offer. I will keep you in mind next time I need some fancy cutting of Acrylic.

    John

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • More
    • Cancel
>
element14 Community

element14 is the first online community specifically for engineers. Connect with your peers and get expert answers to your questions.

  • Members
  • Learn
  • Technologies
  • Challenges & Projects
  • Products
  • Store
  • About Us
  • Feedback & Support
  • FAQs
  • Terms of Use
  • Privacy Policy
  • Legal and Copyright Notices
  • Sitemap
  • Cookies

An Avnet Company © 2025 Premier Farnell Limited. All Rights Reserved.

Premier Farnell Ltd, registered in England and Wales (no 00876412), registered office: Farnell House, Forge Lane, Leeds LS12 2NE.

ICP 备案号 10220084.

Follow element14

  • X
  • Facebook
  • linkedin
  • YouTube