REV Counter

The last project for first year students in my uni was to design and develop a REV counter which could cope with frequencies ranging from 15Hz to 150hz (900 RPM - 9000 RPM) using 8051 micro-controller. This is the project where we had to implement 7 segment display to show the data, and because of my previous experience we not only implemented the 7 segment display but LCD character display as well.

This was an interesting project, it really helped me and my friend understand how to preciselly calculate the time with micro-controller. Technician were kind enough to provide us with LCD display, because we finished in less than a week the asked task smiley. We even could almost measure as low as 0.15 Hz and as high as 10kHz. Anyway, after some studying we wrote our own header file for controlling the LCD character display with custom characters for 8051, You can download it down below. It's not perfect, but it was more than enough for our project, if you find it useful you can use it as you wish, however if you are an egnineering student, I would encourage you to develop this header file on your own, it's not that difficult.

Download: (890.00B)


But to those who just want to use my header, you can set the pins and ports for EN, RW, RS in the header file. To use the library, of course, just include it in your main application, and run the following commands:

LCD Initialziation and write out data:

lcdWrite("This is");

Here is the BIG picture:

Related Articles


  • Chris Sparks

    Chris Sparks in Simple TLS/SSL SMTP client for Qt5 QSslSocket::connectToHostEncrypted: TLS initialization failed

    Edward Martin

    Edward Martin in Introduction to data encryption

    The introduction to the data encryption is very much helpful as you will get to know about the data encryption procedure which might help you to protect the files and folders. You can check the 


    bean in DIY 3D printer, AKA RepRap

    The 3D printer creates the dimensional object and with the features of the 3D printer, it executes the process if need further query then visit fix error code 0xc004f074...

    preter jack

    preter jack in Single Cycle MIPS CPU in VHDL

    Single-cycle CPU is more improved than the normal and usual CPUs and it has a lot of advantages and all you can get from fix


    henrydevid in nRF51 Makefile with Qt Creator

    It is great for all, I have some different tricks if you want to know it then for that I have some different tricks, for that, you want to learn to code. For that, if you want to know it then for that you just visit some tutorial. And from there it is great for all. If you faced any type...

    Steve Rogger

    Steve Rogger in OpenCV on Raspberry Pi

    I have read the post and it is very much helpful because I have got to know about the open cv on the raspberry pi. The images and the screenshots provided here will guide you for your questions. The code you will get here is very unique and can be only used to run OpenCV. If you face any...

    preter jack

    preter jack in Programming micro-controller (Arduino) with cheap HC-06 Bluetooth

    This type of IC Bluetooth offers a lot of advantages and this type of Bluetooth are really very user-friendly and easy to use. It provides many unique features that are all mentioned over the