Tachometer using arduino

Summary of Tachometer using arduino


This article describes a contactless digital tachometer project using an Arduino to measure the RPM of a motor. The system uses a photo transistor connected to Arduino's interrupt pin to count rotations by detecting rising edges in the signal. The Arduino calculates the time elapsed using the millis() function and computes RPM, which is displayed on a 16×2 LCD. Additionally, the circuit can control the motor speed, providing an integrated solution for RPM measurement and control.

Parts used in the Contactless Digital Tachometer using Arduino:

  • Arduino Board
  • Photo transistor
  • 16×2 LCD Display
  • Motor
  • Connecting wires
  • Power supply

Tachometer is a device used for measuring the number of revolutions of an object in a given interval of time. Usually it is expressed in revolutions per minute or RPM. Earlier tachometers purely mechanical where the revolution is transferred to the tachometer through mechanical coupling (cable or shaft) , the rpm is determined using a gear mechanism and it is displayed on a dial. With the advent of modern electronics, the tachometers have changed a lot. This article is about a contactless digital tachometer using Arduino. The speed of the motor can be also controlled using the same circuit. The RPM and all the other information’s are displayed on a 16×2 LCD screen. The circuit diagram of the digital tachometer using Arduino is shown below.

tachometer-waveform

Counting the RPM.

Arduino is used for counting the RPM and displaying it on the LCD screen. Emitter of the photo transistor is connected to the Interrupt 0 (digital pin 2) of the Arduino. The Arduino interrupt is configured to be rising edge triggered. As a result the will be an interrupt for every upward shoot in the emitter waveform. The number of interrupts occurred in a given time is counted by incrementing a variable using the interrupt service routine.

tachometer-using-arduino

The time elapsed during the counting cycle is determined using the millis() function. The millis() function returns the number of milli seconds passed since the Arduino board is switched ON. Calling the millis() function before and after the counting cycle and the taking their difference gives the times passed during the counting cycle. The (number of interrupts/time in milliseconds)*60000 will give the revolutions per minute (RPM).

Read More: Tachometer using Arduino

 


About The Author

Ibrar Ayyub

I am an experienced technical writer holding a Master's degree in computer science from BZU Multan, Pakistan University. With a background spanning various industries, particularly in home automation and engineering, I have honed my skills in crafting clear and concise content. Proficient in leveraging infographics and diagrams, I strive to simplify complex concepts for readers. My strength lies in thorough research and presenting information in a structured and logical format.

Follow Us:
LinkedinTwitter

Leave a Comment

Your email address will not be published. Required fields are marked *

Scroll to Top