Published: April 7, 2021
favorite1 forum0 poll24
By: Derek Mata, Cal Poly Pomona
Hashtags: #C #Coding #ComputerEngineerng #Design #Electrical #Engineering #MPLABXIDE #PIC18F #Project #Teamwork
Using the PIC18F4620 microcontroller and ST7735_TFT LCD display, I created a traffic light controller simulator. This simulator has Pedestrian crossing, emergency red flashing, and left turn modes. Setting the DIP switches for input on the left turn modes indicates there is a car or multiple cars waiting to turn in a certain direction (east-west to north-south or vice-versa). Pushing the push buttons, seen on the
provided schematic, triggers an interrupt. This interrupt sets the pedestrian crossing mode and indicates safe walking time when it is the appropriate time during the cycle. The mode also clears, like in normal traffic lights, when the pedestrian(s) are done crossing. The flashing red emergency mode is triggered when the push button is presses (seen on the schematic) and stays in this mode until the
button is pressed again. Finally, I use the microcontroller to output the lights to LEDs and the TFT panel.