Frequency Counter With Arduino

by kiran.bholiyan in Circuits > Arduino

8441 Views, 37 Favorites, 0 Comments

Frequency Counter With Arduino

IMG_E1397[1].JPG

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

Parts for the Project

8D67ECE3-C5FF-4742-B3BF-643836666456.jpeg
1.adruino uno or nano
2. Jumper cables
3. 16*2 lcd
4. Ic 555
5. 1uf cap

Solder Pins to Lcd

A487B2C5-CCCB-4D33-A971-81F96DBA5228.jpeg
7D724EA3-6A24-4813-ABFE-ABDC11404FB5.jpeg

Connection to Arduino

69F3B0F0-4ED3-4BC2-B940-AC93C88D3881.jpeg
Follow up the schematic and connect lace and potentiometer to arduino

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); }

Downloads

Making of Frequency Generator

IMG_E1380[1].JPG

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

Finalizing the Project

IMG_E1398[1].JPG
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