Motor Control with Arduino - DC and Servo Motors

0.0(0)
Studied by 0 people
call kaiCall Kai
learnLearn
examPractice Test
spaced repetitionSpaced Repetition
heart puzzleMatch
flashcardsFlashcards
GameKnowt Play
Card Sorting

1/16

flashcard set

Earn XP

Description and Tags

Practice flashcards covering DC motor operation, the L298N driver module, wiring and powering configurations, PWM speed control, and servo motor mechanics and programming with Arduino.

17 Terms

1
New cards

What type of energy conversion occurs in a DC motor?

A DC motor converts electrical energy (from a battery) into rotational movement.

2
New cards

What changes occur in a DC motor when the wires are swapped or when more voltage is added?

Swapping the wires changes the spin direction, while adding more voltage causes the motor to spin faster.

3
New cards

Why is an Arduino unable to power a DC motor directly from its pins?

An Arduino cannot power a DC motor directly because the motor requires more current than Arduino pins can provide.

4
New cards

What is the L298N and what purpose does it serve in motor interfacing?

The L298N is a motor driver module that acts as a "bridge" between the Arduino and DC motor, allowing safe control of direction and speed.

5
New cards

How many motors can an L298N controller handle, and which output terminals connect to them?

The controller can take up to 22 motors; one motor connects to terminals OUT1 and OUT2, and the second motor connects to terminals OUT3 and OUT4.

6
New cards

Which pins on the L298N module control the direction of the connected motors?

IN1 and IN2 control the direction of the motor connected to OUT1 and OUT2, while IN3 and IN4 control the direction of the motor connected to OUT3 and OUT4.

7
New cards

What is the main disadvantage of powering an Arduino using the 5V pin output of the L298N module?

The regulator on the L298N is weak and can supply only ~50 to 100 mA50\text{ to }100\,\text{mA}, meaning the Arduino may reset or behave erratically if additional sensors or modules draw more current.

8
New cards

Why is powering an L298N motor driver directly from the Arduino 5V pin strongly discouraged?

The Arduino 5V pin is designed for logic rather than high loads and cannot supply enough current for motors, resulting in motors not running properly or risking damage to the Arduino regulator.

9
New cards

What are the advantages of powering the L298N driver and the Arduino separately?

It is much more stable and safe because each circuit has its own proper power source, preventing motors from causing voltage drops that reset the Arduino.

10
New cards

How is DC motor speed controlled on an L298N using Arduino pins?

Motor speed is controlled with the EN pins (ENA for the left motor and ENB for the right motor) using PWM through the analogWrite(pin, value); function.

11
New cards

What is the value range accepted by analogWrite(pin, value); for PWM motor control, and what do values of 0 and 255 represent?

The value range is 00 to 255255, where 00 represents motor OFF (0%0\% duty cycle) and 255255 represents motor full speed (100%100\% duty cycle).

12
New cards

What is the fundamental functional difference between a DC motor and a servo motor?

A DC motor spins continuously (like a fan), whereas a servo motor rotates precisely to a specific set angle (like a robot arm joint).

13
New cards

To which exact angles can a standard servo motor turn according to the lecture?

A servo motor can turn exactly to 0∘0^\circ, 90∘90^\circ, or 180∘180^\circ.

14
New cards

What are the three main internal components of a servo motor and their functions?

The DC Motor provides movement, the Gearbox slows movement and increases torque, and the Potentiometer provides position feedback to ensure accuracy.

15
New cards

What are the wire colors and functions of the three pinouts on a standard servo motor?

The Signal Pin (Yellow/Orange/White) carries the PWM control signal, the Power Pin Vcc (Red) supplies power (+5 V+5\,\text{V}), and the Ground Pin GND (Brown/Black) connects to the negative power supply side.

16
New cards

What standard PWM frequency and period are used to control an analog servo motor?

A standard signal frequency of 50 Hz50\,\text{Hz} with a period of 20 ms20\,\text{ms}.

17
New cards

Which Arduino header library and member functions are used to configure and set the angle of a servo motor?

The #include <Servo.h> library is used along with myservo.attach(pin); to specify the pin connection and myservo.write(angle); to set the target angle.