NEW
20 Tracks Sound Recorder
SD CARD
SD Card Data Logger
FAT32 Player ATtiny85/45
CH376 USB Picture Frame
SD FAT32 Player PIC12F1822
W25Q64 Flash Recorder
SD Picture Frame
SD FAT32 TFT Display
Doorbell with SD/EEPROM
SD Talking Clock
SD FAT32 Sound Player Recorder
SD Arduino Recorder
Arduino Picture Frame
Projects Without uControlador
CH341 USB to I2C OLED
CH341 USB to 16x2 LCD
CH341 USB to TFT
CH341 USB Input Output
PC Digital I/O
CH341 Analogue to USB
USB MCP3201 ADC
FREQUENCY COUNTER
OLED Counter ATtiny85
AD9833 Waveform Generator
Chrome Browser Counter
Arduino LED MAX7219 Counter
LCD Accurate Counter
OLED Accurate Counter
MilliHertz Counter
PIC Counter For Android
MAX7219 LED Counter
WiFi Frequency Counter
Frequency Generator
OLED Counter PIC12F629
Talking Frequency Counter
TFT Counter PIC16F628A
SSD1331 Counter PIC16F628A
Arduino Counter for PC
OLED Arduino Counter
TFT 10MHz Counter
PC Counter
LED Counter
Scope Screen Counter
LCD 16 x 2 Counter
6MHz Android Counter
NIXIE Android Counter
Bluetooth Counters
USB Counter PIC18F2550
OBD2
OBD2 RPM meter PIC16F876A
OBD2 Android Rev Counter
OBD2 Diagnostic App PIC/Arduino
OSCILLOSCOPE
Logic Analyzer
PIC12F1822 Scope for PC
Arduino Oscilloscope for PC
Arduino OLED Oscilloscope
Android Oscilloscope
TFT Oscilloscope
USB Oscilloscope PIC18F2550
THERMOMETER
Temperature Controller
Thermocouple 1023 Deg
Thermometer For Browser
OLED Thermometer PIC12F629
OLED Room Thermostat
TFT Clock and Thermometer
LED Thermometer
USB Thermometer
Serial Thermometer
USB DS18B20 Sensor
TIMER / CLOCK
Cuckoo Clock
Real Time Clock DS3231
LED TM1637 Timer
OLED Timer Thermometer
TFT Timer Thermometer
LED Timer
LCD Timer
Talking Clock PIC16F628A
Android Talking Clock
WiFi
WiFi, Ethernet
WiFi Thermometer
WiFi ESP8266
USB
IO for Chrome Browser
USB 16x2 LCD
USB TFT display BMP
USB Meter
USB Input-Output
USB Input-Output Android
DATA ACQUISITION, MISCELLANEOUS
Musical Doorbell
Talk to Arduino
HC-SR04 Sensor
OLED Amp Meter
Water Softener
Solar Charger
Music, Birthday Card
Code Lock
RETIRED
Serial Port
LPT Printer Port
SMALL PROJECTS  
List of Projects Technical Tips  

For signal lower than 5V use high speed comperator: eBay

TFT 8MHz FREQUENCY COUNTER PIC16F1827

LCD TFT is digital display at its best, it displays versatile clear picture. The picture is built by entering the address and the color of a pixel or rectangle, so it's simple to use too.
Counter using PIC16F1827 drives the TFT SPI.
Included C code and circuit diagram. The LCD TFT module is a 1.8" 128 X160 pixel and has the driver ST7735
The frequency is displayed by 7 digits with leading zeros removed down to 3 digits. The picture displayed is based on universal text. The period is calculated. When input frequency is less than 1000Hz the period is displayed in us.
The counting is over a period of 1 second, generated by the 8 MHz crystal oscillator increased to 32MHz by the internal PLL. The max counting is 7 digits (8MHz) with resolution of 1Hz. Period of 1 sec is generated by TMR1 and CCP1.

628 

line

TFT FREQUENCY COUNTER PIC16F628A

LCD TFT is digital display at its best, it displays versatile clear picture. The picture is built by entering the address and the color of a pixel or rectangle, so it's simple to use too.
Counter using PIC16F628A drives the TFT with software SPI (slower SPI).
Included C code and circuit diagram. The LCD TFT module is a 1.8" 128 X160 pixel and has the driver ST7735
The frequency is displayed by 7 digits with leading zeros removed down to 3 digits. The picture displayed is based on universal text. The period is calculated. When input frequency is less than 1000Hz the period is displayed in us.
The counting is over a period of 1 second, generated by the 16 MHz crystal oscillator. The max counting is 7 digits (4MHz). I tested the counter at up to 2MHz. Period of 1 sec is generated by TMR1 and CCP1.
Code is for MPLABX v3.10 and compilers XC8 (ver1.45).

You are free to use the circuit diagram and the software with no limitations.

628 tft

line

TFT FREQUENCY COUNTER PIC16F690

LCD TFT is digital display at its best, it displays versatile clear picture. The picture is built by entering the address and the color of a pixel or rectangle, so it's simple to use too.
The TFT is driven by hardware SPI.
Included C code and circuit diagram. The LCD TFT module is a 1.8" 128 X160 pixel and has the driver ST7735
The frequency is displayed by 7 digits with leading zeros removed down to 1 digit. The period is calculated. When input frequency is less than 1000Hz the period is displayed in us.
The counting is over a period of 1 second, generated by the 16 MHz crystal oscillator. The max counting is 7 digits (4MHz). Period of 1 sec is generated by TMR1 and CCP1.
Code is for MPLAB, MPLABX and compilers HI TECH or XC8 (ver1.45).

 

 line

TFT FREQUENCY COUNTER PIC16F876A

LCD TFT is digital display at its best, it displays versatile clear picture. The picture is built by entering the address and the color of a pixel or rectangle, so it's simple to use too.
The TFT is driven by hardware SPI.
Included C code and circuit diagram. The LCD TFT module is a 1.8" 128 X160 pixel and has the driver ST7735
The frequency is displayed by 7 digits with leading zeros removed down to 1 digit. The picture displayed is based on 7 segment. The period is calculated. When input frequency is less than 1000Hz the period is displayed in us.
The counting is over a period of 1 second, generated by the 8 MHz crystal oscillator. The max counting is 7 digits (4MHz). Period of 1 sec is generated by TMR1 and CCP1.
Code is for MPLABX and compiler XC8 (ver1.45).

 

line

OLED FREQUENCY COUNTER FOR ARDUINO

Counter using Arduino Uno or Nano. Included ino file, C file for font, keep the ino file and C file in the same folder. The OLED module is a 0.96" 128 X 64 pixel driven by I2C interface and using SSD1306 driver IC. The OLED display uses low power LEDs and suitable for battery operated frequency counter. Power can be reduced farther by reducing contrast.
The frequency is displayed with leading zeros removed down to 3 digits. The font used is 5x7 pixels universal font. The period is calculated. When input frequency is less than 1000Hz the period is displayed in us.
The counting is over a period of 1 second divided from the 16 MHz crystal oscillator. The max counting is 6MHz (Atmel specs). Period of 1 sec is generated by the 3 internal timers.
Code is mostly in C and includes setting up the timers and counter, font 5x7 and oled initializing (no library for oled needed).

oled oled

line

OLED FREQUENCY COUNTER FOR PIC16F628A

Counter using PIC16F628A. Included C code and circuit diagram. The OLED module is a 0.96" 128 X 64 pixel driven by I2C interface and using SSD1306 driver IC. The OLED display uses low power LEDs and suitable for battery operated frequency counter. Power can be reduced farther by reducing contrast.
PIC16F628A uses software (bit banging) I2C.
The frequency is displayed with leading zeros removed down to 3 digits. The font used is 8x5 pixels universal font. The period is calculated. When input frequency is less than 1000Hz the period is displayed in us.
The counting is over a period of 1 second, divided from the 16 MHz crystal oscillator. The max counting is 7 digits (4MHz). Period of 1 sec is generated by TMR1 and CCP1.
Code is in MPLAB X and compilers  XC8 (ver1.45).

You are free to use the circuit diagram and the software with no limitations.

counter oled

line

OLED FREQUENCY COUNTER FOR PIC16F876A

Counter using PIC16F876A. Included C code and circuit diagram. The OLED module is a 0.96" 128 X 64 pixel driven by I2C interface and using SSD1306 driver IC. The OLED display uses low power LEDs and suitable for battery operated frequency counter. Power can be reduced farther by reducing contrast.
PIC16F876A drives the oled using hardware I2C.
The frequency is displayed with leading zeros removed down to 3 digits. The font used is 8x8 pixels universal font. The period is calculated. When input frequency is less than 1000Hz the period is displayed in us.
The counting is over a period of 1 second, divided from the 16 MHz crystal oscillator. The max counting is 7 digits (4MHz). Period of 1 sec is generated by TMR1 and CCP1.
Code is in MPLAB X and compilers  XC8 (ver1.45).

 oled

Circuit Description
See also Technical Tips

Supply is 5V +/-10%.
Frequency input signal is TTL levels, 5V max.
The TFT module has the driver ic ST7735, The inputs of the ic tolerate 5V, one source is: https://www.ebay.co.uk/itm/1-8-inch
OLED module can be bought from ebay: https://www.ebay.co.uk/itm/0-96-I2C



Write a comment

iconFlag Countermoty22.co.uk  2008-2024