Frequency Counter With Arduino

7,193

38

8

Introduction: Frequency Counter With Arduino

This is a simple and cheap arduino based frequency Counter cost less than 4$ it been very useful to measure small circuits

Step 1: Parts for the Project

1.adruino uno or nano
2. Jumper cables
3. 16*2 lcd
4. Ic 555
5. 1uf cap

Step 2: Solder Pins to Lcd

Step 3: Connection to Arduino

Follow up the schematic and connect lace and potentiometer to arduino

Step 4: Copy the Same Code to the Adruino Sketch and Upload

#include ,

LiquidCrystal lcd(2, 3, 4, 5, 6, 7);

const int pulsePin = 8; // Input signal connected to Pin 8 of Arduino

int pulseHigh; // Integer variable to capture High time of the incoming pulse

int pulseLow; // Integer variable to capture Low time of the incoming pulse

float pulseTotal; // Float variable to capture Total time of the incoming pulse

float frequency; // Calculated Frequency

void setup() { pinMode(pulsePin,INPUT);

lcd.begin(16, 2);

lcd.setCursor(0,0);

lcd.print("stark labs");

lcd.setCursor(0,1);

lcd.print(" Freq Counter ");

delay(5000); }

void loop() { lcd.setCursor(0,0);

lcd.print("Frequency is ");

lcd.setCursor(0,1);

lcd.print("stark labs ");

pulseHigh = pulseIn(pulsePin,HIGH);

pulseLow = pulseIn(pulsePin,LOW);

pulseTotal = pulseHigh + pulseLow; // Time period of the pulse in microseconds frequency=1000000/pulseTotal; // Frequency in Hertz (Hz)

lcd.setCursor(0,1);

lcd.print(frequency);

lcd.print(" Hz");

delay(500); }

Step 5: Making of Frequency Generator

simple follow this schematic and connect those connections properly many people have problem in that 1uf capacitor will give 800hz-40khz and 101 capacitor will give 50hz-4khz

Step 6: Finalizing the Project

After you make the 2 schematic connect them together as shown in schematic and this is link for demo of the device https://www.youtube.com/watch?v=t25wPzo6lWc

Step 7:

Step 8:

1 Person Made This Project!

Recommendations

  • Trash to Treasure Contest

    Trash to Treasure Contest
  • Home and Garden Contest

    Home and Garden Contest
  • Origami Speed Challenge

    Origami Speed Challenge

8 Comments

0
Der Rabe
Der Rabe

Tip 1 year ago

Pin 15 serially with resistor of 220 Ohms to +, pin 16 to - (ground) for background led is necessary. Otherwise you are seeing - nothing.
Modified program:
#include <LiquidCrystal.h>
LiquidCrystal lcd(2, 3, 4, 5, 6, 7);
const int pulsePin = 8; // Input signal connected to Pin 8 of Arduino
int pulseHigh; // Integer variable to capture High time of the incoming pulse
int pulseLow; // Integer variable to capture Low time of the incoming pulse
float pulseTotal; // Float variable to capture Total time of the incoming pulse
float frequency; // Calculated Frequency
void setup() {
pinMode(pulsePin,INPUT);
lcd.begin(16, 2);
lcd.setCursor(0,0);
lcd.print("stark labs");
lcd.setCursor(0,1);
lcd.print("Freq Counter");
delay(500);
}
void loop() {
lcd.setCursor(0,0);
lcd.print("Frequency is ");
lcd.setCursor(0,1);
lcd.print(" ");
pulseHigh = pulseIn(pulsePin,HIGH);
pulseLow = pulseIn(pulsePin,LOW);
pulseTotal = pulseHigh + pulseLow; // Time period of the pulse in microseconds frequency=1000000/pulseTotal; // Frequency in Hertz (Hz)
frequency=1000000/pulseTotal; // Frequency in Hertz (Hz)
lcd.setCursor(0,1);
lcd.print(frequency);
lcd.print(" Hz ");
delay(200);
}

DSCN0498.JPG
0
Errick27
Errick27

1 year ago

Can i use pro mini instead?

0
NoelA11
NoelA11

Question 1 year ago

would i be able to use a nano for this instead of an uno? and yeah having a downloadable code would be better

0
kiran.bholiyan
kiran.bholiyan

Answer 1 year ago

yeah a nano can be used :)

0
Gelfling6
Gelfling6

4 years ago

I would add the code to be able to be downloaded, In the steps, it's all one solid jumble.

0
kiran.bholiyan
kiran.bholiyan

Reply 4 years ago

thnks for suggestion i will make it change

0
Gelfling6
Gelfling6

Reply 4 years ago

... also seems to be missing the library included... (lcd.h?)