Build a traffic light system - microcontroller system

Assignment Help C/C++ Programming
Reference no: EM1391830

Aim

This assignment is designed to apply your knowledge on microcontroller to build a traffic light system. You are asked to solve problems related to software programming, hardware connection scheme, timing diagrams, system testing and evaluation of the whole design.

Mini-Traffic Lights for T-Junction

Your task is to build traffic lights for a T-junction (Fig. 1(a)). The traffic lights you will design are going to be evaluated against the task of controlling the normal flow of cars as well as giving due permission to pedestrians who are waiting to cross the road.

324_Build a traffic light system.png

For this proof-of-concept design, use LEDs (red, amber, green) to represent the red, amber and green traffic lights.

Main functions of the system are described as follows:

When there is no pedestrian:

1) Cars coming from any direction have the same priority levels;

2) When a green light is given to a car, the car can go to any other directions of the T-junction except making a U-turn;

3) The maximum waiting time for any front car is 1 minute;

4) Once lighted, the duration time for the green light is 10 seconds;

5) Change the lighting from red to amber smoothly and vice versa;

6) Change the lighting from amber to green smoothly and vice versa;

7) Green and red lights shall not be on at the same time;

8) Avoid crashes;

9) The red lights for pedestrians shall be on;

When there are pedestrians:

1) Pedestrians might press the button on the puffin crossing (Fig. 1(c)) to indicate that they wish to cross the road;

2) When button pressed, turn on one amber LED on the puffin crossing immediately to indicate the acceptance of the pedestrian's request;

3) If possible, switch on the green light on the puffin crossing to give pedestrians permission to cross the road;

4) Once lighted, the duration time for the green light is 5 seconds;

5) When a green light is on, switch on the buzzer; when the green light is off, switch off the buzzer;

6) For safety reasons, when pedestrians are crossing the road, there shall be no car-traffic.

To start the design, one route is to decompose the project into several steps:

1) Design one RAG (red/amber/green) unit (cars only);

2) Design one puffin crossing unit (pedestrians only) ;

3) Combine one RAG unit and one puffin crossing unit;

4) Build the whole system with 3 RAG units and three puffin crossing units.

To work on this project, one needs a STM32 development board, bread-boards, LEDs, resistors and many jump wires. All materials can be obtained from the store of the school, including video cameras to film your brief demonstration.

You can work on this project by yourself, or you can team up with another student of this module. But you can only have one team and every team can only have 2 members, i.e., you can't have a team with 3 members or more. For every team, there is one team-leader and one member.

If you decide to build a team to work on this mini-project, be careful in selecting your team member. Because you both have to sign an agreement contract (attached) and you two will get the same marks for this assignment, including the main report and the lab demonstration/test.

Reference no: EM1391830

Questions Cloud

Claiming by safety engineer : A safety engineer claims that only 40% of all workers wear safety helmets when they eat lunch at the workplace. Assuming that his claim is right, find the probability that at most 4 out of 6 workers randomly chosen will be wearing their helmets wh..
Production of dna and rna : Purines and pyrimidines play crucial part in cellular energy systems signaling and in the production of DNA and RNA.
Normal distribution of probability : Suppose that the thermometer readings are normally distributed with mean of 0° C and a standard deviation of 1.00° C. A thermometer is randomly selected and tested.
Nitrogen requirements of microorganisms : Discuss similarities and differences of the nitrogen requirements of microorganisms and higher forms of life, describing how their respective requirements are met.
Build a traffic light system - microcontroller system : Build the whole system with 3 RAG units and three puffin crossing units and build a team to work on this mini-project, be careful in selecting your team member.
Mutant whose chromosomes shorten after round of replication : Identify a mutant whose chromosomes shorten after each round of replication. A mutation in which gene would explain this observation?
Empirical rule for statistics students : For the normal distribution curve with mean of 19 and a standard deviation of 6, which range of the variable shows an area under the curve corresponding to a probability of approximately 99.7%?
Explain two sensory changes : Explain two sensory changes that coincide with the emergence of diurnality among primates. Discuss specific brain regions or sensory organs if applicable.
Reasons of developing frequency distribution : Critically discuss the purpose of developing a frequency distribution? What is the relationship between the relative frequency and the cumulative frequency? Could a frequency distribution contain qualitative data? Why?

Reviews

Write a Review

C/C++ Programming Questions & Answers

  Create program that uses functions and reference parameters

Create program that uses functions and reference parameters, and asks user for the outside temperature.

  Write a program using vectors and iterators

Write a program using vectors and iterators that allows a user to maintain a personal list of DVD titles

  Write the code required to analyse and display the data

Calculate and store the average for each row and column. Determine and store the values for the Average Map.

  Write a webservices application

Write a webservices application that does a simple four function calculator

  Iimplement a client-server of the game

Iimplement a client-server version of the rock-paper-scissors-lizard-Spock game.

  Model-view-controller

Explain Model-View-Controller paradigm

  Design a nested program

How many levels of nesting are there in this design?

  Convert celsius temperatures to fahrenheit temperatures

Write a C++ program that converts Celsius Temperatures to Fahrenheit Temperatures.

  Evaluate and output the value in the given base

Write C program that will input two values from the user that are a Value and a Base with which you will evaluate and output the Value in the given Base.

  Design a base class shape with virtual functions

Design a base class shape with virtual functions

  Implementation of classes

Implementation of classes Chart and BarChart. Class barChart chould display a simple textual representation of the data

  Technical paper: memory management

Technical Paper: Memory Management, The intent of this paper is to provide you with an in depth knowledge of how memory is used in executing, your programs and its critical support for applications.

Free Assignment Quote

Assured A++ Grade

Get guaranteed satisfaction & time on delivery in every assignment order you paid with us! We ensure premium quality solution document along with free turntin report!

All rights reserved! Copyrights ©2019-2020 ExpertsMind IT Educational Pvt Ltd