Arduino - Controlling multiple lights

Arduino - Controlling multiple lights

12th Grade

10 Qs

quiz-placeholder

Similar activities

Identidad digital

Identidad digital

12th Grade

7 Qs

Arduino - Intro a la Robótica [HW]

Arduino - Intro a la Robótica [HW]

12th Grade

10 Qs

Checkpoint 2 Assessment 2 - 12G

Checkpoint 2 Assessment 2 - 12G

12th Grade

11 Qs

Blinking LEDs - Escape the Apocalypse

Blinking LEDs - Escape the Apocalypse

9th - 12th Grade

13 Qs

2. LDR Module

2. LDR Module

1st - 12th Grade

10 Qs

Robotica

Robotica

6th - 12th Grade

10 Qs

PICAXE - AXE092

PICAXE - AXE092

8th - 12th Grade

10 Qs

Micro:bit Parts

Micro:bit Parts

9th - 12th Grade

11 Qs

Arduino - Controlling multiple lights

Arduino - Controlling multiple lights

Assessment

Quiz

Computers

12th Grade

Hard

Created by

Roy Nepomuceno

Used 1+ times

FREE Resource

10 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

10 sec • 1 pt

What does the digitalWrite function do?

Initializes a digital pin for input or output.

Toggles the state of an analog pin.

Sets the state of a digital pin to HIGH or LOW.

Reads the value of a digital pin.

Answer explanation

The digitalWrite function is used to set the state of a digital pin to either HIGH (on) or LOW (off). This is essential for controlling digital outputs in microcontroller programming.

2.

MULTIPLE CHOICE QUESTION

10 sec • 1 pt

What are the two possible values that can be used with digitalWrite?

TRUE, FALSE

ON, OFF

ENABLE, DISABLE

HIGH, LOW

Answer explanation

The correct values for digitalWrite in Arduino programming are HIGH and LOW. These represent the two states of a digital pin, where HIGH means the pin is on (5V) and LOW means it is off (0V).

3.

MULTIPLE CHOICE QUESTION

10 sec • 1 pt

What does setting a pin to LOW represent in volts?

5 volts

3.3 volts

1.5 volts

0 volts

4.

MULTIPLE CHOICE QUESTION

10 sec • 1 pt

What voltage does setting a pin to HIGH typically represent on an Arduino Uno?

3.3V

5V

1.5V

12V

5.

MULTIPLE CHOICE QUESTION

20 sec • 1 pt

How would you turn an LED ON using digitalWrite?

digitalWrite(12, HIGH);

digitalWrite(13, OFF);

digitalWrite(13, HIGH);

digitalWrite(13, LOW);

6.

MULTIPLE CHOICE QUESTION

10 sec • 1 pt

What is the syntax for using digitalWrite?

digitalWrite(value, pin);

digitalWrite(pin, value);

writeDigital(pin, value);

setDigital(pin, value);

7.

MULTIPLE CHOICE QUESTION

20 sec • 1 pt

What happens when you set a pin to LOW?

The pin is set to a low voltage level, usually 0 volts.

The pin starts to emit a signal continuously.

The pin is set to a high voltage level, usually 5 volts.

The pin becomes disconnected from the circuit.

Answer explanation

Setting a pin to LOW means it is connected to a low voltage level, typically 0 volts. This is used to indicate an off state or to ground the pin, contrasting with a HIGH state which would be around 5 volts.

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?