Academic Integrity: tutoring, explanations, and feedback — we don’t complete graded work or submit on a student’s behalf.

l. Which of these can an Ardaino NOT tbe wsed o? ps) a controlling servos b. dis

ID: 2268295 • Letter: L

Question

l. Which of these can an Ardaino NOT tbe wsed o? ps) a controlling servos b. displaying analog inputs s building robots d an Arduino can be used to do all of these What are the Aaduino' s twe main program structures? pts) setup and loop e loop and mai a five, and they are labeled Al-AS 3. How many analog ports doses an Arduino have?ps) k six, and they are labeled AD-AS e. sis, and they are labeled A1-A6 d. five, and they are labeled A0-A4 4Which of dhese is a digital input device . button d. LED 6 Which of these is an ouput device b. servo d potentiometer a. int sensorPin - 9; . What command would you use to tell the Anduino that port 9 is an output port? opts) b. int sensorvalue 9 c. digitalhrite(9, HIGH): 8. What command would yoainetolight up an LED on port 5? 02pts) a. int sensorPin-AB b. int sensorvalue e c. digitalwrite(5, HIG): d. pinMode(S, OUTPUT); 9 How would you pause program for 2.5 seconds? a. delay(2500) b. int sensorValue e c. delay(2.5) d. pinmode(ledpin, OUTPUT);

Explanation / Answer

1) d

As arduinos can be used to do all of these.

2) a

Arduino has two main program structure they are setup and loop

3) b

Arduino has six ports labeled as A0-A5

4) c

Because only buttons can provide high/low input, rest of the options are analog device.

5) a

Servo is an output device

button is a digital device

LED is an output device

So only presure senor is an analog input device

6) b

Servo is the only output device because the rotor rotates due an input signal. Rest of the options are input devices.

7) d

pinMode(9,OUTPUT) is the syntax to tell the arduino that pin no. 9 is an output port.

8) c

digitalWrite(5,HIGH); is the syntax to light an LED.

9) a

delay(ms) is the syntax to provide a delay in milisecond. 2.5 second=2500 milisecond.