arduino powered frequency counter

Поделиться
HTML-код
  • Опубликовано: 7 июл 2024
  • In this video we build an Arduino powered frequency counter. We also whip up a 555 based signal generator that makes a 1kHz square wave. The counter works by timing the HIGH and LOW pulses, adding them and dividing by 1000000. Easy right?
    555 Timer circuit:
    • Learn to use the 555 t...
    Link to all my sketches:
    www.dropbox.com/sh/m6c40pu99f...
    ~-~~-~~~-~~-~
    Please watch: "VC60B Insulation Tester"
    • VC60B Insulation Tester
    ~-~~-~~~-~~-~
  • РазвлеченияРазвлечения

Комментарии • 36

  • @barlobarlo303
    @barlobarlo303 7 лет назад +9

    A couple of programming suggestions:
    For low frequency sources, change pulseHigh and pulseLow from 'int' to 'long'. This prevents them from overflowing and becoming negative. You can see this in action if you print them out with a low freq input.
    Also you may want to use the optional "timeout" parameter to the pulseIn() function: pulseIn(pin, value, timeout);
    The default timeout is 1s. So if you are monitoring a signal that is greater than one second long the function will timeout and you will get the wrong reading.
    Many thanks for the video!

  • @electronic7979
    @electronic7979 6 лет назад

    Excellent project

  • @VeryMuchBlessed
    @VeryMuchBlessed 7 лет назад

    Very cool and useful! Was just looking at Frequency Counters on Ebay and now I think I'll make my own. Thanks much.

  • @Z80System
    @Z80System 7 лет назад +1

    Hello and Thanks for your video, you do a great work !
    It works for me too, and I changed a bit your code :
    - Put all value to type "long", as I don't need floating frequency info.
    - Put the first LCD print line into the Setup(), so I only change the second line (frequency value) into Loop().
    - Put delay down to 250ms, in the Loop().

    • @yeshecan7
      @yeshecan7 4 года назад

      hi sebastian...can you send me the HEX file of frequency counter which you upgraded????? please

  • @johnmellor6065
    @johnmellor6065 6 лет назад

    works like a charm thanks for video well explained

  • @valeriucasapu1558
    @valeriucasapu1558 Год назад

    Thanks. That's exactly what I was looking for on the internet 🙂.

  • @brunobruni318
    @brunobruni318 4 года назад

    Thx for thr video!!!

  • @sainsgood3807
    @sainsgood3807 4 года назад

    Thank you Sir. I can check my Arduino Uno's pin PWM. That is around 490 to 492 Hz as stated in its specification with your code. Means a lot.

  • @mustafaavci4362
    @mustafaavci4362 7 лет назад

    thanks for answer.

  • @MrBobWareham
    @MrBobWareham 7 лет назад

    Loved it very informative and explained in a good manner with easy to follow instructions thank you.
    Is there a way to detect a specific frequency and turn on a led indicator to show that it has been detected, please?
    Thank you for any help Bob

  • @E-BikingAdventures
    @E-BikingAdventures 6 лет назад

    What is the minimum and maximum frequency this arduino setup can measure? Assuming you use change the timing cap on the 555.

  • @melisawhitt8360
    @melisawhitt8360 7 лет назад

    this worked first try and it is as accurate as my DMM within a few HZ

    • @learnelectronics
      @learnelectronics  7 лет назад

      Cool, I'm always surprised when anything works first try lol

  • @ianbertenshaw4350
    @ianbertenshaw4350 6 лет назад

    I use something similar but with some more math to give a readout uf a rotary encoder on the spindle downfeed of my milling machine - it just converts the pulse count per second to feed rate in mm per minute .
    The extra math is just the reduction ratio in the drive system , i keep having one problem though the display keeps showing these weird symbols that look like martian writing ! It is also intermittent so i don't know what is causing it , maybe electrical interference, maybe a dodgy display or connection - i have no idea so looks like a pull apart job !

  • @rodriguezfranco3839
    @rodriguezfranco3839 Год назад

    what is the ceiling on frequency with this and a arduino uno? I need to measure at around 1 Mhz would this work?

  • @elifgencoo
    @elifgencoo 4 года назад

    can we use uno instead of nano

  • @electromagneticprojects1253
    @electromagneticprojects1253 6 лет назад

    Hello;
    I built an Arduino EMF Detector but i have a problem. The values on the EMF screen are unitless. I see huge numbers like 500.000 , 200.000, 300.000 when an electromagnetic field occurs. Also there is always a constant value just about 50.30, 49.32, etc.
    1)I want to see the values as frequency. How can i convert it to the frequency? Is it possible? If it is, could you help me?
    2)I use a copper cable as antenna. What is the reason of constant value? Is it because of antenna or because of crircle?
    Thank you...

  • @mustafaavci4362
    @mustafaavci4362 7 лет назад

    Hello Mr David I have made your configuration. It Counts 2000 or 3000 differecy for example one cycle 44.000 kHz, another one 41.000. How is your resultation. Thank you for your programmin and answer.

  • @navkumar43
    @navkumar43 5 лет назад

    can u plzz send me sketch link a

  • @nizamknight
    @nizamknight 5 лет назад

    is the LED screen important for the rest of this to work?

  • @mohammadothman6630
    @mohammadothman6630 7 лет назад

    I have the circuit connected but i always get the inf frequency reading.......please advice

    • @learnelectronics
      @learnelectronics  7 лет назад +1

      hard to say off hand... are your grounds connected

    • @mohammadothman6630
      @mohammadothman6630 7 лет назад

      yes they are connected. can you tell me what you did when you got the inf reading and said" i am going to power the 555"

    • @learnelectronics
      @learnelectronics  7 лет назад

      Mohammad Othman I just applied power. what are you trying to count?

    • @mohammadothman6630
      @mohammadothman6630 7 лет назад

      My circuit works now:)...Thanks!!!! your video has been a great help!!

  • @chenamis
    @chenamis 6 лет назад

    how much the max. frequency can be count?

    • @learnelectronics
      @learnelectronics  6 лет назад

      +chenamis It's going to Max out in the low GHz, probably around 8-10