Ask Question, Ask an Expert

+61-413 786 465

info@mywordsolution.com

Ask C/C++ Expert


Home >> C/C++

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.

C/C++, Programming

  • Category:- C/C++
  • Reference No.:- M9357079

Have any Question?


Related Questions in C/C++

Question 1find the minimum and maximum of a list of numbers

Question: 1. Find the Minimum and Maximum of a List of Numbers: 10 points File: find_min_max.cpp Write a program that reads some number of integers from the user and finds the minimum and maximum numbers in this list. Th ...

Why do researcher drop the ewaste and where does it end

Why do researcher drop the ewaste and where does it end up?

Software development fundamentals assignment 1 -details amp

Software Development Fundamentals Assignment 1 - Details & Problems - In this assignment, you are required to answer the short questions, identify error in the code, give output of the code and develop three C# Console P ...

What are the legal requirements with which websites must

What are the legal requirements with which websites must comply in order to meet the needs of persons with disabilities? Why is maximizing accessibility important to everyone?

Assign ment - genetic algorithmin this assignment you will

ASSIGN MENT - GENETIC ALGORITHM In this assignment, you will use your C programming skills to build a simple Genetic Algorithm. DESCRIPTION OF THE PROGRAM - CORE REQUIREMENTS - REQ1: Command-line arguments The user of yo ...

There are several ways to calculate the pulse width of a

There are several ways to calculate the pulse width of a digital input signal. One method is to directly read the input pin and another method (more efficient) is to use a timer and pin change interrupt. Function startTi ...

Assignment word matchingwhats a six-letter word that has an

Assignment: Word Matching What's a six-letter word that has an e as its first, third, and fifth letter? Can you find an anagram of pine grave. Or how about a word that starts and ends with ant (other than ant itself, of ...

1 implement the binary search tree bst in c using the node

1. Implement the Binary Search Tree (BST) in C++, using the Node class template provided below. Please read the provided helper methods in class BST, especially for deleteValue(), make sure you get a fully understanding ...

Project - space race part a console Project - Space Race Part A: Console Implementation

Project - Space Race Part A: Console Implementation INTRODUCTION This assignment aims to give you a real problem-solving experience, similar to what you might encounter in the workplace. You have been hired to complete a ...

  • 4,153,160 Questions Asked
  • 13,132 Experts
  • 2,558,936 Questions Answered

Ask Experts for help!!

Looking for Assignment Help?

Start excelling in your Courses, Get help with Assignment

Write us your full requirement for evaluation and you will receive response within 20 minutes turnaround time.

Ask Now Help with Problems, Get a Best Answer

Why might a bank avoid the use of interest rate swaps even

Why might a bank avoid the use of interest rate swaps, even when the institution is exposed to significant interest rate

Describe the difference between zero coupon bonds and

Describe the difference between zero coupon bonds and coupon bonds. Under what conditions will a coupon bond sell at a p

Compute the present value of an annuity of 880 per year

Compute the present value of an annuity of $ 880 per year for 16 years, given a discount rate of 6 percent per annum. As

Compute the present value of an 1150 payment made in ten

Compute the present value of an $1,150 payment made in ten years when the discount rate is 12 percent. (Do not round int

Compute the present value of an annuity of 699 per year

Compute the present value of an annuity of $ 699 per year for 19 years, given a discount rate of 6 percent per annum. As