Font size
WorksheetsJ3 Arduino Quiz
Total questions: 19
Worksheet time: 10mins
什么是Arduino中最基本的输出设备?
What is the most basic output device in Arduino?
电位器
Potentiometer
红外綫感应器
Infrared Sensor
LED
超声波传感器
Ultrasonic sensor
如何使LED产生闪烁(Blink)的效果?
How to make an LED produce a blinking (Blink) effect?
digitalWrite(LED_PIN, HIGH);
digitalWrite(LED_PIN, LOW);
delay(100); digitalWrite(LED_PIN, LOW);
delay(100);
analogWrite(LED_PIN, 255);
Serial.begin(9600);
什么用途的元件可以用来调整电路的电阻值?
What component is used to adjust the resistance value in a circuit?
Potentiometer
电位器
Motor
电机
Buzzer
蜂鸣器
Button switch
按钮开关
如何读取连接到Arduino的电位器的值?
How do you read the value of a potentiometer connected to Arduino?
analogRead(potPin);
digitalRead(potPin);
analogWrite(potPin, value);
digitalWrite(potPin, HIGH);
何时使用按钮开关?
When is a button switch used?
To produce sound 产生声音
To control motor speed 控制电机速度
As an input device to detect button presses 作为输入设备检测按下动作
To send infrared signals 发送红外线信号
如何在Arduino中检测按钮开关是否按下?
How do you detect if a button switch is pressed in Arduino?
digitalRead(buttonPin);
analogRead(buttonPin);
pulseIn(buttonPin, HIGH);
Serial.println("Button pressed");
什么类型的传感器可以用来测量距离?
What type of sensor is used to measure distance?
光敏电阻
Light-dependent resistor
超声波传感器
Ultrasonic sensor
温度传感器Temperature sensor
气体传感器
Gas sensor
如何使用Arduino读取超声波传感器的距离值?
How do you read the distance value from an ultrasonic sensor in Arduino?
analogRead(ultrasonicPin);
pulseIn(ultrasonicPin, HIGH);
digitalWrite(ultrasonicPin, HIGH);
ultrasonic.readDistance();
舵机是一种什么类型的设备?
What type of device is a servo motor?
输出设备
Output device
输入设备
Input device
传感器
Sensor
驱动器
Driver
如何在Arduino中控制舵机的位置?
How do you control the position of a servo motor in Arduino?
servo.rotate(angle);
analogWrite(servoPin, angle);
servo.write(angle);
digitalWrite(servoPin, angle);
什么设备可以产生声音或蜂鸣?
What device can produce sound or a buzz?
LED
电位器
Potentiometer
舵机
Servo motor
蜂鸣器
Buzzer
哪一个是Arduino中的串口通信功能?
Which is the serial communication function in Arduino?
Serial.read();
analogRead(serialPin);
pulseIn(serialPin, HIGH);
digitalWrite(serialPin, HIGH);
如何将数据从Arduino发送到计算机上的串口?
How do you send data from Arduino to the computer through serial communication?
Serial.print(data);
analogWrite(Serial, data);
digitalWrite(Serial, data);
pulseIn(Serial, data);
在Arduino中,用于暂停程序执行一段时间的函数是?
In Arduino, what function is used to pause program execution for a specific duration?
wait()
sleep()
delay()
pause()
何时需要使用电阻?
When is it necessary to use a resistor?
保护电源电压
To protect power voltage
控制电路电流
To control circuit current
降低电路电压
To decrease circuit voltage
打开电路开关
To open a circuit switch
在连接电位器时,为什么常常使用电阻?
When connecting a potentiometer, why is a resistor often used?
保护电位器
To protect the potentiometer
控制电位器的阻值
To control the potentiometer's resistance
增加电位器的电流
To increase the potentiometer's current
使电位器工作更快
To make the potentiometer work faster
为了使电机旋转,应该使用哪个函数?
To make a motor rotate, which function should be used?
servo.write(angle);
analogWrite(motorPin, speed);
digitalWrite(motorPin, HIGH);
tone(motorPin, frequency);
如何在Arduino中控制LED的亮度?
How do you control the brightness of an LED in Arduino?
analogWrite(ledPin, brightness);
digitalWrite(ledPin, HIGH);
tone(ledPin, frequency);
pulseIn(ledPin, HIGH);
在Arduino中,如何检测光敏电阻的数值?
How do you detect the value of a light-dependent resistor in Arduino?
analogRead(ldrPin);
digitalRead(ldrPin);
analogWrite(ldrPin, value);
digitalWrite(ldrPin, HIGH);
