ELECTRONICS PROJECT: Four Way Traffic System Using Microcontroller
In the world today the use of traffic light has been a replacement for the human traffic wardens. The tremendously increased number of vehicles on our roads and the overwhelming army of pedestrians on road sideways call for great concern. The numerous avoidable accidents at junctions be it T-junction, 4-way junction is acknowledged not only by Government but also by the people themselves..Electronic devices, which can do services, round the clock, throughout dry or rainy seasons, winter or summer are called into play this indispensable role.
Traffic lights, also known as traffic signals, traffic lamps, signal lights, and robots, are signalling devices positioned at road intersections, pedestrian crossings and other locations to control competing flows of traffic.
In this electronic work, I will be designing a simple traffic light system for four ways.
Electronic Component Used
CIRCUIT
Resistors 1K
Ceramic Capacitors 0.47UF & 0.1UF
Crystal Oscillator 4MHZ
Leds Green, Yellow And Red (4 Each)
Colour Light Indicators:Green, Yellow And Red (4 Each)
Wires (used as connecting wire)
Microcontroller (PIC16F887)
Battery 9volts Dc Power Supply (But The Circuit Uses 5VOLTS)
Voltage Regulator 5v (Lm7805)
PACKAGING
Plywood
Transparent Rubber 100cm
Trucking Pipe 3cm/2cm Wide
Electrical Pvc 1 Length
Nuts And Bots
Pvc Socket
White Junction Box
Circuit diagram
PS: The power pins in the microcontroller are hidden. So (pins 11 & 12 ) and (pins 31 & 32) are the power pins. Vdd(Positive) =11 and 32)
Vss(Negative/ground)=12 and 31.. So you can use any of the pin selections you like
Connect/ Join the listed components above as shown in the diagram below
How it works
The whole idea about this circuit is in a four way junction, we have two opposite roads. Therefore the first opposite roads will be mobile while the second opposite roads will be on halt. Then after a period of time the process will reverse and vice verse.
Now for the first phase we will have two red lights and two green lights, which indicates STOP and GO. After a delay of about 10000ms to15000ms two orange lights will then join the section where the red lights are turned on, which indicates READY TO GO for a delay of about 5000ms. After which the switch will take place for the next road /phase and vice verse. These process continues in a loop.
Picture of design and simulation on Proteus (Proteus 8 professional)
1st Phase (one)
(two red lights and two green lights)
1st Phase (two)
(Two orange lights joins the two red lights and two green lights)
2nd Phase (one)
(two red lights and two green lights)
2nd Phase (two)
(Two orange lights joins the two red lights and two green lights)
CIRCUIT OPERATION
The operation of the circuit above uses the microcontroller as the main box of the circuit. Dividing the circuit into three parts which will be the input, main unit and the output
The input deals with the power of the circuit, power of 9v flows from the battery and first enters the voltage regulator which regulates the power to 5v then the capacitor smoothens the supply before entering into the microcontroller terminals.
The main unit is the microcontroller where the logical operations take place. The microcontroller is programmed to perform the logical operation first before it is connected to circuit.
The microcontroller was programmed in C programming language the compiled, the Hex file is then transferred into the microcontroller
Then lastly the output which is the light displays (on and off of the designated LEDs) here the display consist of 12 LEDs inserted inside the led indicators.
Questions are welcomed in the comment sections, will reply ASAP
#steem-promo #untalented
Hi @beyondgoogling
I don arrive gidigbamly to seal the deal, with my tiny upvote. @beyondgoogling don ascertain you to get the koko. (Yes, you have been seen and acknowledge by a human, to possess attributes of talent!)
Shey e matter, if periwinkle butt na your thing or whether you drink 'garri and garri' as in, 'soaked garri' and 'dry garri' as support (when there is no kuli kuli). Shey e matter?
Or whether you like your nkwobi in an actual giant-size mortar or you like ogunfe without ewedu. Shey e matter?
Shey e matter if you like to mix your alomo with gulder & shekpe? (Don't get drunk)
#untalented family, there is no longer need to stress. Wetin matter be say:
'Jehovah made you in his image' and these words have weight and occupy space: 'heavy matter'.
So join in, me on the steemgigs community (https://discord.gg/7UUQeJX) on discord. Hang out there, till we get fully functional.
'These are the best times on steemit and its yours'.
If you have an expertise, before the interface is full-blown, hone and offer in under #steemgigs.
If you want to tap into yourself in newer untold ways, express your awesomeness freely under #untalented.
'I tell you, give yourself a chance and see if we will not push and displace mount Kilimanjaro by 20km at 20km/hr' (signed @surpassinggoogle)
We aim to create historical moments in the genre of touching lives and you can support us if you desire, by voting on 'steemgigs' for witness. Simply click here (https://steemit.com/~witnesses) and type 'steemgigs' in the first search box.
Just incase you find any level or form of gifts, talents, attempts at out-of-the-boxness or any steemian low in confidence about their abilities, worth, etc; please don't let it slip emptily by!
Kindly call on me! Simply reply to any such post and add @steem-untalented or '#untalented family' to your reply and i will be there to upvote, acknowledge, strengthen and encourage them.
Learn More! (https://steemit.com/steemit/@surpassinggoogle/steemit-s-untalented-is-in-beta-participate-freely-because-every-participant-in-this-contest-will-win-something-no-losers)
Really amaxing...thanks for the post
Thanks for reading
nice work. upvoted and followed.
this is my blog(please upvote and follow if you like):
https://steemit.com/life/@benainouna/10-reasons-why-plastic-bags-should-be-banned
Nice work
Thanks
@originalworks
The @OriginalWorks bot has determined this post by @beyondgoogling to be original material and upvoted it!
To call @OriginalWorks, simply reply to any post with @originalworks or !originalworks in your message!
Wow!
This is creative, though you make it look as if it is very simple.
Yes. I had to make it look simple so that it will inspire people to wanna try it and be creative. That is the whole idea.
This is really creative... I love circuitry, but know nothing about setting them up. Im impressed with this traffic light project.
Your post has been resteemed to my 3000 followers
Resteem a post for free here
Power Resteem Service - The powerhouse for free resteems, paid resteems, random resteems
Upvote this comment if you like this service