## 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 . 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.

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:

initdisp();
lcdClear();
lcdWrite("This is");
goLine2();
lcdWrite("SPARTA!!");

Here is the BIG picture:

### Related Articles

• #### Implementing pulse oximeter using MAX30100

Mar 8, 2017 | by Raivis Strogonovs
• #### nRF51 Makefile with Qt Creator

Jun 4, 2016 | by Raivis Strogonovs
• #### USART, FreeRTOS and C++ on nRF51

Dec 14, 2015 | by Raivis Strogonovs
• #### Starting with nRF51 BLE and Qt Creator

Dec 12, 2015 | by Raivis Strogonovs
• #### Touch gesture recognition using body capacitance

Nov 29, 2014 | by Raivis Strogonovs
• #### Introduction to data encryption

Oct 4, 2014 | by Raivis Strogonovs
• #### MEMS (Part 2) – Guide to using gyroscope L3G4200D

Jun 17, 2014 | by Raivis Strogonovs

#### Jessica Roggers in Implementing pulse oximeter using MAX30100

Small portable size makes it easy to handle and carry. Helpful for athletes and pilots to obtain quick and precise oxygen saturation...

#### James J in Simple library for driving 20x4 LCD with 4bits

Very good writeup. I thought had been fighting my code for a week or two and confirmed what I was dooing was right. This overview is the best I have seen for doing the code. You may wish to add one thing though that I have found on another website. Urge people to check the contrast dial on...

#### Chris Sparks in Simple TLS/SSL SMTP client for Qt5

qt.network.ssl: QSslSocket::connectToHostEncrypted: TLS initialization failed

#### 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...