The Complete Beginners Guide to Arduino - 2021 - Blink 3 LEDs - Using Millis

The Complete Beginners Guide to Arduino - 2021 - Blink 3 LEDs - Using Millis

Assessment

Interactive Video

Information Technology (IT), Architecture, Physics, Science

University

Hard

Created by

Quizizz Content

FREE Resource

This tutorial explains how to use the Millis function in Arduino to control the blinking of three LEDs at different intervals without using delay functions. It covers the setup of arrays to store timer and state information, the implementation of a for loop to manage LED states, and the logic behind using Millis to track time intervals. The video also includes a detailed code walkthrough and demonstrates the execution of the program on an Arduino board.

Read more

10 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the primary advantage of using the Millis function over delay in Arduino programming?

It allows for non-blocking code execution.

It is easier to use than delay.

It is faster than delay.

It consumes less memory.

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

How does the Millis function measure time?

In minutes

In milliseconds

In microseconds

In seconds

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What type of data structure is used to store the timing information for LEDs in the Arduino code?

Queue

Array

Stack

Linked list

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the purpose of the 'state' array in the Arduino code?

To store the position of LEDs

To store the brightness of LEDs

To store the on/off state of LEDs

To store the color of LEDs

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

How does the code determine when to change the state of an LED?

By checking the temperature

By using a light sensor

By checking if the current time is greater than the last stored time plus the frequency

By using a random number generator

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What happens when the Millis counter reaches its maximum value?

It causes an error

It starts counting backwards

It stops counting

It resets to zero

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the maximum duration that the Millis counter can measure before resetting?

24 hours

365 days

7 days

49 days

Create a free account and access millions of resources

Create resources
Host any resource
Get auto-graded reports
or continue with
Microsoft
Apple
Others
By signing up, you agree to our Terms of Service & Privacy Policy
Already have an account?