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

  C program to calculate power loss in transmission line

Write program in C to calculate the power loss in transmission line with resistance of 0.05 ohms/mile. Calculate power loss if 500 kW of power is transmitted from power generation station

  Uml diagram of all the classes

Speaking of converting into the correct object-type, the goal of the factory is to abstract away object creation.

  Program to translates letter grade into number grade

In C++ (should be able to compile in Visual Studio 2010): Write a program to translates letter grade into number grade. Letter grades are A,B,C,D and F, possibly followed by a + or -.

  C assignment of curl library

C Assignment Curl library must be used To be done on linux, it should be compiled using the following command: gcc -Wall -ansi -pedantic NameOfFile.c -lncurses Please make sure it is commented with clarification Variable names in camel case

  Write c function to sort one dimensional integer array

Consider the values sorted in the array. Sort it in ascending order using Bubble sort technique showing all iterations: write C function to sort one dimensional integer array in ascending order.

  Write program which prompts user to enter numbers

Write down the program which prompts the user to enter numbers, findsout how many positive and negative values have been entered, and calculates sum and average of numbers entered.

  Write c program-visual studio to scan multiple text files

Write program in C or C++ and Visual Studio to scan multiple text files and count number of occurrences of each word in those files. Use binary tree to keep track of all words.

  Implement the guess the word

Implement  the ‘Guess the Word' game in an object-oriented manner

  Write a program to read a data file and extract parameters

Write a C/C++ program to read a data file and extract parameters. The program must obtain the filename via a command-line argument.

  Design class for textbook-data field for grade level of book

Design a class named TextBook that is child class of Book. Include new data field for grade level of book. Create a displayTextBookInfo () method so that you can accommodate new grade-level field.

  Prepare a program that uses at least two functions

Prepare a program that uses at least two functions that can be called from your main.

  Code to implement a staque

Write a C++ code to implement a Staque. Since the data structure is all about inserting and deleting numbers, it would be a good option to use a linked list to implement Staque.

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