my goole map

Friday, November 8, 2013

Traffic Light Control and Hex Up counter on 7 segment display and LED



 Back to basics on this. Generated a 1Hz clock from a 25.175MHZ Altera UP2 FPGA Board, and then created an up counter that counts from 0 to 15 and outputs this count in Hex, to a 7 segment display every second. This design also controls traffic light for a 4 way intersection. These directions are named East-West lane and North-South lane. A reset input is also implemented such that when push button is pressed both directions will get the stop signal (red light is on while green and yellow lights are off for all direction). After reset traffic control then allows E-W traffic (that is E-W signal is green while North-East is red). When E-W is green, N-S is red and vice versa. Also when any direction is switching from green to red, they will both go through yellow first. Red and green runs for 6 seconds each while yellow runs for 2 seconds. This was built using only combination logic. As mentioned earlier, went back to basics on this one. Also using all red LEDs because that is the only type the Altera board provides. The order of the light goes Green, Yellow, and Red for both directions.

No comments:

Post a Comment