Design Idea
Missing pulse detects position or produces a delay
A simple logic circuit counts pulses and blocks one of every 36.
Michael C Page, Chelmsford, MA; Edited by Martin Rowe and Fran Granville -- EDN, 9/17/2009
Consider an application that needs a series of pulses to indicate position in which the lack of a pulse "indexes" the count. To achieve that goal, the application uses a rotating, 36-tooth sprocket with one missing tooth. Rotational speed ranges from 500 to 7000 rpm. The mechanism uses an inductive pickup to sense the sprocket's teeth. With one of the sprocket's 36 teeth missing, the detector senses 35 pulses, and then a pulse disappears.
Unfortunately, the mechanism frequently breaks down or simply breaks apart. Because the application uses this wheel just to trick the computer by simulating an operating engine, the application's designers replaced the rotating gear with a simulator circuit (Figure 1). Given the rotational speed and number of teeth, the maximum pulse frequency is 7000/60×36, or 4200 Hz. The circuit works well from single stepping to more than 1 MHz before starting to break down. The maximum frequency depends on the logic family and construction methods you use.
Figure 2 and Figure 3 show the outputs running at 100 Hz and 1 MHz, respectively. At power-up, capacitor C1 remains the same, which forces RST on IC3A low. That action puts the D flip-flop into a known state. As C1 charges through R1, the voltage at the power reset falls, letting clock pulses set IC3A's outputs. You must keep the small value for the C1/R1 combination if you use a high input frequency with a low count rate. As Figure 3 shows, the desired count must exceed the duration of the power reset. The values in Figure 1 provide a time of approximately 0.66×1 kΩ (the value of R1)×1 nF (the value of C1), or 0.66 µsec, leaving a minimum count of approximately three at 1 MHz.
|
For the clock signal, the circuit uses a sine-wave signal with an amplitude of 5 to 10V from the system. The clock signal goes through R3 to D4 and IC1A to produce a 5V square-wave signal. The signal goes to counter IC2 and to one input of AND gate IC4B. With the other input of IC4B coming from IC3A's QN output, which is high from power reset at start-up, the input-pulse train passes through IC4B, which simulates sprocket teeth at the sensor. Resistors R6 and R7 halve the clock-signal amplitude just to make the graphics clear at "signal in." Diodes D1, D2, and D3 pull up to 5V through R2 and form an AND gate to select the desired count. Counter IC2's outputs are binary, so, for a 36-tooth sprocket with one missing tooth, outputs Q0, Q1, and Q5 correspond to 1+2+32=35.
You can produce any count as high as 128 by adding the appropriate diodes on the Q outputs on IC2. In other words, you need to generate one missing pulse of 36 to simulate the 36-tooth sprocket. Thus, you select a count of 35; the circuit automatically adds a count of one due to the one-clock delay of the counter. Because you reset IC2 at power-up, all outputs are low, keeping the D input of IC3A low, with a count of zero.
As clock pulses continue into IC2 and when outputs Q0, Q1, and Q5 are all high, with a count of 35, IC3A's D pin pulls high through R2. On the next clock pulse, the Q output of IC3A goes high and the QN output goes low, stopping the pulses from passing through IC4B. This action indicates the missing tooth and produces the sense condition (the missing pulses in figure 2 and figure 3). Meanwhile, the Q output of IC3A's output goes high, yielding a single detect pulse at IC4C through R4 and R5. On the next clock pulse, with IC3A's Q output high, IC2 resets logic zero and is ready for the next count cycle. R4 and R5 halve the clock signal just to make the graphics clear at "detect."
The 4024 is an eight-stage binary-ripple counter. You can replace it with a 4040 counter to achieve a count of 2048, and you can cascade counters to get longer counts or delays. The 4040's pinout differs from that of the 4024, but their operation is identical. Some systems have an extra tooth instead of a missing tooth, and some have multiple missing teeth at odd locations around the sprocket, all waiting for replacement by this simple circuit.
















