Project 2: Ultra Traffic Light Controller Mohammad Mahdi Karimi PhD candidate Electrical and Computer Engineering Department
Traffic Light project description Design RTL Schematic Overview Overview on BASYS 3 FPGA Traffic Light project description Design RTL Schematic Challenges and our Approach Video Demonstration
Project Description In this project we modify the Traffic Light Controller in project 1 to come up with Ultra Traffic Light Controller using the Basys 3 board. Project 2 features : Using the Basys 3 board, design and implement the traffic light described in project 1 Add turn arrows in both directions for road B, as well as one for A south. The turn arrows for road B only turn on if there’s a car present. LCD display show what is currently occurring (i.e. display “Road A Green, Road B Red”) Also, the short and long timer intervals can be modified on the fly. The time intervals are changed via the keyboard or keypad. The color for the traffic lights are to be displayed on the VGA monitor
Traffic Light Controller We designed and implemented the traffic light at a junction of Street A,B and C by using the Finite State Machine described in Exercise 20. Turn arrows is added in both directions for road B, as well as one for A south. The turn arrows for road B only turn on if there’s a car present. Lights on the Basys 3 board are used to demonstrate the sensor outputs and The VGA output to demonstrate traffic lights.
Traffic Light Controller
Design RTL Schematic Our Design contains12 components: Clock to Sec Timer FSM 9 traffic light VGA controller Pmod CLP 7Segment controller 3 Sensors
FSM Design
Challenges How to connect Key Pad to the design to make real time changes in the system configurations? Connecting the 18 pin LCD with Basys3 to display a message which is interpreted by the current state of the FSM controller. How to change the Timer component setting while system is running,
Our Approach We used the TOP module to connect Key Pad with our design. The output of the Keypad will be Decoded with our Decoding block and will be used later to manipulate the system settings. We used 18 pin LCD to display the current state of the FSM controller. We can see what state we are in at any time with the LCD module. (i.e. A St. Turn, B St. & Turn,…) Timer component is now connected with the KeyPad module which controls the TS and TL timing while system is running. It will also display the timer in the available 7 segment display on BASYS3 FPGA.
Experiments: LCD Displays the current State: KeyPad changes the Timer module Settings:
Thank you mmkarimi@aggies.ncat.edu Mohammad Mahdi Karimi PhD candidate Electrical and Computer Engineering Department mmkarimi@aggies.ncat.edu