Scubasteve
New Member
Hey all,
I've been struggling with a relatively simple concept and it has been a big pain. I am making a simple automated system with two optical sensors and a sliding peice.
I want the object to start in one place and once the drive circuitry is enabled for it to travel (linear), it will move until the other end. This end an optical sensor triggers at its presence, and then reverses the motor. Once this gets back to the original spot, I want it to stop until it is triggered again.
I want to keep the parts count as low as possible. I have thought about using some flipflops, but I am concerned about its initial state and it not knowing which direction to turn the motor. The motor's control is actually quite simple, 0 for forward and 1 for reverse on the same pin.
If you could help me out with a solution with under two chips, that would be great!
Steve
I've been struggling with a relatively simple concept and it has been a big pain. I am making a simple automated system with two optical sensors and a sliding peice.
I want the object to start in one place and once the drive circuitry is enabled for it to travel (linear), it will move until the other end. This end an optical sensor triggers at its presence, and then reverses the motor. Once this gets back to the original spot, I want it to stop until it is triggered again.
I want to keep the parts count as low as possible. I have thought about using some flipflops, but I am concerned about its initial state and it not knowing which direction to turn the motor. The motor's control is actually quite simple, 0 for forward and 1 for reverse on the same pin.
If you could help me out with a solution with under two chips, that would be great!
Steve