quote:
Originally posted by CookieRevised
small (but dangerous.. for the pedestrians (Smilie)) thingie: the green light for the pedestrians jumps on green the same time the car light jumps on red. There should be a delay between them...
You are right
Well, that's how the book I'm reading wanted me to do it
quote:
Originally posted by CookieRevised
Next exercise with this: add a push button: as soon as the button is pressed a delay happens, then the car lights jump on yellow, then on red and the pedestrians lights go on green (for a shorter time than in a normal sequence)... This will simulate the button pedestrians can use on lights to quickly cross the street.
if you have a infrared diode, you can add that too: only start the pedestrian request for green light when the pedestrian pushes the button and when there is no traffic: if the infrared beam isn't interrupted for, lets say, 5 seconds... (this also teaches the use of logic gates, in this case the AND gate)
Next exercise: add a circuit (can be a rocker switch) which when broken sets car lights on flashing yellow. The switch will simulate a shortcircuit or power failure in the system. eg: traffic lights out of order...
Nice ideas you have.
I should consider them