A contact-less digital tachometer based on optical sensors
Description: The circuit for the Digital Tachometer/RPM Counter consists of only a few devices. Wire them up according to the following circuit diagram. The PIC used is on a demonstration board, which means the clock, power, and ground pins are already wired up, so they are not included in the schematic. This is the digital tachometer portion of the circuit that will send +5V pulses to the RC2/CCP1 pin of the PIC. The CCP module, specifically the capture module #1 on the PIC, is located at this pin. The standard 16x2 character LCD interface consists of 8 bits of data, along with 3 control signals. Power, ground, and contrast are the last signals to wire up. The PIC sends commands to this 16x2 LCD over the control and data lines, and the LCD responds accordingly. The HD44780 system utilized by this LCD is standardized, and the datasheet is widely available.
The overall theory of how the circuit and microcontroller function to create an RPM counter involves an IR circuit that outputs pulses whenever it is interrupted, commonly referred to as a photo-interruptor circuit. The PIC microcontroller remains in standby mode, waiting for the rising edge of one of these pulses. Upon detection of a rising edge, the PIC interrupts the current software execution and runs a specific subroutine to register the signal change. By tracking the frequency of these changes using a timer, instantaneous RPMs can be estimated, resulting in a digital tachometer. The output signal from the photo-interruptor circuit will produce +5V pulses whose duration is dictated by the time the emitter and detector are interrupted. By calculating the period of time between photo-interrupts, the current RPMs of the system can be estimated. The formula incorporates the current frequency of the system, with a 4 MHz oscillator being used. Since the PIC requires 4 clock cycles to execute one instruction, this value is multiplied by 4. Additionally, the period between photo-interrupts is multiplied by 7, corresponding to the 7 blades of the fan, allowing for the calculation of one full rotation of the fan.
The circuit is designed to provide a reliable and accurate measurement of rotational speed, making it suitable for various applications in automotive, industrial, and hobbyist settings. The integration of the PIC microcontroller enables flexibility and programmability, allowing for potential enhancements such as data logging or integration with other systems. The 16x2 LCD display provides a clear and user-friendly interface for real-time RPM readings, making it an effective tool for monitoring and analysis. Proper attention to wiring and component selection will ensure optimal performance and longevity of the digital tachometer circuit.The circuit for the Digital Tachometer/RPM Counter consists of only a few devices. Wire them up according to the following circuit diagram. The PIC I`m using is on a demonstration board, which means the clock, power and ground pins are already wired up so I didn`t bother to include that on the schematic. This is the digital tachometer portion of circuit that will send +5v pulses to the RC2/CCP1 pin of the pic. The CCP module, specifically the capture module #1 on the PIC is located at this pin. This is the standard 16x2 character LCD and the interface consists of 8 bits of data, with 3 control signals. Power, Ground and Contrast are the last signals to wire up. The PIC sends commands to this 16x2 LCD over the control and data lines and the LCD does what it is told.
The HD44780 system that this LCD uses is standarized and the datasheet is widely available. First, 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).
The PIC microcontroller will stand by waiting to see the rising edge of one of these pulses. Anytime a rising edge is detected the PIC will interrupt the current software and run a special subroutine to take note that the change on the signal occured. Now, if we keep track of how often that change occurs using a timer, we can estimate the instantaneous RPMs, making a digital tachomter!
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. If we know the period of time between photo-interrupts using the theory above, we can now estimate the current RPMs of the system.
The forumla above, shows how. The Fosc is the current frequency of your system. I used a 4 MHz oscillator. Since the PIC takes 4 clock cycles to execute 1 instruction, we have to multiply it by 4. On the bottom, the reason we multiply the period between photo-interrupts by 7 is because the fan I`m using has 7 blades. Period*7 = 1 full rotation of the fan.
A tachometer can be constructed using the TC9400 in frequency-to-voltage (F/V) mode to convert frequency information (RPM) into a linearly proportional voltage. This voltage can then be compared to one of several comparators (in this example, using eight). The corresponding...
The PIC 16F627 microcontroller has been programmed to activate three LEDs when a trigger pushbutton is pressed. Additionally, when a reset pushbutton is pressed, a shutdown sequence is initiated where each LED turns off sequentially with a 5-second delay between...
The diagram illustrates a block diagram for an agenda alarm and agenda thermometer system. It includes one temperature sensor, a real-time clock (RTC), a microcontroller (PIC), an EEPROM, a 7-segment display, and a keyboard. The EEPROM is utilized to expand...
This system is compatible with 4-, 6-, or 8-cylinder automobiles. The timebase generated by IC5 functions as an oscillator that drives counter IC6, which divides the frequency by 6, 4, or 3 for 4-, 6-, or 8-cylinder engines, respectively. Switch...
The tachometer, also known as a revolution counter, is an instrument that measures the speed of rotating machinery, typically expressed in revolutions per minute (RPM). This project involves creating a custom sensor using a light-emitting diode (LED) as a light...
The circuit for the Digital Tachometer/RPM Counter consists of a few components. They should be connected according to the provided circuit diagram. The PIC used is on a demonstration board, meaning the clock, power, and ground pins are already connected,...
This tachometer can be configured for any number of cylinders by connecting the appropriate timing resistor as illustrated. A 500-ohm trim resistor can be utilized for final calibration. Additionally, a protection circuit consisting of a 10-ohm resistor and a Zener...
The circuit includes an optical input circuit (VD, 3DU12), a pulse forming circuit (IC1A, IC1B functioning as a voltage comparator; optical coupler; transistor switching circuit), and a counting and display circuit.
The circuit architecture consists of several key components that work...
miRover. This page details how to use a PIC microcontroller and an H-bridge or an L298 to drive a bipolar stepper motor.
The project involves utilizing a PIC microcontroller to control a bipolar stepper motor, which is commonly used in robotics...
We use cookies to enhance your experience, analyze traffic, and (if you allow) serve personalized ads.
By clicking Accept All, you agree to our use of cookies.
Learn more