STEP 1 / 6ELECTRONICS

Digital Frequency Meter Using Arduino

This project discusses the creation of a digital frequency meter using Arduino Uno to determine the sinusoidal frequency signal in the range of 20 Hz to 5 kHz. The frequency range covered…

Circuit Atlas themed schematic for Digital Frequency Meter Using Arduino
PROJECT#167
TRACKElectronics
PARTS05
STAGES06
STEP 1 / 6 · Overview

Know the mission before touching a wire.

Understand what you are making, prepare the right tools, and make the workbench safe.

01

Project details

Digital Frequency Meter Using Arduino is a electronics project. This project discusses the creation of a digital frequency meter using Arduino Uno to determine the sinusoidal frequency signal in the range of 20 Hz to 5 kHz. The frequency range covered…

Source pages
319-321
Named parts
5
Build goal
Working, tested prototype
02

Tools you need

  • Digital multimeter
  • Wire stripper and side cutters
  • Soldering iron with a fine tip
  • Current-limited bench supply

Use eye protection, good lighting, and a clean insulated surface throughout the build.

03

Safety precautions

  • Disconnect every power source before changing a connection.
  • Check component polarity, pinout, and supply voltage twice.
  • Use a current limit for the first power-up.
  • Keep liquids, loose metal, and uninsulated wires away from the bench.
Ready to continue?
STEP 2 / 6 · Parts library

Gather, identify, and understand every part.

Use the standardized inventory, then open What's this? to learn each part's role, advantages, limitations, handling, and specifications.

NAMED PROJECT INVENTORY5 PART LINES
PARTTYPEQTYREADY
PBridge rectifierPASSIVE1
What's this?Image, role, pros, cons, handling & specifications
Circuit Atlas themed schematic for Digital Frequency Meter Using ArduinoPASSIVE LEARNING VIEW

Bridge rectifier

A passive component sets current, voltage, timing, filtering, or signal behaviour without adding gain.

What it does here

Its exact value and tolerance determine how the surrounding stage behaves.

Buy / compare this part

Advantages

  • Simple and dependable
  • Low cost
  • Easy to measure before installation

Limitations

  • A wrong value can stop or damage the circuit
  • Ratings must not be exceeded
  • Polarized parts require correct orientation

Handling

  • Measure unclear values
  • Observe capacitor polarity
  • Avoid overheating leads while soldering

Specifications to verify

  • Use the exact model, value, package, and rating listed for Bridge rectifier; similar-looking parts are not always interchangeable.
  • Confirm value, tolerance, power or voltage rating, polarity, and package size.
POptocouplerPART1
What's this?Image, role, pros, cons, handling & specifications
Circuit Atlas themed schematic for Digital Frequency Meter Using ArduinoPART LEARNING VIEW

Optocoupler

A named project component whose exact role is defined by the source circuit and build guide.

What it does here

It performs a documented electrical, control, interface, or construction function in this project.

Buy / compare this part

Advantages

  • Selected for this project
  • Can be checked independently
  • Supports modular troubleshooting

Limitations

  • Substitutes may differ
  • Generic names can hide variants
  • Pinouts and ratings vary

Handling

  • Compare the received part with the source
  • Keep it labelled
  • Do not force connectors or adjusters

Specifications to verify

  • Use the exact model, value, package, and rating listed for Optocoupler; similar-looking parts are not always interchangeable.
  • Confirm dimensions, ratings, connection method, polarity, and environmental limits.
MArduino UnoMODULE1
What's this?Image, role, pros, cons, handling & specifications
Circuit Atlas themed schematic for Digital Frequency Meter Using ArduinoMODULE LEARNING VIEW

Arduino Uno

A programmable controller that reads inputs, makes decisions, and drives the project's outputs.

What it does here

It is the control centre and must use the documented board, pin map, supply, and logic level.

Buy / compare this part

Advantages

  • Reprogrammable and reusable
  • Large learning ecosystem
  • Complex behaviour remains changeable

Limitations

  • GPIO voltage and current are limited
  • Some pins affect boot or communication
  • Loads normally need a driver

Handling

  • Disconnect power before rewiring
  • Avoid static discharge
  • Never power motors, relays, or pumps directly from GPIO

Specifications to verify

  • Use the exact model, value, package, and rating listed for Arduino Uno; similar-looking parts are not always interchangeable.
  • Confirm operating voltage, logic level, pinout, memory, USB interface, and maximum GPIO current.
PMAXIMUMPART1
What's this?Image, role, pros, cons, handling & specifications
Circuit Atlas themed schematic for Digital Frequency Meter Using ArduinoPART LEARNING VIEW

MAXIMUM

A named project component whose exact role is defined by the source circuit and build guide.

What it does here

It performs a documented electrical, control, interface, or construction function in this project.

Buy / compare this part

Advantages

  • Selected for this project
  • Can be checked independently
  • Supports modular troubleshooting

Limitations

  • Substitutes may differ
  • Generic names can hide variants
  • Pinouts and ratings vary

Handling

  • Compare the received part with the source
  • Keep it labelled
  • Do not force connectors or adjusters

Specifications to verify

  • Use the exact model, value, package, and rating listed for MAXIMUM; similar-looking parts are not always interchangeable.
  • Confirm dimensions, ratings, connection method, polarity, and environmental limits.
PATMEGA328PPART1
What's this?Image, role, pros, cons, handling & specifications
Circuit Atlas themed schematic for Digital Frequency Meter Using ArduinoPART LEARNING VIEW

ATMEGA328P

A named project component whose exact role is defined by the source circuit and build guide.

What it does here

It performs a documented electrical, control, interface, or construction function in this project.

Buy / compare this part

Advantages

  • Selected for this project
  • Can be checked independently
  • Supports modular troubleshooting

Limitations

  • Substitutes may differ
  • Generic names can hide variants
  • Pinouts and ratings vary

Handling

  • Compare the received part with the source
  • Keep it labelled
  • Do not force connectors or adjusters

Specifications to verify

  • Use the exact model, value, package, and rating listed for ATMEGA328P; similar-looking parts are not always interchangeable.
  • Confirm dimensions, ratings, connection method, polarity, and environmental limits.
Ready to continue?
STEP 4 / 6 · Source code

Confirm the hardware-only control path.

This project does not include firmware in the source. The circuit itself provides the required behaviour.

01

How to connect

  1. Match every controller label to the circuit view and source pin map.
  2. Join grounds before signal wires when separate low-voltage supplies are used.
  3. Keep motors, relays, pumps, and other loads on a suitable driver and external supply.

Common mistakes

Reversed VCC/GND, board-label versus GPIO-number confusion, missing common ground, and charge-only USB cables.

Troubleshoot

Disconnect loads, continuity-test one path at a time, then test with a current limit.

02

Software preparation

No IDE, board package, library, or firmware upload is required for this project.

If you add a programmable controller as an extension, document its pin map separately.

03

How to upload code

The original design is implemented entirely in hardware, so proceed after verifying the circuit and supply.

Ready to continue?
STEP 5 / 6 · Build

Assemble, deploy, test, and troubleshoot.

Use the complete source notes in build order, then pass the final checks before calling the project finished.

ASSEMBLY

Build in functional stages

  • Power and regulation
  • Controller or processing stage
  • Inputs and sensors
  • Outputs and loads
  • Enclosure and strain relief
TEST

Power up safely

  • Inspect unpowered continuity first
  • Apply the lowest safe current limit
  • Measure supply rails before signals
  • Add one load at a time
  • Record expected and actual results
TROUBLESHOOT

Work from simple to complex

  • Confirm power, ground, polarity, and orientation
  • Compare each pin with the source
  • Test inputs separately from outputs
  • Replace only one variable at a time
  • Power off before every correction
PROJECT-SPECIFIC BUILD NOTES

Follow the documented instructions.

These notes come from this project's source and remain in their original order.

01

Project overview

Project build note

This project discusses the creation of a digital frequency meter using Arduino Uno to determine the sinusoidal frequency signal in the range of 20 Hz to 5 kHz. The frequency range covered by the meter is 20 Hz to 5 kHz. In order to follow the reasoning, you will need to count the total number of pulses that occur each second at a digital pin on Arduino. Circuit and the working Fig.1 presents the schematic representation of the digital frequency meter's internal workings. In addition to a few other components, it has an Arduino Uno board, an optocoupler MCT2E (IC1), a 16x2 LCD, and a few more. In accordance with what is depicted in Figure 3, the sinusoidal signal whose frequency is going to be measured is fed into the signal input terminals (CON1). In order for this frequency meter to function properly, the signal being tested must be one that alternates, and its amplitude must not be more than the maximum forward diode current rating of the optocoupler

for a given value of series resistance. (The series resistance that we chose was 1k in this instance.) Fig. 2: Circuit diagram of digital frequency meter The alternating signal is then passed via a bridge rectifier, which transforms it into a completely rectified pulsing direct current signal. On the side of the optocoupler that contains the diode, this pulsating DC signal is applied. This signal has been entirely rectified. The optocoupler is responsible for the production of spikes in the signal. The spikes have a frequency that is twice as high as the test signal input. These spikes are then applied to digital I/O pin 5 of the Arduino, and the program that is running in the CPU of the microcontroller (MCU) then calculates the frequency of the test signal and displays it on the 16x2 LCD as well as on the serial monitor of the personal computer.

02

Major components used in this project are

Project build note

The Arduino Uno is a development board that is based on the AVR ATmega328P MCU and has 14 digital I/O pins in addition to six analogue input pins. The MCU

contains 32 kilobytes of ISP flash memory, 2 kilobytes of RAM, and 1 kilobyte of EEPROM. The capability of serial communication can be achieved on the board through the use of UART, SPI, and I2C. The clock frequency of the MCU is capable of reaching up to 16 MHz. For the purposes of this endeavor, the digital I/O pin 5 of the Arduino Uno board has been repurposed as a pulse input pin, and the digital I/O pins 7, 8, 9, 10, 11, and 12 have been used to connect with the LCD. Bridge rectifier In order to convert the alternating input signal to pulsing DC, the bridge rectifier (BR1) is put into operation. Optocoupler The pulsating DC waveform is fed into the optocoupler so that spikes can be generated from it.

03

16×2 LCD

Project build note

Displaying the frequency on the 16x2 LCD is possible thanks to its size. For the purpose of showing data, it has sixteen columns and two rows. This particular LCD has a backlight built into it. It communicates in 4-bit mode with Arduino, which is its interface. LCD pins RS, EN, D4, D5, D6, and D7 are each linked to the relevant digital I/O pins 12, 11, 7, 8, 9, and 10 on an Arduino. Software Programming an Arduino Uno requires the use of the Arduino IDE. After opening the source code or sketch for the Freq meter 1.ino file in the Arduino IDE, navigate to the Tools menu to choose the COM port and board. The source code should then be uploaded to the board when the appropriate COM port and board have been selected.

Ready to continue?
PROJECT ACHIEVED

You built Digital Frequency Meter Using Arduino.

You followed the full workflow from understanding the mission to testing the finished project. That is a real engineering achievement - well done.

Musical AF/IF checker project thumbnail featuring Transformer, Crystal oscillator
NEXT ELECTRONICS ADVENTURE

Musical AF/IF checker

Ready to reuse what you learned in another project from the same track?

Start this project
Browse all 500 projects