Final Project - Traffic light controller using LEDS and 8051 trainer PDF

Title Final Project - Traffic light controller using LEDS and 8051 trainer
Course Introduction to Embedded System Programming
Institution California State University Long Beach
Pages 12
File Size 927.8 KB
File Type PDF
Total Downloads 109
Total Views 148

Summary

Traffic light controller using LEDS and 8051 trainer...


Description

CECS 262 Final Project: A Simple Traffic Light Controller Marc Dominic Cabote 014938597 16 December 2016

The purpose of this project is to review 8051 I/O port programming, hardware timer, and interrupt, learn how to interface LED and character-based LCD, and learn how to design and implement a multi-state embedded system.

Introduction The purpose of this project is to review 8051 I/O port programming, hardware timer, and interrupt, learn how to interface LED and character-based LCD, and learn how to design and implement a multi-state embedded system. Its purpose is to design a simple traffic light controller that simulates the traffic light logic on the streets. The board should be able to simulate traffic lights through green, yellow and red LEDs. It should also display whether the pedestrians are ready to cross and when to finish crossing through another LED indicator. There will also be an LCD display that displays information. Operation At default, the board should simulate what traffic lights do—green on one direction and red on the other, and vice versa. Since the breadboard is rectangular one direction is simulated on the far left and the other direction on the far right. There are four LEDs, the basic traffic lights— green, yellow, red—and the pedestrian LED which notifies whether the pedestrians can cross begin crossing or not. For the pedestrians to be able to cross, the interrupt for the direction which they want to cross should be pressed, and the same goes for the other direction. The pedestrian LED will go high and the LCD displays the time remaining to finish crossing. At the last second the pedestrian LED will begin blinking, notifying us that the pedestrian should finish crossing. Note that the pedestrian LED will only go high when the button is pressed. The LCD will also display, “Drive safely!” and “Drive safely and save a life”.

Schematic

Board Implementation

Software Listing

Conclusion The project itself was pretty straightforward. The errors and problems experienced during the process was mostly from simple code errors—misplaced symbol, wrong declaration, etc. However, thinking about the logic of how it is supposed to work took so much time. But overall, it was very fun and fulfilling to see that the project you are working on actually works. We learned so much about I/O ports, interrupts, and LCDs....


Similar Free PDFs