Sir Boateng
  • ELECTRONICS
  • TUTORIALS
  • ARDUINO
  • EDUCATION
    • GES Resources
    • NTC Resources
  • APPLIED ELECTRICITY
No Result
View All Result
Sir Boateng
  • ELECTRONICS
  • TUTORIALS
  • ARDUINO
  • EDUCATION
    • GES Resources
    • NTC Resources
  • APPLIED ELECTRICITY
No Result
View All Result
Sir Boateng
No Result
View All Result

Arduino 4-Way Traffic System with Pedestrian button in Proteus

by Sir Boat
24th November 2022
in Arduino Projects, Proteus
1.2k 12
6
4 - way Traffic system using Arduino Uno and Proteus ISIS

4 - way Traffic system using Arduino Uno and Proteus ISIS

1.3k
SHARES
4.2k
VIEWS
Share on FacebookShare on TwitterShare on WhatsApp

This project is about building an Arduino Uno 4-way traffic system with a pedestrian button in Proteus. It can also be implemented easily with real components since the coding is directly done in Arduino IDE before it was exported to Proteus.

Article Navigation

  • Installing Arduino Libraries in Proteus
  • Brief About the 4-Way Arduino Traffic System
  • Getting the required Components and Software
  • Building the 4-way Arduino Traffic System in Proteus.
  • Step 1: Placing the Arduino Traffic System Components.
  • Step 2: Alignment and Orientation of placed components
  • Step 3: Wiring Up the 4-way Arduino Traffic System
  • Step 4: Writing the code and Import them to Proteus
  • Downloading the required files
  • Conclusion

Installing Arduino Libraries in Proteus

Watch this video if this is your first time using the Protest ISIS software.

The video will help you to install all the necessary libraries. These libraries include the popular Arduino Uno, Mega, and Nano boards. You will also get libraries for sensors such as the smoke sensor, Infrared sensor, proximity sensor, and motion sensor to mention but a few.

Also, check this post on how to Control home appliances with voice Using Google Assistant.

The Proteus simulation files, as well as the Arduino sketches, have been provided in this post. You can download and modify it per your preference. However, if you change the Arduino pin connections to the LEDs, you will also need to recompile the Arduino source code from the IDE and re-export the hex file to Proteus ISIS.

If this is your first project with the Arduino development board read the introduction to Arduino programming.

Brief About the 4-Way Arduino Traffic System

Traffic is a major challenge in many cities in the world today. The number of vehicles is gradually increasing day by day all over the world. In many instances, traffic flow is directed by devices such as traffic lights.

Traffic lights have become an integral part of human day-to-day life activities. This article focuses on the construction of an Arduino traffic light system developed and programmed with the Proteus ISIS and Arduino IDE respectively.

This system was designed to control vehicular movement as well as assist pedestrians crossing with an interruptible bush button. The button when pushed will interrupt the normal sequence of the traffic control and thus start the pedestrian crossing cycle for a predetermined period of time. This will, therefore, allow people to cross the road.

The programming platform for the simulation of the Arduino traffic light system was done purely with the Arduino IDE. For this reason, the project can be physically assembled with real components off the shelf.

Getting the required Components and Software

This is a 4-way Arduino traffic system that has a main and a pedestrian lighting circuit. As soon as the pedestrian button is pressed, the program waits till the main process tries to jump to the next state before performing a pedestrian cycle. The components below are needed to build this project.

  • Arduino Uno (I used the Arduino Uno library for Proteus).
  • LED x20 ( I used 8 pieces of the Traffic light module in Proteus).
  • Push Button
  • 10kΩ Resistor
  • 220Ω x20 limiting resistors (Only for those who want to physically design the project, this is because the proteus traffic light module can be used without limiting resistors.)
  • To physically design this project, you will also need a power supply and connecting wires.
SEE ALSO:  Proteus Locking System with Keypad and Pincode

Building the 4-way Arduino Traffic System in Proteus.

Whilst I will be drawing the circuit from scratch, the completed version can be found in the downloadable zip file provided on this page. As a matter of fact, those who are familiar with Proteus and the general circuit design procedures may choose to download and use this ready-made design and move on to the Arduino Programming section.

Furthermore, as I have provided the complete Proteus circuit diagram together with the Arduino code (Sketch), Those who are familiar with both Arduino programming and Proteus can skip this tutorial and download the provided files.

Also, check these related articles:

  • Top 8 Arduino Projects in Proteus with Source Code
  • Arduino Uno Programming for Beginners Part 1
  • Arduino Sensor Libraries for Proteus Simulation (Updated)
  • Proteus 8.11 Latest Version Download For Free
  • Proteus 8.12 Latest Version Download for Free

Step 1: Placing the Arduino Traffic System Components.

The first thing to do is to open proteus, start a new project with default values and place the required components. On the new schematic layout, click on the Component icon and then click on the letter ‘P’ which is located above the Object Selector pane.

Starting a new project for the 4-way Arduino Traffic system
start a new project
keep the default values in the wizard.
keep the default values
4-way traffic system: select the component mode and click on "p"
placing the components

As soon as you click on the “P” button, the Device Library selector window will immediately open. Select the Arduino from the Category pane and double-click on the “Arduino Uno” from the device list space on the right side of the Category pane. This will result in the component name appearing in the Object Selector in the editing window.

4 way Arduino traffic system: Adding the Arduino Uno board
Adding the Arduino Uno board
Arduino Traffic system with pedestrian button: Adding the traffic module
Adding the traffic light module
4 way Arduino traffic system: Adding the push button to the
Adding the push button

Likewise, search for “Traffic” and double-click it in the list panel to be added to the “Object Selector” pane. Again, repeat the steps to add the “Push button” and the “Limiting Resistor” to the Object Selector pane.

Once, you have added the required modules, close the Device Library Selector. Select the Arduino Uno by clicking on it in the Object Selector. Now, move the mouse and click on the Editing Window to place the component on the schematic.

Repeat the step above to place Eight sets of traffic light modules, the push button and the resistor on the schematic.

Step 2: Alignment and Orientation of placed components

You may have noticed that the components aren’t aligned or arranged the way you had wanted it to be. Don’t worry, Proteus was developed with advanced tools that cater for components orientation, moving, and rotation.

To move a component (Module) to a specific place in the schematic window, it is just as easy as selecting the component and dragging it to your preferred place.

Moreover, you can also rotate a component in Proteus. This can be done in two ways. The mouse method or the keyboard shortcut. To rotate a component using the mouse button, select the component and right-click the mouse. Now depending on how you want the component to appear, you may either select “Rotate Clockwise”, “Rotate Anti-Clockwise”, or “Rotate 180 degrees“.

SEE ALSO:  Control home appliances with voice Using Google Assistant

On the other hand, you may also use the keyboard shortcut keys to change the orientation. To rotate in the clockwise direction, select the component or module and press the minus (-) of the numeric key. Likewise, use the plus (+) key to rotate anti-clockwise. Check the image below.

Step 3: Wiring Up the 4-way Arduino Traffic System

Now that you have adjusted the orientation of the modules, it is time we hook up the pins. This can be done in many ways. The easiest way is to use the “Wire Auto-route” option available on the Tool Menu.

With this option enabled, all you have to do is to click on both pins and the software will automatically route around obstacles and find a suitable path to create the connections. You can also link pins with wires, which can be tracked manually from one pin to another.

However, in this 4- way Arduino traffic system project, I used the terminal method of wiring. With the terminal method, you just put terminals (usually selecting the default terminal from the Object Selection pane) on each module’s pins and label them with the same name.

using the terminal for wiring the circuit

The image above shows the traffic light module connected to the “AREF” pin of the Arduino Uno. For the system to work, always remember to use different label names for different links unless they all share a common wire.

For instance, if two pins are connected to pin 12 of the Arduino Uno, you should label them with the same name as shown below. Invisibly, Proteus will automatically link the pins during the simulation.

Multiple connections with the same label.

Step 4: Writing the code and Import them to Proteus

The programming codes (Sketches) for this 4-way Arduino traffic system have been provided at the end of the post. Download the file and unzip it to a folder on your computer.

Now in the Proteus ISIS, double-click on the Arduino Uno and click on the “folder” icon next to the “Program File” textbox.

Loading the Arduino codes

Locate the folder where you have extracted the downloaded files and select the “Hex” file with the filename “traffic_with_pedestrian.ino.standard.hex“. Click on Open, then OK to load the code into the Arduino Uno in Proteus. You can now run the simulation.

Congratulations!, you now have a working Arduino traffic system with a pedestrian button that can be run on Proteus simulation or using real components.

Downloading the required files

Arduino Traffic System with pedestrian buttonDownload

Conclusion

The project works to perfection during the simulation and will work with no doubt when you decide to implement it physically. Check the video below.

For help in building and simulating this Arduino traffic system, or if you have a better idea for improving it, kindly let me know in the comment box below.

Join Our Tech & Edu Forum
Previous Post

Arduino Sensor Libraries for Proteus Simulation (Updated)

Next Post

Instructional Media Summary (3 pages)

Sir Boat

Sir Boat

Boateng Oduro is passionate about learning new technologies and working on them. He is a teacher and an engineer who loves to read, write, and teach. He's always curious about things and very determined to track the latest technologies and the trends for the future.

Comments 6

  1. NEXEA says:
    2 years ago

    WX

    Reply
  2. gumroad says:
    2 years ago

    DD

    Reply
  3. exclusive ann arbor cash only says:
    2 years ago

    CU

    Reply
  4. Angel Investor Defiinition says:
    2 years ago

    UH

    Reply
  5. venture Capital says:
    2 years ago

    QM

    Reply
  6. Angel Investor says:
    2 years ago

    TG

    Reply

Leave a Reply Cancel reply

Your email address will not be published. Required fields are marked *

Recent Posts

A picture of grammarly premium and grammerly free, get grammarly premium cookies for free - grammarly premium cookies daily updates free download - use grammarly premium free.png

How to Get Grammarly Premium Cookies for Free in 2023

23rd March 2023
This picture shows all Category C Schools In Ghana - Best Category C Schools in Ghana along with the regions of the location . jpg

Full List of Category C Schools in Ghana

2nd March 2023
A picture of grammarly premium and grammerly free, get grammarly premium cookies for free - grammarly premium cookies daily updates free download - use grammarly premium free.png

Get grammarly premium for free using Cookies

6th March 2023
How to start a blog and earn money online

How to start a blog and earn money online

2nd March 2023
Samsung Galaxy S23 Ultra 5G: All You Need to Know

Samsung Galaxy S23 Ultra 5G: All You Need to Know

Overview of High School Education in Ghana

Overview of High School Education in Ghana

24th February 2023

Categories

  • Applied Electricity & Electronics (4)
  • Arduino Projects (8)
  • Blogging (4)
  • Business (4)
  • Education (27)
  • Electronics (21)
  • GES Resources (12)
  • NTC Resources (3)
  • Product and Service Reviews (4)
  • Proteus (2)
  • Tutorials (21)
Sir Boateng Online

Sir Boateng Online is a platform for electronics projects, tutorials and educational resources. Aside creating tech tutorials, we also provide GES and NTC resources such as teaching syllabus, lesson notes, scheme of work and NTC trial questions.

Popular Categories

Applied Electricity & Electronics Arduino Projects Blogging Business Education Electronics GES Resources NTC Resources Product and Service Reviews Proteus Tutorials

Stay Connected

  • About Me (Sir Boateng Oduro)
  • Forum
  • Disclaimer
  • Privacy Policy
  • Terms and Conditions

© 2023 Sir Boateng Online - Developed by Lizbotech.

No Result
View All Result
  • ELECTRONICS
  • TUTORIALS
  • ARDUINO
  • EDUCATION
    • GES Resources
    • NTC Resources
  • APPLIED ELECTRICITY

© 2023 Sir Boateng Online - Developed by Lizbotech.

Welcome Back!

Login to your account below

Forgotten Password?

Retrieve your password

Please enter your username or email address to reset your password.

Log In