Font size
WorksheetsArduino practice 2
Total questions: 15
Worksheet time: 8mins
Look at the image. The right code is:
int sensorValue = analogRead(A0);
int sensorValue = analogRead(A4);
digitalWrite(2, HIGH);
analogWrite(ledPin, HIGH);
Look at the image. The right code is:
int sensorValue = analogRead(A0);
int sensorValue = analogRead(A4);
digitalWrite(ledPin, HIGH);
analogWrite(ledPin, HIGH);
Look at the image. The right code is
int sensorValue = analogRead(A0);
digitalRead(8, HIGH);
digitalWrite(8, LOW);
analogWrite(ledPin, HIGH);
Look at the image, the code:
int sensorValue = analogRead(A0);
Serial.println(sensorValue);
will print on screen:
5
1023
0
1024
Look at the image, the code:
int sensorValue = analogRead(A0);
float voltage = sensorValue * (5.0 / 1023.0);
Serial.println(voltage);
will print on screen:
5
1023
0
1024
Look at the image. A part of the code for this circuit is: (2 answers)
pinMode(9, INPUT)
pinMode(4, OUTPUT)
pinMode(4, INPUT)
pinMode(9, OUTPUT)
Look at the image. A pinMode instruction is likely to be in:
the comments
the loop
the setup
Look at the image. The sensor depicted is:
An ultrasonic sensor
A passive infrared sensor
A LDR sensor
A temperature sensor
Look at the image. The sensor depicted is:
An ultrasonic sensor
A passive infrared sensor
A LDR sensor
A temperature sensor
Look at the image. The sensor depicted is:
An ultrasonic sensor
A passive infrared sensor
A LDR sensor
A temperature sensor
An LDR (Light Dependant Resistor) detects changes in:
Motion
Light
Sound
Temperature
Look at the image. The output is:
Ultrasonic sensor
Passive infrared sensor
LDR
LED
Arduino
Look at the image. The input is:
Ultrasonic sensor
Passive infrared sensor
LDR
LED
Arduino
Look at the image. The control block is:
Ultrasonic sensor
Passive infrared sensor
LDR
LED
Arduino
Look at the image. The input is:
Ultrasonic sensor
Passive infrared sensor
Potentiometer
LED
Arduino
