Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Need help creating a sketch for arduino Create a Sketch for Arduino board to use the 6 LEDs ( 2 green ones, 2 yellow ones,

Need help creating a sketch for arduino

image text in transcribed

Create a Sketch for Arduino board to use the 6 LEDs ( 2 green ones, 2 yellow ones, and 2 red ones) to create a prototype of traffic lighting for an intersection, with a breadboard and wires to build the circuit. One set of green, yellow, and red LEDs control the traffic along one direction (say Apple Ave), while the other set control the other direction (say Peach St). The working procedure is below: In the beginning, the green light is on for Apple Ave, while red light is on for Peach St; After 10 seconds, the green light changes to Apple Ave, and yellow light is on, while Peach St still has the red light; After 2 seconds, the yellow light is off on Apple Ave, and red light is turned on. Peach St. has the green light; Repeat (1) to (3) but switch Apple Ave with Peach St, back and forth

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image_2

Step: 3

blur-text-image_3

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Understanding Databases Concepts And Practice

Authors: Suzanne W Dietrich

1st Edition

1119827949, 9781119827948

More Books

Students also viewed these Databases questions