Question

In: Electrical Engineering

Design an embedded system using MSP430 to control a traffic light system. It is included a...

Design an embedded system using MSP430 to control a traffic light system. It is included a complete design description of a traffic light system to help you in your design. Show the hardware schematics and the software needed to complete your design.

Solutions

Expert Solution

MSP430 Development kit is proposed to smooth the progress of developing and debugging of various designs encompassing of speed 16-bit Microcontrollers. It integrates on board PS2, UART, ADC, PWM, Temperature Sensor, Relay, Buzzer, I2c Seven Segment, I2C Serial EEPROM, Temperature Sensor LM35, Matrix Keypad, Switch, LED, Stepper Motor Driver, Traffic Light Controller, I2C RTC, LCD & GLCD Display to create a stand-alone versatile test platform. User can easily engage in Development in this platform, or use it as reference to application Development.

Traffic Light Control

Traffic lights, which may also be known as stoplights, traffic lamps, traffic signals, signal lights, robots or semaphore, are signaling devices positioned at road intersections, pedestrian crossings and other locations to control competing flows of traffic.

About the colors of Traffic Light Control

Traffic lights alternate the right of way of road users by displaying lights of a standard color (red, yellow/amber, and green), using a universal color code (and a precise sequence to enable comprehension by those who are color blind).

In the typical sequence of colored lights:

Illumination of the green light allows traffic to proceed in the direction denoted,

Illumination of the yellow/amber light denoting, if safe to do so, prepare to stop short of the intersection, and

Illumination of the red signal prohibits any traffic from proceeding.

Usually, the red light contains some orange in its hue, and the green light contains some blue, for the benefit of people with red-green color blindness, and "green" lights in many areas are in fact blue lenses on a yellow light (which together appear green).

Interfacing Traffic Light with MSP430F5529

The Traffic light controller section consists of 12 Nos. point LEDS are arranged by 4Lanes in MSP430F5529 Development Board . Each lane has Go (Green), Listen (Yellow) and Stop (Red) LED is being placed.

C Program to implement Traffic Light using MSP430F5529

Title : Program to read traffic light controller

#include

#include

void DelayMs(int Ms);

unsigned int i;

unsigned int Value[16] = { 0x0001,0x0002,0x0004,0x0008, 0x0010,0x0020,0x0040,0x0080, 0x0100,0x0200,0x0400,0x0800, 0x1000,0x2000,0x4000,0x8000, };

int main(void)

{

WDTCTL = WDTPW + WDTHOLD;

// Stop watchdog timer P1DIR |= 0xFF;

// Set P1.0-P1.7 to Output direction P7DIR |= 0x0F;

// Set P7.0-P7.3 to Output direction while(1)

{ P1OUT = 0x09;

P7OUT = 0x03; DelayMs(8000);

P1OUT = 0x89;

P7OUT = 0x02;

DelayMs(3000);

P1OUT = 0x61;

P7OUT = 0x02;

DelayMs(8000);

P1OUT = 0x51;

P7OUT = 0x02;

DelayMs(3000);

P1OUT = 0x4C;

P7OUT = 0x02;

DelayMs(8000);

P1OUT = 0x4A;

P7OUT = 0x02;

DelayMs(3000);

P1OUT = 0x49;

P7OUT = 0x08;

DelayMs(8000);

P1OUT = 0x49;

P1OUT = 04;

DelayMs(3000);

}

}

void DelayMs(int Ms)

{

int i;

while(Ms>0)

{

for(i=0;i<104;i++);

Ms--;

}

}


Related Solutions

Design an automatic traffic light control signal for a road square using 1MHz internal oscillator of...
Design an automatic traffic light control signal for a road square using 1MHz internal oscillator of PIC16F887. Each traffic light must consist of three (Red, Yellow, Green) lights. Use proteus for implementation. Your code must use four light signals installed on each road connecting to square. in word program form.(text and diagram )
) Design a simple embedded system with PIC16F84A microcontroller (using 20MHz resonator). The system can drive...
) Design a simple embedded system with PIC16F84A microcontroller (using 20MHz resonator). The system can drive a LED light on for 52.6ms on and 26ms off repeatedly. A watchdog timer should be enabled and have a time out period of 72 ms. Sketch the circuit and write the complete assembly program.
design a four way traffic light system. with state diagram, truth table, jk flip flop, kmap...
design a four way traffic light system. with state diagram, truth table, jk flip flop, kmap and final circuit
For design, the daily car, pickup truck, and light van traffic is 20,000; and the daily...
For design, the daily car, pickup truck, and light van traffic is 20,000; and the daily truck traffic consists of 200 passes of single-unit trucks with single and tandem axles, and 410 passes of tractor semi-trailer trucks with single, tandem, and triple axles. The axle weights are :cars, pickups, light vans = two 2000-lb single axles;single-unit trucks = 10,000-lb steering, single axle= 22,000-lb drive, tandem axle and: tractor semi-trailer trucks = 12,000-lb steering, single axle,= 18,000-lb drive, tandem axle,= 50,000-lb...
Design a sequential traffic light controller for the intersection of street A and street B. Each...
Design a sequential traffic light controller for the intersection of street A and street B. Each street has traffic sensors which detect the presence of vehicles approaching or stopped at intersection. Sa=1 means a vehicle is approaching on street A. Sb=1 means a vehicle is approaching on street B. There are 3 outputs of each streets RedA, YellowA and GreenA, RedB, YellowB, and GreenB. Condition: “StreetA” is a main street and has a green light for at least 50s, after...
control system Design a system that will run on a PID process
control system Design a system that will run on a PID process
1. A scientist is interested in whether the design of an air traffic control display affects...
1. A scientist is interested in whether the design of an air traffic control display affects how many airplanes an air traffic controller can manage at once. The scientist evaluates 2 different displays: A low information display (airplanes shown as uniform blips) and a high information display (airplanes shown as different blips depending on aircraft model, and color coded according to speed). The scientist recruits 20 air traffic controllers and randomly assigns 10 to each display condition. The researcher asks,...
Design a Traffic Light that upon reset, turns Red for 10 seconds, then Green for 10...
Design a Traffic Light that upon reset, turns Red for 10 seconds, then Green for 10 seconds, then Yellow for 5 seconds. Assume a CLK period of 5 seconds. Draw the State Transition Diagram, State Transition Table and Output Table, find the Boolean Equations for Next State and Output and draw the logic circuit.
Which of the following types of articles would NOT be included in an embedded review of...
Which of the following types of articles would NOT be included in an embedded review of literature? Theory articles. Methodological articles. Opinion articles. Empirical findings.
-Explain step by step the operation of sequential logic circuit for traffic light ? digital system......
-Explain step by step the operation of sequential logic circuit for traffic light ? digital system... -Analyse the sequential logic circuit operation by using timing diagrams (with sketch for the diagrams) and present the optimization process of the sequential logic circuit. - Propose an enhancement for your design by using different sequential logic circuit. Please explain step by step with cleat hand writing.. Thanks.
ADVERTISEMENT
ADVERTISEMENT
ADVERTISEMENT