yes,I think this us all a part of this thread
http://forum.allaboutcircuits.com/showthread.php?p=442288#post442288
yes almost correct,Ok, let me get the application straight.
You have a conveyor belt, and 3 proximity sensors at fixed spacing along the belt.
As an item (smaller than the spacing between sensors) moves down the conveyor belt:
When it triggers sensor 1, LED1 will light for the duration the sensor is triggered.
When the item passes sensor 2, LED 2 lights, staying on for the duration the sensor is triggered.
When the item passes sensor 3, LED 3 lights, staying on for the duration the sensor is triggered, however, if there is no trigger from sensor 3 after receiving triggers from sensor1 and sensor2, you want an alarm or other action to take place.
Let me know if the above is roughly correct, the conveyor belt can go at infinite speed, and the items can be as large or small as desired.
What frequency would the sensors in your application be activated at?
Is there a chance that more than one sensor will be activated at the same time?
I didn't understand the picture, so let me know if the analogy above is correct.
input_state = portc; // store the input value
portd |= input_state // set to high the outputs that represent an input that has 1
portd ^= ~input_state; // invert the portd bits when the same bit in input_state is 0 , leaves bits with 1 in input_state unchanged
delay_ms(a);
portd ^= ~input_state; // invert the portd bits when the same bit in input_state is 0
delay_ms(b);
as a manner for conservation of energy in less traffic period , the light glows where there is someoneI'll admit to be confused about the 50% and 100% on street lights.
by Jake Hertz
by Aaron Carman
by Duane Benson
by Duane Benson