State Machine for Railway-Crossing Indicator. I don't get it.

Thread Starter

brightjoey

Joined Nov 12, 2009
14
1st of all I wanna thank you for taking your time to read this post. I know there are many other busy important things that you may have, So once again I want to thank you for giving this thread your attention. :D All of them using LED's as output.

5 outputs
1) Area 1
2) Area 2
3) Area 3
4) Flashing Light
5) Warning Bell

http://imageshack.us
Area 1 & Area 3
Flashing Light and Warning Bell Will be turned on when trains enter from either side.
Flashing light will flash for 3 seconds.
Waring bell will turn on for 5 seconds.
Area 1 or Area 3 lights up depending on wher the train is.

Area 2.
Area 2 light on.

No Train
All outputs are off.

Tips
Use counters to keep track of time for flashing light and warning bell.


Haha I still don't understand. Is there any reading material on where to begin?
 

retched

Joined Dec 5, 2009
5,207
How are you sensing the train?

Are you using a microswitch, or hall effect sensor? Even a light-beam-break sensor?

After you get the input from the switch, you can signal the flasher / alarm circuit.

Break down the problem.

Get yourself a circuit that will flash your LEDs for 3 seconds and your audio alarm for 5 seconds.

Once done, use your triggering switch to activate it.
 

Thread Starter

brightjoey

Joined Nov 12, 2009
14
I'll be using normal switches to represent the sensors. The problem is How do I design my circuit so that when 1 switch is on, the flashing light and warning bell will flash 3 sec and 5 sec respectively?
 
Top