Continue to Site

Welcome to our site!

Electro Tech is an online community (with over 170,000 members) who enjoy talking about and building electronic circuits, projects and gadgets. To participate you need to register. Registration is free. Click here to register now.

  • Welcome to our site! Electro Tech is an online community (with over 170,000 members) who enjoy talking about and building electronic circuits, projects and gadgets. To participate you need to register. Registration is free. Click here to register now.

traffic light controller

Status
Not open for further replies.
A traffic light controller is just a finite state machine. The easiest way to do it is to draw the state diagram and then you can directly convert the state diagram to code for a micro or some vhdl.

For example, the start state is 1 light red, the other green, then go to yellow, then red, then pause, then the other goes green, etc.
 
Something like this?
 

Attachments

  • traffic145f.gif
    traffic145f.gif
    14.3 KB · Views: 3,175
I have Lots more!
 

Attachments

  • trafficlightcontroller.gif
    trafficlightcontroller.gif
    7.5 KB · Views: 2,268
  • traffic_light_seq.gif
    traffic_light_seq.gif
    23.6 KB · Views: 2,346
  • lamploop.gif
    lamploop.gif
    3.7 KB · Views: 2,036
:lol:

This has to be the most popular school project given to people to teach them how to do something of all time.
 
I don't agree.
The Code Practice Oscillator is more popular beginners project.
 

Attachments

  • cpo.gif
    cpo.gif
    5.6 KB · Views: 1,688
As for popular state machine type projects, the three that I see reappear each term are 1) traffic light controller, 2) eleveator controller, 3) soda machine.
 
i wanted to know the traffic light controller FSM state table. i have 8 current state, 4 inputs( RESET, C, TL, TS) , there are the next steps also, and 4 outputs.(each output has R Y G). R is red, Y is yellow, and G is green.
how can i do the K-maps from the outputs?
how about the state diagram?
how about the final ASM chart for the traffic light controller that has 8 current state?
please.....
 
wile were on this subject, ive always wundered about this:

Is there a way to control trafic lights remotely? I see these little things on the top of the light that i think are sensors cuz they have a cover over the top to filter out sunlight im guessing, and i think that there are two sensors, one on top of the other. can ambulances n fire truks control them via IR?
 
hotwaterwizard . . .

i tried sim ur ckt in an elec. workbench . . .it doesnt seem to work

i tried it all . . . it doesnt to work though

i'am trying to build a traffic light controller too . . .

like teh concept of ur design .. . .

and can you explain wat is d function of the DECADE COUNTER

in the ckt? THX !!!
 
zachtheterrible said:
wile were on this subject, ive always wundered about this:

Is there a way to control trafic lights remotely? I see these little things on the top of the light that i think are sensors cuz they have a cover over the top to filter out sunlight im guessing, and i think that there are two sensors, one on top of the other. can ambulances n fire truks control them via IR?

Here in Erie, we have a system like this. There is actually a white light that will flash when it is used to switch the lights so that the drivers know to get the heck out of the way. It's controlled by radio too, there's little antennas sticking out of them
I think IR would be too dificult to use b/c you would have to line up the transmitter and reciever.
I cant remember the name of it, but I was told that some guy here in town invented it? I dunno if it's used everywhere though.


crust said:
As for popular state machine type projects, the three that I see reappear each term are 1) traffic light controller, 2) eleveator controller, 3) soda machine.
I had to do #'s 1 and 3 last year. I wish I woulda known about this message board back then.
 
Traffic Light

Is this a single LED or multiple LED setup? If it is a single LED setup what would it take to make it a multiple LED setup?. What I mean is, is each direction a single LED or multiple LED.
 
Last edited:
traffic light design

hey all;
I need some assistance in designing a 4way traffic light system and ped crossing using a pic16f877. I have already developed the codes for the 4 way lights but i am having trouble with incorporating the ped crossing. Could someone give me some assistance please.
Rawle.

ps. here is what i have.
View attachment Traffic light program.txt
 
Is there a way to control trafic lights remotely?
Everywhere in the USA that I've been they have those sensors. Emergency vehicles have strobes that flash in a particular pattern, and activate the appropriate signal state. Sometimes it's red in all directions, sometimes the emergency vehicle gets a green.

Some systems have to be enabled by a radio signal to prevent the kids from making their own strobes and playing with the signals.
 
Status
Not open for further replies.

Latest threads

Back
Top