I'm working on an automated counting system for work. The basic premise is I would be able to drop a part down a chute, the part will pass through an IR beam, and a counter will increment. But there are times when I'd have to drop two parts down the chute at once. Trying to put this into an easy to use unit is causing a few problems.
I already have a counter and it requires the following signals to increment:
To decrement, the signals are switched.
I've been able to work out a way to generate this signal from a single tripped sensor by using a pair of 555 timers. But, I don't think it's incrementing 100% of the time.
When I drop two parts down the chute, there's no way to ensure the parts don't pass through the beam simultaneously. To correct this problem, I have the first timer set to last ~2 seconds so the second part isn't registered. But now I have to generate two consecutive output signals given a single input. Using my current method I can't see a way to increment twice without adding in two more timers which is just going to drive up the size, complexity, and cost of the circuit.
So I figured there had to be a better way. Is there some IC out there that will take a single input signal from my sensor and generate the output signal I need either once or twice depending on whether a second input signal is in a high or low state?
I already have a counter and it requires the following signals to increment:
Code:
A ¯¯¯|__|¯¯¯¯¯
B ¯¯¯¯¯|__|¯¯¯
I've been able to work out a way to generate this signal from a single tripped sensor by using a pair of 555 timers. But, I don't think it's incrementing 100% of the time.
When I drop two parts down the chute, there's no way to ensure the parts don't pass through the beam simultaneously. To correct this problem, I have the first timer set to last ~2 seconds so the second part isn't registered. But now I have to generate two consecutive output signals given a single input. Using my current method I can't see a way to increment twice without adding in two more timers which is just going to drive up the size, complexity, and cost of the circuit.
So I figured there had to be a better way. Is there some IC out there that will take a single input signal from my sensor and generate the output signal I need either once or twice depending on whether a second input signal is in a high or low state?