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

Discussion in 'The Projects Forum' started by brightjoey, Jun 19, 2010.

  1. brightjoey

    Thread Starter New Member

    Nov 12, 2009
    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

    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.

    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?
  2. retched

    AAC Fanatic!

    Dec 5, 2009
    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.
  3. brightjoey

    Thread Starter New Member

    Nov 12, 2009
    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?
  4. kubeek

    AAC Fanatic!

    Sep 20, 2005
    Just start the two timers by the switch and let them do their job.