
Arduino IDE and motors
Authored by Prism Academy undefined
Computers
7th Grade
Used 1+ times

AI Actions
Add similar questions
Adjust reading levels
Convert to real-world scenario
Translate activity
More...
Content View
Student View
10 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 5 pts
Name the Motor Driver you used to build your Robot?
L298P
L293D
L298N
Mx304
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
How do you connect a DC motor to the L298N motor driver?
Connect the motor terminals to IN1 and IN2, and ENA to OUT1.
Connect the motor to the power supply and the L298N to the microcontroller.
Connect the motor terminals to OUT1 and OUT2, IN1 and IN2 to the microcontroller, ENA to a PWM pin, and power the L298N.
Power the L298N directly from the motor terminals.
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
How many DC motors can a single L298N control at the same time?
1
2
3
4
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which function sets the motor speed in the L298N library?
digitalWrite()
setSpeed()
motorSpeed()
analogWrite()
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
#include <L298N.h>
L298N motor(10, 8, 9); // ENA, IN1, IN2
void setup() {
motor.setSpeed(200);
motor.forward();
}
void loop() { }
Run motor backward at speed 200
Run motor forward at speed 200
Stop the motor
Run motor forward at full speed
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
motor.setSpeed(255);
motor.backward();
delay(2000);
motor.forward();
delay(2000);
motor.stop();
Motor runs forward for 2s, backward for 2s, then stops
Motor runs backward for 2s, forward for 2s, then stops
Motor stops immediately
Motor alternates direction forever
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
How many times will this loop run?
for (int i = 0; i < 5; i++) { Serial.println(i); }
3
5
4
6
Access all questions and much more by creating a free account
Create resources
Host any resource
Get auto-graded reports

Continue with Google

Continue with Email

Continue with Classlink

Continue with Clever
or continue with

Microsoft
%20(1).png)
Apple
Others
Already have an account?