Question: 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) To help you structure the project, it is split into 3 parts with increasing complexity and a report. Show the functionality of each part to the instructor to receive the points indicated. However, you may skip parts 1 & 2 and go directly to part 3. If part 3 works, the points you receive will include those for parts 1 and 2. Part 1 [50 points]: correct sequence of the traffic light LEDs changing colors every second: RED GREEN YELLOW RED ... Part 2 [25 points]: part 1 AND 7-segment display counting down every second if the pushbutton is pressed: 9, 8, 7, ...,0, off. Part 3 [20 points]: full functionality as described above. Report [5 points]: see below. To make it easier to debug, feel free to include console.log in many places in your code to display messages on the console. The report is an individual report and should contain sufficient description for anyone to reproduce your design from scratch. Describe what has been implemented. You cannot write about what you have not implemented. Flow chart of the code BoneScript code Complete schematic diagram

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!