contactless tachometer circuit with code

Contactless tachometer using pic microcontrollerContactless digital tachometer project is designed to measure speed of dc motor using PIC18F46K22 microcontroller. As we already posted an articles on how to control speed of dc motor using pic microcontroller. But to measure speed of dc motor, we have to measure motors revolutions per minutes. There are many digital tachometers available in market. But all these tachometers are not contactless. By contactless means, they have physical contact with motor. But in this project, we have designed a tachometer which has no physical contact with motor.

So let’s start with definition of tachometer. Tachometer is an electrical device which is used to measure speed of rotating machines with the help of analog or digital electronics. But digital electronics is more popular. Digital displays are among the most widely used displays for displaying different parameters. So we will be using digital liquid crystal display to show speed measured by digital tachometer.

Contactless tachometer main components

Followings are the major components of contactless digital tachometer using pic microcontroller:

LCD: Liquid crystal display is used to display speed measured by tachometer. So if you want to make this project. You should know how to interface LCD with pic microcontroller.

PIC18F46K22 microcontroller: This microcontroller is a heart of this project which performs all calculations to measure speed and display measured on LCD. It is also used to drive dc motor by applying Pulse width modulation to transistor which is used to as a switch and it is used to drive dc motor.we have used external oscillator with pic microcontroller.

Optical infrared sensor: optical infrared sensor is used as a contactless sensor used in this digital tachometer. Infrared light emitter diode emits the infrared light and photo diode absorbs infrared light. So in this project Infrared light emitted by infrared light emitter diode and photo diode is used a optical sensor to measure speed. I will explain its working in later of this article.

Contactless tachometer block diagram

Block diagram of contactless digital tachometer is shown below. All the components used in this dc motor speed measurement are explained above.

READ  Stepper Motor Speed Control with PIC18F4550

Contactless tachometer block diagram

Contactless tachometer working

As I discussed earlier there is no physical contact between in and optical sensor. Optical sensor consists of infrared light emitting diode and photo diode. As shown in figure below, both diodes are in front each other. When light emitted by infrared light emitting diode falls on photo diode, output of optical sensor remains zero. But when no light falls on photo diode, output of optical sensor becomes high. So we contact a piece of black small paper with motor shaft. When this paper comes between infrared light emitting diode and photo diode, output become high otherwise output remains zero. So we will get pulse on every revolution of motor.

Contactless tachometer working

As shown in above diagram whenever black piece of paper comes between photo diode and infrared diode, no light falls on photo diode and we get high pulse at the output of optical sensor otherwise output remains zero. so we get pulse once per revolution of motor.

so we need to measure these pulses to measure speed of dc motor or any rotating machine. To measure pulses we have used timer zero of pic18f46k22 microcontroller as a counter. when we use timer as a counter, counter increment on very positive or negative edge of pulse. we can configure it in any direction. For example we are using counter to increment on positive edge. So we will get one positive edge once per revolution of dc motor. So the number of times counter counts in one second is equal to speed of dc motor in revolution per second. We can convert it into minutes by multiplying it with 60. So this is a easy way to design contactless tachometer using pic microcontroller.


Read more: contactless tachometer circuit with code

Current Project / Post can also be found using:

  • bldc motor speed control flowchart using pic microcontroller
  • minutes per revolution pic microcontroller
  • pic based ecm controller

Leave a Comment

= 4 + 8

Read previous post:
P4M-400 Build powerful IoT applications with PHP using PHPoC
P4M-400: Build powerful IoT applications with PHP using PHPoC

PHP which stands for Hypertext Preprocessor is one of those server-side programming languages that is widely used across web-related applications. PHP...

Scroll to top