Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Write BoneScript firmware to emulate a traffic light controller. You need three LEDs (red, yellow and green) for the traffic light, a 7-segment LED display

Write BoneScript firmware to emulate a traffic light controller. You need three LEDs (red, yellow and green) for the traffic light, a 7-segment LED display for the pedestrian signal light and a pushbutton. Construct the circuit on a breadboard and run your program using Cloud9. The correct sequence for traffic lights should be correctly emulated: RED GREEN YELLOW RED. Each LED should remain on for approximately 1 second. The pedestrian signal light should be off. If the pushbutton is pressed, then the following rules must be followed: Wait until Traffic Light == RED Traffic Light must stay RED Pedestrian Light counts down from 9 to 0 every second. It turns off after reaching 0. Wait for 1 second. Traffic Light = GREEN (normal sequence resumes) Need the button pushing code, to stop the red light for the pedestrian crosswalk for 9 seconds.

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

Step: 3

blur-text-image

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

Introduction To Managerial Accounting

Authors: Jeannie Folk, Ray Garrison, Eric Noree

1st Edition

0072468440, 978-0072468441

More Books

Students also viewed these Accounting questions

Question

3. To demonstrate the use of direct-marketing media.

Answered: 1 week ago

Question

What is an interval estimator?

Answered: 1 week ago