Wayground logo

Free Printable Worksheets

Font size

S
M
L
XL
Worksheets

Arduino Lesson 5 Starter

Total questions: 12

Worksheet time: 17mins

Name
Class
Date
1.

digitalWrite (LED1, HIGH);

delay(1000);

digitalWrite (LED1, LOW);

What does the program do?

a)

LED Switch Off at the beginning, wait for 60s and then switch ON.

b)

LED Switch ON at the beginning, wait for 10s and then Switch OFF.

c)

LED Switch ON at the beginning, wait for 1s and then switch ON.

d)

LED Switch ON at the beginning, wait for 1s and then switch OFF.

2.

What is the correct pinMode setup code for this circuit?

a)

pinMode(12, OUTPUT);

b)

pinMode(8, INPUT);

c)

pinMode(8, OUTPUT);

d)

pinMode(7, INPUT);

3.

Create the code for the following:
Create a variable that will store whole numbers to track the the position of a potentiometer, start with it storing the number 0.

4 lines
4.

Create a variable using the options below:
​ (a)   ​ (b)   =​ 22

Choose from the below words
INT
tempMon
STR
VAR
MONITOR
5.

Using the void setup provided to you, write the code for creating Cyan (Blue+Green) on an RGB LED

4 lines
6.

Will this circuit, if coded correctly, function properly.

a)

Yes

b)

No

7.

Which function is used to set the mode of a pin in an Arduino sketch?

a)

digitalWrite()

b)

analogRead()

c)

pinMode()

d)

delay()

8.

Which function is used to give a command to a digital pin in an Arduino sketch?

a)

digitalWrite()

b)

analogRead()

c)

pinMode()

d)

delay()

9.

Which function is used to receive information from a sensor with infinite options in an Arduino sketch?

a)

digitalWrite()

b)

analogRead()

c)

pinMode()

d)

delay()

10.

What is the purpose of the delay function in an Arduino program?

a)

To set the pin mode.

b)

To pause the program for a specified time.

c)

To read analog values.

d)

To write digital values.

11.

Will this circuit, if correctly coded, make the LED blink?

Explain why or why not

4 lines
12.

This circuit is designed to use a potentiometer to control the speed of the LED.
Will this circuit work correctly? Explain why or why not in detail.

4 lines