hello everyone.
Basically, i need to design and implement a circuit for controlling traffic lights at the junction of two main roads.Both roads hav car sensors for detecting cars on the road. :stupido:
the light are changing as follows.
SN = South-North road
EW = East-West road
...........|SN road|
_______|..........|__________
EW road
_______ .......... __________
...........|..........|
...........|..........|
When SN is green, EW change to red
When SN is red, EW change to green.
The car sensors will be the push-buttons on the board. My prof. said i will need to design a debouncing block to debounce the inputs from the push-buttons, some timers and a controller.
Wht i am stuck on is the debouncer, i don't understand what it is used for and how to write the code for it.:hmm2:
Thank you for your time!
please help.... thank you
Basically, i need to design and implement a circuit for controlling traffic lights at the junction of two main roads.Both roads hav car sensors for detecting cars on the road. :stupido:
the light are changing as follows.
SN = South-North road
EW = East-West road
...........|SN road|
_______|..........|__________
EW road
_______ .......... __________
...........|..........|
...........|..........|
When SN is green, EW change to red
When SN is red, EW change to green.
The car sensors will be the push-buttons on the board. My prof. said i will need to design a debouncing block to debounce the inputs from the push-buttons, some timers and a controller.
Wht i am stuck on is the debouncer, i don't understand what it is used for and how to write the code for it.:hmm2:
Thank you for your time!
please help.... thank you
Last edited: