Search Header Logo

Arduino Homework Week 4

Authored by Bayden Schellein

Computers

8th Grade

Used 4+ times

Arduino Homework Week 4
AI

AI Actions

Add similar questions

Adjust reading levels

Convert to real-world scenario

Translate activity

More...

    Content View

    Student View

20 questions

Show all answers

1.

LABELLING QUESTION

2 mins • 1 pt

Label the different parts of the code

a
b
c
d
Use Variable
Create Variable
Turn LED ON
Turn LED OFF

2.

LABELLING QUESTION

2 mins • 1 pt

Label the parts of the code

a
b
c
d
Prints variable
Creates a variable to store mic reading
delays the code
Creates words on the serial monitor

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Media Image

What does this code do?

Turns on the Green LED when noise is detected

Turns on the Red LED when noise is detected

Turns on the Blue LED when noise is detected

Nothing

4.

DRAG AND DROP QUESTION

2 mins • 1 pt

Drag and drop the options below to create the following program:
Create a program that turns the led on and off after a delay.

int ledPin = 13;

int delayTime = 1000;

VOID SETUP(){

​ (a)  

}

VOID LOOP(){

​ (b)  

​ (c)  

​ ​ (d)  

​​ (e)  

}

pinMode(ledPin, OUTPUT);
digitalWrite(ledPin, HIGH);
delay(delayTime);
digitalWrite(ledPin, LOW);

5.

FILL IN THE BLANK QUESTION

1 min • 1 pt

Fill in the blank:
complete the code for sending 5v to an led

_____(redPin, HIGH);

6.

DRAG AND DROP QUESTION

1 min • 1 pt

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

INT
tempMon
STR
VAR
MONITOR

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

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

digitalWrite()

analogRead()

pinMode()

delay()

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?