Search Header Logo
The Complete Beginners Guide to Arduino - 2021 - Interactive Traffic Lights

The Complete Beginners Guide to Arduino - 2021 - Interactive Traffic Lights

Assessment

Interactive Video

Information Technology (IT), Architecture

University

Practice Problem

Hard

Created by

Wayground Content

FREE Resource

This tutorial explains how to make a traffic light simulation interactive by adding a button. It covers wiring the button to an Arduino Nano, modifying the code to include a button press detection, and using a while loop to control the traffic light sequence. The tutorial ensures that the traffic light system allows vehicles to move and pedestrians to cross safely, with a delay to prevent constant button pressing.

Read more

4 questions

Show all answers

1.

OPEN ENDED QUESTION

3 mins • 1 pt

How does the code handle the state of the button during the main loop?

Evaluate responses using AI:

OFF

2.

OPEN ENDED QUESTION

3 mins • 1 pt

What is the initial state of the traffic lights before the button is pressed?

Evaluate responses using AI:

OFF

3.

OPEN ENDED QUESTION

3 mins • 1 pt

What happens if the button is pressed repeatedly before the 10-second delay is over?

Evaluate responses using AI:

OFF

4.

OPEN ENDED QUESTION

3 mins • 1 pt

Summarize how the traffic light sequence is changed to be interactive.

Evaluate responses using AI:

OFF

Access all questions and much more by creating a free account

Create resources

Host any resource

Get auto-graded reports

Google

Continue with Google

Email

Continue with Email

Classlink

Continue with Classlink

Clever

Continue with Clever

or continue with

Microsoft

Microsoft

Apple

Apple

Others

Others

Already have an account?