SlideShare a Scribd company logo
5
Most read
6
Most read
9
Most read
Digital Tachometer
Group members
Muhammad Usman(SP14-BEE-019)
Muhammad Bilal(SP14-BEE-034)
Uzair ul Hassan (SP14-BEE-018)
Waseem Iqbal(SP14-BEE-04)
Orangzaib Yousaf(SP14-BE-110)
 A tachometer is a tool that mechanics or
engineers in general use very often.
 A good example is on cars, you will see a
tachometer counting the RPMs of your engine.
 With the new smaller microcontrollers and
some simple circuitry, it's actually very easy to
build your own digital tachometer. This
tutorial will make use of an infrared diode and
detector to build the digital tachometer/rpm
counter.
 Digital tachometer are classified into following
types
 Contact type
A tachometer that need a physical contact
with rotating shaft.
 Contact less type
A tachometer that does not need any
physical contact with the rotating shaft.
Time measurement:
 It calculate the speed by measuring the time
interval between incoming pulses.
 The resolution of this type is independent of
the speed of measurement.
 It is more accurate for measuring low speed.
Frequency measurement:
 It calculate the speed by measuring the
frequency interval between incoming pulses.
 The resolution of this type is dependent of the
speed of measurement.
 It is more accurate for measuring low speed.
 It has more efficiency.
Digital tachometer using pic18
Digital tachometer using pic18
 Anytime a pulse is detected the PIC will interrupt
the current software and run a special subroutine
to take note that the change on the signal occurred.
Now, if we keep track of how often that change
occurs using a timer, we can estimate the
instantaneous RPMs, making a digital tachometer.
 The actual output signal from the photo-
interruptor portion of the circuit will look similar
to what you see above. The length of the +5 pulses
are determined by how long the emitter and
detector are interrupted.
 PIC 18F452 Microcontroller
 IR Emitter Diode
 IR Detector
 5kΩ,100kΩ Variable resistor
 100Ω Resistor
 16x2 LCD Screen
 Breadboard
 Wires
 Desktop Computer Fan
Variable resistor:
In our project variable resistor are used to control the
contrast of LCD and to adjust the voltage of pulse
generated from the IR sensor.
IR Emitter:
 The IR Emitter device sends an infrared signal just
like any normal LED lights up a room.
 The difference is you won't see any light shinning
from the IR Emitter because our eyes cannot see it.
IR Detector:
 The IR Detector will detect if any infrared light is
being shined at it.
 If IR light shines at the detector, it allows current
to pass through it to ground.
PIC18F452:
Why we don't used the IR sensor instead of LDR.
The reason is that while using the LDR all visible
lights are detected on the LDR and it will may
effect our calculation.
While the IR sensor will only detect Infrared light.
16x4 LCD:
CCP MODULE:
CCP stands for Compare/Capture/PWM
 Capture Mode, allows timing for the duration of
an event. This circuit gives insight into the current
state of a register which constantly changes its
value.
 Compare Mode compares values contained in two
registers at some point. One of them is the timer
TMR1 register.
 PWM – Pulse Width Modulation can generate
signals of varying frequency and duty cycle.
PIC18F452 have 1 CCP and 1 ECCP(Enhanced CCP)
Steps used to program in capture mode for
measuring time period of a pulse.
 In capture/Compare mode TIMER1 or TIMER3 is
used.
 In PWM mode TIMER2 is used.
 For C18 Code of this Project Contact Us on
INSTAGRAM as @electrical_engineers_
Let me explain the overall theory of how the
circuit and microcontroller will work to achieve
our goal of building an rpm counter. The IR
circuit will output pulses whenever it is
interrupted (this type of IR circuit is also known
as a 'photo-interruptor' circuit).
Electrically, the photo-interrupter is two
independent parts - the IR LED, and the photo-
transistor.
Digital tachometer using pic18
 OUT1 will go LOW when the LED light is
detected by IR sensor.
 OUT2 will go HIGH when the LED light is
detected by IR sensor.
Digital tachometer using pic18
 By timing the generated pulse period by the
infra red reflective object sensor we could
easily calculate the RPM using this following
formula:
Frequency = 1/T Hz; T is the generated pulse
period in second.
RPM (Rotation per Minute) = Frequency x 60
 This circuit can be used to calculate speed of
rotating wheels, discs and motor shafts.
 This circuit can be used at places where direct
contact with motor shafts or wheels is not
possible to be made, as in case of vehicles and
also in industrial machines.
 This circuit can be used at homes to check
speed of small battery operated fans and other
motor based devices.
 The main limitation of this project is that IR
sensor for measuring the RPM need to be kept
very close to the moving object.
 Also the IR sensor used in this project have
some limitations of maximum switching
frequency. So we can measure RPMS with in
that limitations.
For C18 Code of this Project Contact us
on INSTAGRAM as
@electrical_engineers_

More Related Content

PPTX
Distance Measurement by Ultrasonic Sensor
PPTX
Automatic gas detection system
DOC
mobile-jammer
PPTX
Fire fighting robot ppt
PPTX
Using 8051 microcontroller based washing machine control ppt
PPTX
Gesture control robot using accelerometer ppt
PPT
Fire Fighting Robot by saurabh
Distance Measurement by Ultrasonic Sensor
Automatic gas detection system
mobile-jammer
Fire fighting robot ppt
Using 8051 microcontroller based washing machine control ppt
Gesture control robot using accelerometer ppt
Fire Fighting Robot by saurabh

What's hot (20)

PDF
Report - Light Sensing Robot
PPS
Arduino Uno Pin Description
PPT
Electronics Projects List for Engineering Students
PPT
Sensors and actuators
PPTX
fire fighting robot
PPTX
ANTI SLEEP ALARM
PPTX
Motor Control Relay, Pwm, DC and Stepper Motors
PPTX
Automatic fire fighting robot
PPTX
Electronics project presentation
PPTX
ppt on inveters
PPTX
Latest Electrical Mini Projects For EEE Students
DOCX
Fire fighting Robot
PPTX
Microcontroller Based LPG Detector Using GSM Module
PPTX
Proximity sensors
PPTX
PIR sensing with arduino
PPTX
Anti sleep alarm for drivers using arduino project
PPTX
PDF
Difference between Sensor & Transducer
PPTX
Movement Sensed Automatic Door Opening System
PPTX
single phase ac voltage controller with RL load
Report - Light Sensing Robot
Arduino Uno Pin Description
Electronics Projects List for Engineering Students
Sensors and actuators
fire fighting robot
ANTI SLEEP ALARM
Motor Control Relay, Pwm, DC and Stepper Motors
Automatic fire fighting robot
Electronics project presentation
ppt on inveters
Latest Electrical Mini Projects For EEE Students
Fire fighting Robot
Microcontroller Based LPG Detector Using GSM Module
Proximity sensors
PIR sensing with arduino
Anti sleep alarm for drivers using arduino project
Difference between Sensor & Transducer
Movement Sensed Automatic Door Opening System
single phase ac voltage controller with RL load
Ad

Viewers also liked (20)

PPTX
Speed measurement, tachometer
PPTX
Tachometer
PDF
Faculty of Engineering & Technology , Gurukula Kangri University , Haridwar
PPT
Tachometer using AT89S52 microcontroller with motor control
DOCX
Vishal project1
PDF
Best Practices for Motion Control: Stepper Motor and Encoder Selection
PDF
Bab1 pengantar konservasi-energi_compatibility_mode_
PDF
Pramod J Resume M.Sc. (Electronics) 3.5 Year Exprience in Hardware Design
PDF
G010123643
PDF
Cat169 pratica 2
PDF
Lm2907 Tacometro
PDF
Tachometer full dial powerpoint presentation slides ppt templates
PPTX
PPT LISTRIK DINAMSI
PPTX
Tachometer
PPTX
Mempersiapkan dan mengoperasikan alat ukur
PPTX
Energy audit training 1
PPTX
Dc tachometer
PPTX
Tachometer
PPT
Bahan kuliah metrologi 1
PDF
Insulation Testing
Speed measurement, tachometer
Tachometer
Faculty of Engineering & Technology , Gurukula Kangri University , Haridwar
Tachometer using AT89S52 microcontroller with motor control
Vishal project1
Best Practices for Motion Control: Stepper Motor and Encoder Selection
Bab1 pengantar konservasi-energi_compatibility_mode_
Pramod J Resume M.Sc. (Electronics) 3.5 Year Exprience in Hardware Design
G010123643
Cat169 pratica 2
Lm2907 Tacometro
Tachometer full dial powerpoint presentation slides ppt templates
PPT LISTRIK DINAMSI
Tachometer
Mempersiapkan dan mengoperasikan alat ukur
Energy audit training 1
Dc tachometer
Tachometer
Bahan kuliah metrologi 1
Insulation Testing
Ad

Similar to Digital tachometer using pic18 (20)

PDF
Digital Tachometer using Aurdino
PPTX
Contactless tachometer
DOCX
IISC CPDM Task 2 Report
PDF
IRJET- Design of a Portable Contact-Less Tachometer using Infrared Sensor for...
PDF
Minor_project.ppt.pdf
PPT
1693579833307_Sensors.ppt
PPTX
Contactless tachometer using 8051 microcontroller2
PPT
Automatic mall elevator
PDF
Deepak
PPTX
04 Arduino Peripheral Interfacing
PDF
Automatic room light controlling Capstone Report
PPTX
Sensors and Peripherals
PPTX
HOME APPLICATION REGULATION USING TV REMOTE
PDF
The Power Saving Low Cost Rotating 8 Led Information Display
DOCX
Design of wireless sensor network for building management systems
PDF
Automatic Door Opener using PIR Sensor
PPTX
Infrared Remote Controlled Devices
PPTX
PPT
EBM.ppt
PPTX
Bidirectional visitor counter
Digital Tachometer using Aurdino
Contactless tachometer
IISC CPDM Task 2 Report
IRJET- Design of a Portable Contact-Less Tachometer using Infrared Sensor for...
Minor_project.ppt.pdf
1693579833307_Sensors.ppt
Contactless tachometer using 8051 microcontroller2
Automatic mall elevator
Deepak
04 Arduino Peripheral Interfacing
Automatic room light controlling Capstone Report
Sensors and Peripherals
HOME APPLICATION REGULATION USING TV REMOTE
The Power Saving Low Cost Rotating 8 Led Information Display
Design of wireless sensor network for building management systems
Automatic Door Opener using PIR Sensor
Infrared Remote Controlled Devices
EBM.ppt
Bidirectional visitor counter

Recently uploaded (20)

PDF
Unit I ESSENTIAL OF DIGITAL MARKETING.pdf
PPTX
Infosys Presentation by1.Riyan Bagwan 2.Samadhan Naiknavare 3.Gaurav Shinde 4...
PDF
The CXO Playbook 2025 – Future-Ready Strategies for C-Suite Leaders Cerebrai...
PPTX
UNIT-1 - COAL BASED THERMAL POWER PLANTS
PDF
BMEC211 - INTRODUCTION TO MECHATRONICS-1.pdf
PPTX
FINAL REVIEW FOR COPD DIANOSIS FOR PULMONARY DISEASE.pptx
PDF
TFEC-4-2020-Design-Guide-for-Timber-Roof-Trusses.pdf
PDF
composite construction of structures.pdf
PPTX
M Tech Sem 1 Civil Engineering Environmental Sciences.pptx
DOCX
ASol_English-Language-Literature-Set-1-27-02-2023-converted.docx
PPT
introduction to datamining and warehousing
PPTX
Internet of Things (IOT) - A guide to understanding
PPTX
Construction Project Organization Group 2.pptx
PPTX
web development for engineering and engineering
PDF
Enhancing Cyber Defense Against Zero-Day Attacks using Ensemble Neural Networks
PPTX
Safety Seminar civil to be ensured for safe working.
PPTX
bas. eng. economics group 4 presentation 1.pptx
PPTX
Sustainable Sites - Green Building Construction
PDF
R24 SURVEYING LAB MANUAL for civil enggi
PPTX
CARTOGRAPHY AND GEOINFORMATION VISUALIZATION chapter1 NPTE (2).pptx
Unit I ESSENTIAL OF DIGITAL MARKETING.pdf
Infosys Presentation by1.Riyan Bagwan 2.Samadhan Naiknavare 3.Gaurav Shinde 4...
The CXO Playbook 2025 – Future-Ready Strategies for C-Suite Leaders Cerebrai...
UNIT-1 - COAL BASED THERMAL POWER PLANTS
BMEC211 - INTRODUCTION TO MECHATRONICS-1.pdf
FINAL REVIEW FOR COPD DIANOSIS FOR PULMONARY DISEASE.pptx
TFEC-4-2020-Design-Guide-for-Timber-Roof-Trusses.pdf
composite construction of structures.pdf
M Tech Sem 1 Civil Engineering Environmental Sciences.pptx
ASol_English-Language-Literature-Set-1-27-02-2023-converted.docx
introduction to datamining and warehousing
Internet of Things (IOT) - A guide to understanding
Construction Project Organization Group 2.pptx
web development for engineering and engineering
Enhancing Cyber Defense Against Zero-Day Attacks using Ensemble Neural Networks
Safety Seminar civil to be ensured for safe working.
bas. eng. economics group 4 presentation 1.pptx
Sustainable Sites - Green Building Construction
R24 SURVEYING LAB MANUAL for civil enggi
CARTOGRAPHY AND GEOINFORMATION VISUALIZATION chapter1 NPTE (2).pptx

Digital tachometer using pic18

  • 2. Group members Muhammad Usman(SP14-BEE-019) Muhammad Bilal(SP14-BEE-034) Uzair ul Hassan (SP14-BEE-018) Waseem Iqbal(SP14-BEE-04) Orangzaib Yousaf(SP14-BE-110)
  • 3.  A tachometer is a tool that mechanics or engineers in general use very often.  A good example is on cars, you will see a tachometer counting the RPMs of your engine.  With the new smaller microcontrollers and some simple circuitry, it's actually very easy to build your own digital tachometer. This tutorial will make use of an infrared diode and detector to build the digital tachometer/rpm counter.
  • 4.  Digital tachometer are classified into following types  Contact type A tachometer that need a physical contact with rotating shaft.  Contact less type A tachometer that does not need any physical contact with the rotating shaft.
  • 5. Time measurement:  It calculate the speed by measuring the time interval between incoming pulses.  The resolution of this type is independent of the speed of measurement.  It is more accurate for measuring low speed.
  • 6. Frequency measurement:  It calculate the speed by measuring the frequency interval between incoming pulses.  The resolution of this type is dependent of the speed of measurement.  It is more accurate for measuring low speed.  It has more efficiency.
  • 9.  Anytime a pulse is detected the PIC will interrupt the current software and run a special subroutine to take note that the change on the signal occurred. Now, if we keep track of how often that change occurs using a timer, we can estimate the instantaneous RPMs, making a digital tachometer.  The actual output signal from the photo- interruptor portion of the circuit will look similar to what you see above. The length of the +5 pulses are determined by how long the emitter and detector are interrupted.
  • 10.  PIC 18F452 Microcontroller  IR Emitter Diode  IR Detector  5kΩ,100kΩ Variable resistor  100Ω Resistor  16x2 LCD Screen  Breadboard  Wires  Desktop Computer Fan
  • 11. Variable resistor: In our project variable resistor are used to control the contrast of LCD and to adjust the voltage of pulse generated from the IR sensor. IR Emitter:  The IR Emitter device sends an infrared signal just like any normal LED lights up a room.  The difference is you won't see any light shinning from the IR Emitter because our eyes cannot see it. IR Detector:  The IR Detector will detect if any infrared light is being shined at it.  If IR light shines at the detector, it allows current to pass through it to ground.
  • 13. Why we don't used the IR sensor instead of LDR. The reason is that while using the LDR all visible lights are detected on the LDR and it will may effect our calculation. While the IR sensor will only detect Infrared light. 16x4 LCD:
  • 14. CCP MODULE: CCP stands for Compare/Capture/PWM  Capture Mode, allows timing for the duration of an event. This circuit gives insight into the current state of a register which constantly changes its value.  Compare Mode compares values contained in two registers at some point. One of them is the timer TMR1 register.  PWM – Pulse Width Modulation can generate signals of varying frequency and duty cycle. PIC18F452 have 1 CCP and 1 ECCP(Enhanced CCP)
  • 15. Steps used to program in capture mode for measuring time period of a pulse.  In capture/Compare mode TIMER1 or TIMER3 is used.  In PWM mode TIMER2 is used.  For C18 Code of this Project Contact Us on INSTAGRAM as @electrical_engineers_
  • 16. Let me explain the overall theory of how the circuit and microcontroller will work to achieve our goal of building an rpm counter. The IR circuit will output pulses whenever it is interrupted (this type of IR circuit is also known as a 'photo-interruptor' circuit). Electrically, the photo-interrupter is two independent parts - the IR LED, and the photo- transistor.
  • 18.  OUT1 will go LOW when the LED light is detected by IR sensor.  OUT2 will go HIGH when the LED light is detected by IR sensor.
  • 20.  By timing the generated pulse period by the infra red reflective object sensor we could easily calculate the RPM using this following formula: Frequency = 1/T Hz; T is the generated pulse period in second. RPM (Rotation per Minute) = Frequency x 60
  • 21.  This circuit can be used to calculate speed of rotating wheels, discs and motor shafts.  This circuit can be used at places where direct contact with motor shafts or wheels is not possible to be made, as in case of vehicles and also in industrial machines.  This circuit can be used at homes to check speed of small battery operated fans and other motor based devices.
  • 22.  The main limitation of this project is that IR sensor for measuring the RPM need to be kept very close to the moving object.  Also the IR sensor used in this project have some limitations of maximum switching frequency. So we can measure RPMS with in that limitations.
  • 23. For C18 Code of this Project Contact us on INSTAGRAM as @electrical_engineers_