steve_locher25
- Mar 16, 2010
- 5
- Joined
- Mar 16, 2010
- Messages
- 5
Using IR LED piped through fiberoptic, into another fiber optic spaced about 5/8" away. This is seen by a photo transistor whose output is squared up with a schmitt trigger.
There are 2 of these, becoming A and B inputs for a quadrature decoder which then pumps an up/down counter with dual clock inputs and overflows into another counter (second stage).
I built two of these assemblies as described above and put one on the left, and one on the right, say 4 feet apart. My purpose was to count how many of something exists between the two, but most importantly, when nothing exists. That is, it sees how many step in, and doesn't give the "all clear" until it sees that many step back out in either direction, or combination of directions.
Left counter <---Down Up ---> Right counter <--- Up Down--->
The counter's outputs were added together with a full adder. The adder's ouput was NORed (if I can make up a word), so that "all clear" or empty = H, anything else = L which means there's still something in there.
This works as long as the maximum number of items in between the two does not exceed the maximum count + 1 (because they physically won't fit in between).
Thus, say moving from left to right, 54 step in.
54 + 00 = 54 (the right counter still says 00 because nothing passed the sensor yet)
If it stops and leaves the way it came in, the counter just counts back down to 00, but if it continues all the way through then.....
54 + 46 = 00 (the right counter counted down 54 from 00)
ignore the hundred's digit (carry from full adder), NOR the 1's and 10's and your back to 00....All Clear.
Problem........
I built 4 of these in series to keep track of the location of whatever was moving. I would love to build dozens, but, the 4 I built was drawing .35 Amp, being run off my homemade 5 volt 1 Amp regulated power supply.
Have tried 74HC192, with obsolete CD4560 Full Adder and 74HC193 with 74LS283 Full Adder.
Questions:
1) redesign entire circuit and use different CMOS IC's, to bring current down?
2) consider dropping one side and just have 1 counter instead of 2 counters added together. I came up with a logic circuit that would let both quadrature decoders drive the same counter at the same time even during simultaneous multiple inputs going in any direction. The idea was to get rid of as many gates as possible to try to bring down the total current draw.
your thoughts?
Steve
There are 2 of these, becoming A and B inputs for a quadrature decoder which then pumps an up/down counter with dual clock inputs and overflows into another counter (second stage).
I built two of these assemblies as described above and put one on the left, and one on the right, say 4 feet apart. My purpose was to count how many of something exists between the two, but most importantly, when nothing exists. That is, it sees how many step in, and doesn't give the "all clear" until it sees that many step back out in either direction, or combination of directions.
Left counter <---Down Up ---> Right counter <--- Up Down--->
The counter's outputs were added together with a full adder. The adder's ouput was NORed (if I can make up a word), so that "all clear" or empty = H, anything else = L which means there's still something in there.
This works as long as the maximum number of items in between the two does not exceed the maximum count + 1 (because they physically won't fit in between).
Thus, say moving from left to right, 54 step in.
54 + 00 = 54 (the right counter still says 00 because nothing passed the sensor yet)
If it stops and leaves the way it came in, the counter just counts back down to 00, but if it continues all the way through then.....
54 + 46 = 00 (the right counter counted down 54 from 00)
ignore the hundred's digit (carry from full adder), NOR the 1's and 10's and your back to 00....All Clear.
Problem........
I built 4 of these in series to keep track of the location of whatever was moving. I would love to build dozens, but, the 4 I built was drawing .35 Amp, being run off my homemade 5 volt 1 Amp regulated power supply.
Have tried 74HC192, with obsolete CD4560 Full Adder and 74HC193 with 74LS283 Full Adder.
Questions:
1) redesign entire circuit and use different CMOS IC's, to bring current down?
2) consider dropping one side and just have 1 counter instead of 2 counters added together. I came up with a logic circuit that would let both quadrature decoders drive the same counter at the same time even during simultaneous multiple inputs going in any direction. The idea was to get rid of as many gates as possible to try to bring down the total current draw.
your thoughts?
Steve