Pages

10 Nov 2012

Hello friends! In one of my previous post, I wrote on the differences between microcontroller and microprocessors. In this post I want to enter into the application part of microcontrollers. Now a day microcontrollers find their application in almost every electronics applications ranging from remote based toy cars to mobile phones, aircraft, etc.

In this post, I want to share with you, a microcontroller based mini project which I submitted as my assignment in my B.Tech course of “Microcontroller and Its Applications”. As the name of the title says, the topic is “Traffic Lights controller using 8051 microcontroller”.

Though you can find this project in almost every website on microcontrollers, I wanted to share my own program which is much smaller compared to other programs.

The general layout of the traffic lights is shown in the diagram:

Road Junction and Traffic Lights with Pin Name on them (Click to enlarge)

The green colour depicts green LED while red colour depicts red LED. The corresponding pins to which the LEDs are connected are also given beside the colour boxes.

The logic table for this project is shown below: (considering the LED will glow when pin output = 0)

You can watch the demo video of this project in the embedded youtube video:

Caution: Please note that, the program which I created for this program is very trivial one. Even my Professor said that this is not the efficient way of controlling traffic. So I will be working for a more efficient way of controlling traffic in future. So if you plan to submit this as any assignment then, Be careful.