Answered step by step
Verified Expert Solution
Question
1 Approved Answer
Auduino Problem: Please write in Auduino format, thank you in advance. Activity 6 (3 pt. Instructor's initials A crosswalk on a major road is protected
Auduino Problem: Please write in Auduino format, thank you in advance.
Activity 6 (3 pt. Instructor's initials A crosswalk on a major road is protected by a traffic light. The light is usually green for traffic on the road, but if a pedestrian arrives at the crosswalk and presses a button to cross, the traffic light immediately changes to yellow for the cars, stays that way for 5 seconds, then turns red. Once the traffic light turns red, the WALK sign turns green, stays green for 5 seconds, then the red "DON'T WALK" sign flashes once a second for 5 seconds, then turns to solid red, at which point the traffic light for the cars turns green again. Using red, green and yellow LEDs and using any of the digital I/O (Input/Output) pins on the microcontroller, design a traffic light controller that will perform the above job. Notice that you'll need 1 pushbutton and 5 LEDs altogether (3 for the cars, 2 for the pedestrians). Give the I/O pins names that make sense (e.g. byte RedForCars 12). Use a for loop to flash the DON'T WALK light. Demonstrate operation to the instructor, then print your program and sketch the schematics. Activity 6 (3 pt. Instructor's initials A crosswalk on a major road is protected by a traffic light. The light is usually green for traffic on the road, but if a pedestrian arrives at the crosswalk and presses a button to cross, the traffic light immediately changes to yellow for the cars, stays that way for 5 seconds, then turns red. Once the traffic light turns red, the WALK sign turns green, stays green for 5 seconds, then the red "DON'T WALK" sign flashes once a second for 5 seconds, then turns to solid red, at which point the traffic light for the cars turns green again. Using red, green and yellow LEDs and using any of the digital I/O (Input/Output) pins on the microcontroller, design a traffic light controller that will perform the above job. Notice that you'll need 1 pushbutton and 5 LEDs altogether (3 for the cars, 2 for the pedestrians). Give the I/O pins names that make sense (e.g. byte RedForCars 12). Use a for loop to flash the DON'T WALK light. Demonstrate operation to the instructor, then print your program and sketch the schematicsStep by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started