Mirko Pavleski
Published © GPL3+

DIY 6.5MHz Frequency Meter with MAX7219 7-Segment LED Module

A very simple but useful device for your lab.

BeginnerFull instructions provided10,268
DIY 6.5MHz Frequency Meter with MAX7219 7-Segment LED Module

Things used in this project

Hardware components

Arduino Nano R3
Arduino Nano R3
×1
Max 7219 8 digit 7 Segmend Led module
×1
General Purpose Transistor NPN
General Purpose Transistor NPN
×1
1N4148 – General Purpose Fast Switching
1N4148 – General Purpose Fast Switching
×3
4 resistors
×1
Capacitors
×1

Software apps and online services

Arduino IDE
Arduino IDE

Hand tools and fabrication machines

Soldering iron (generic)
Soldering iron (generic)

Story

Read more

Schematics

Schematic

Code

Arduino Code

C/C++
#include <LedControl.h>//https://github.com/wayoda/LedControl/archive/master.zip
#include <FreqCount.h>//https://github.com/PaulStoffregen/FreqCount/archive/master.zip
LedControl lc = LedControl(12,11,10,1);// DIN(12), CLK(11), CS(10)

unsigned long f;
byte fq[7],pd=false;

void setup() {
  lc.shutdown(0, false);
  FreqCount.begin(1000);
  lc.clearDisplay(0); 
  lc.setIntensity(0,8); 
}

void loop() {
  if (FreqCount.available()) {f = FreqCount.read(); }
  lc.setRow(0,7,0x47);
  fq[6]= f/1000000%10;
  fq[5]= f/100000%10;
  fq[4]= f/10000%10;
  fq[3]= f/1000%10;
  fq[2]= f/100%10;
  fq[1]= f/10%10;
  fq[0]= f%10%10;
  for(int i = 0;i < 7;i++){
  lc.setDigit(0,i,fq[i],pd);
  }
}

Credits

Mirko Pavleski

Mirko Pavleski

149 projects • 1283 followers

Comments