• Skip to primary navigation
  • Skip to main content
  • Skip to primary sidebar

Circuit Ideas for You

Get free circuit ideas online.

  • Home
  • Privacy Policy
  • About
Home » Building a Simple Pulse Frequency Counter Circuit with Arduino

Building a Simple Pulse Frequency Counter Circuit with Arduino

Last updated on 31 July 2025 by Admin-Lavi Leave a Comment

Pulse frequency counter count signal in hertz (Hz).

It is an important tool in electronics.

Now Arduino and other microcontroller make counter easy and cheap.

This article for Simple Pulse Frequency Counter Circuit with Arduino show how to make this easy circuit with few parts.

We have used IC 555 to make pulse, IC 7809 for control voltage and one LED to show signal.

Code:

[Arduino]          [IC 555]          [IC 7809]
   Pin 2 <------- Pin 3
 
volatile unsigned long pulseCount = 0;
unsigned long frequency = 0;

void setup() {
    Serial.begin(9600);
    pinMode(2, INPUT); // Pin connected to IC 555 output
        attachInterrupt(digitalPinToInterrupt(2), countPulse, RISING);
}

void loop() {
    pulseCount = 0; // Reset pulse count
    interrupts(); // Enable interrupts
    delay(1000); // Count pulses for 1 second
    noInterrupts(); // Disable interrupts

    frequency = pulseCount; // Store the frequency count
    Serial.print("Frequency: ");
    Serial.print(frequency);
    Serial.println(" Hz");
    digitalWrite(13, frequency > 0 ? HIGH : LOW); // Turn LED on if frequency > 0
}

void countPulse() {
    pulseCount++; // Increment pulse count
}

Code Explanation:

  • frequency save the frequency value.
  • pulseCount count how many pulses come.
  • setup set pin modes, start serial and make interrupt for count pulse when signal goes up.
  • loop send data to serial monitor, find frequency and reset pulse count every 1 second.
  • Also it uses pulse to turn LED ON/OFF.
  • countPulse() is interrupt function and it adds 1 to pulseCount when pulse happen.

Circuit Working:

Building a Simple Pulse Frequency Counter Circuit Diagram with Arduino

Parts List:

ComponentValueQuantity
Resistors1k 1/4 watt1
220Ω 1/4 watt1
Potentiometer 100k1
CapacitorElectrolytic 1μF 25V1
Ceramic 0.01μF1
SemiconductorsArduino Uno Board
IC 7809 Voltage Regulator1
IC 555 Timer For pulse generation1
LED Red 5mm 20mA any color1

This pulse counter project work good because of IC 7809.

Arduino Uno and IC 555 need stable power to work.

IC 7809 take high voltage like 12V and give steady 9V output.

Arduino for reading pulses and IC 555 for making pulses both need this 9V to work right.

Potentiometer control the pulse speed (frequency) from IC 555 in astable mode and it make square wave signal.

Arduino count pulses by checking rising edge of square wave using interrupt.

Arduino uses this frequency to turn LED ON/OFF and show number on serial monitor.

Formulas:

Formula to find frequency from pulse time is:

Frequency (Hz) = 1,000,000 / Pulse Duration (µs)

Pulse duration is how long one pulse stays.

It is measured in seconds (s).

Example: 0.001 second = 1 millisecond (ms).

Sometimes it mean total time of many pulses in some time range.

Frequency means how many times something happen in 1 second.

In pulse signal it mean how many pulses in 1 second.

Pulse time is often in microseconds (µs) so we use 1,000,000 to change µs to seconds.

This is useful because microcontrollers often work in microseconds.

How to Build:

For Building a Simple Pulse Frequency Counter Circuit with Arduino follow the below steps:

  • Take all parts shown in circuit diagram.
  • Use IC 7809 to give steady 9V DC to Arduino same as in diagram.
  • Connect pin 1 of IC 555 to Arduino GND.
  • Connect pin 2 to pin 6 of IC 555.
  • Connect pin 3 of IC 555 to Arduino digital pin 2.
  • Put 220Ω resistor and LED between pin 3 and GND.
  • Connect pin 4 and pin 8 of IC 555 to 5V on Arduino.
  • Put 0.01µF capacitor from pin 5 to GND for stable signal.
  • Put 1µF capacitor from pin 6 to GND.
  • Connect 1k resistor from pin 7 to +V positive power.
  • Connect 100k potentiometer one leg to pin 7 and middle leg to pin 6.

Conclusion:

This Building a Simple Pulse Frequency Counter Circuit with Arduino is a simple and fun project to learn frequency and signal checking.

Arduino count pulses and IC 555 make pulse signal.

Together they make useful tool for testing and checking signals.

This circuit is a good project to learn basic electronics and how Arduino help in many small tasks.

References:

Pulse counter – using internal comparator?

Filed Under: Arduino Projects, Meters and Testers

About Admin-Lavi

Lavi is a B.Tech electronics engineer with a passion for designing new electronic circuits. Do you have questions regarding the circuit diagrams presented on this blog? Feel free to comment and solve your queries with quick replies

Previous Post: « Simple Arduino-Powered Running LED Circle Circuit
Next Post: Simple Adjustable Brightness Control Circuit for LEDs »

Reader Interactions

Leave a Reply Cancel reply

Your email address will not be published. Required fields are marked *

Primary Sidebar




Categories

  • Alarm Circuits (33)
  • Amplifier Circuits (67)
  • Arduino Projects (31)
  • Audio Circuits (93)
  • Automobile Circuits (19)
  • Battery Charger Circuits (48)
  • Free Energy (13)
  • Heater and Temperature Controllers (9)
  • High Voltage (1)
  • Indicator Circuits (38)
  • Inverter Circuits (13)
  • LDR Circuits (15)
  • LED and Lamps (116)
  • Meters and Testers (28)
  • Motor Controllers (18)
  • Oscillator Circuits (33)
  • Power Supply Circuits (92)
  • Remote Control Circuits (6)
  • Security and Protection (25)
  • Sensors and Detectors (76)
  • Solar Circuits (16)
  • Timer Circuits (30)
  • Transistor Circuits (56)
  • Transmitter Circuit (12)
  • Tutorials (4)
  • Water Level Controller (4)

Recent Posts

  • Touchless Dustbin Circuit using Arduino Uno and Ultrasonic Sensor
  • Luggage Safety Alarm Circuit using IC LM358
  • Cricket Stumps and Bails LED Indicator Circuit
  • Simple LED Heart Blinker Circuit with IC 555 Timer
  • Digital Display AC Line Tester Circuit

Recent Comments

  1. Admin-Lavi on Constant Voltage, Constant Current Battery Charger Circuit
  2. Bill on Constant Voltage, Constant Current Battery Charger Circuit
  3. Admin-Lavi on Long Range FM Transmitter Circuit (2km)
  4. Sina on Long Range FM Transmitter Circuit (2km)
  5. Admin-Lavi on Long Range FM Transmitter Circuit (2km)

Copyright © 2025 | New Circuit Ideas