WorksheetsArduino Lesson 5 Starter
Total questions: 12
Worksheet time: 17mins
digitalWrite (LED1, HIGH);
delay(1000);
digitalWrite (LED1, LOW);
What does the program do?
LED Switch Off at the beginning, wait for 60s and then switch ON.
LED Switch ON at the beginning, wait for 10s and then Switch OFF.
LED Switch ON at the beginning, wait for 1s and then switch ON.
LED Switch ON at the beginning, wait for 1s and then switch OFF.
What is the correct pinMode setup code for this circuit?
pinMode(12, OUTPUT);
pinMode(8, INPUT);
pinMode(8, OUTPUT);
pinMode(7, INPUT);
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.
Create a variable using the options below:
(a) (b) = 22
Using the void setup provided to you, write the code for creating Cyan (Blue+Green) on an RGB LED
Will this circuit, if coded correctly, function properly.
Yes
No
Which function is used to set the mode of a pin in an Arduino sketch?
digitalWrite()
analogRead()
pinMode()
delay()
Which function is used to give a command to a digital pin in an Arduino sketch?
digitalWrite()
analogRead()
pinMode()
delay()
Which function is used to receive information from a sensor with infinite options in an Arduino sketch?
digitalWrite()
analogRead()
pinMode()
delay()
What is the purpose of the delay function in an Arduino program?
To set the pin mode.
To pause the program for a specified time.
To read analog values.
To write digital values.
Will this circuit, if correctly coded, make the LED blink?
Explain why or why not
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.
