The most complete analysis of DC motor working principle and control circuit (brushless + brush + servo + stepper)

Publisher:TranquilOasisLatest update time:2023-08-25 Source: elecfansKeywords:DC Reading articles on mobile phones Scan QR code
Read articles on your mobile phone anytime, anywhere


By varying the amount of base current flowing into the transistor, the speed of the motor can be controlled, for example, if the transistor is "halfway" on, only half the supply voltage flows to the motor. If the transistor is "fully on" (saturated), all the supply voltage flows to the motor and it spins faster. Then, for this linear control type, power is constantly delivered to the motor as shown below.


Motor speed control

29bf7c60-d485-11ed-bfe3-dac502259ad0.png

The simple switch circuit above shows the circuit for a unidirectional (one direction only) motor speed control circuit. Since the speed of a DC motor is proportional to the voltage across its terminals, we can use a transistor to regulate this terminal voltage.


The two transistors are connected as a Darlington pair to control the main armature current of the motor. A 5kΩ potentiometer is used to control the amount of base drive to the first pilot transistor TR1, which in turn controls the main switching transistor, TR2 allowing the DC voltage of the motor to vary from zero to Vcc, in this embodiment 9 to 12 volts.


An optional flywheel diode is connected across the switching transistor TR 2 and the motor terminals to prevent back EMF generated when the motor is spinning. The adjustable potentiometer can be replaced by a continuous logic "1" or logic "0" signal applied directly to the input of the circuit to turn the motor "fully on" (saturation) or "fully off" (cut-off), respectively, from the port of a microcontroller or PIC.


In addition to basic speed control, the same circuit can be used to control the speed of a motor. By repeatedly switching the motor current "ON" and "OFF" at a high enough frequency, the speed of the motor can be varied between stationary (0 rpm) and full speed (100%) by varying the mark-space ratio of its supply. This can be achieved by varying the ratio of the "on" time (tON) to the "off" time (tOFF), and can be achieved using a process called pulse width modulation.


Pulse Width Speed ​​Control We have said before that the speed of a DC motor is proportional to the value of the average (mean) voltage across its terminals, and that the higher this value is, up to the maximum permissible motor voltage, the faster the motor will spin. In other words, the higher the voltage, the faster the speed. By varying the ratio between the "on" (tON) time and the "off" (tOFF) duration, known as the "duty cycle", "mark/space ratio" or "duty cycle", it follows that the motor voltage and therefore its speed can be varied. For a simple unipolar drive, the duty cycle β is:

29d38af2-d485-11ed-bfe3-dac502259ad0.png

The average DC output voltage fed to the motor is: Vmean = β x Vsupply. Then, by varying the width of the pulse a, the motor voltage can be controlled, and thus the power applied to the motor can be controlled. This type of control is called pulse width modulation or PWM.


Another way to control the speed of a motor is to vary the frequency (and the period of time the control voltage is applied) while keeping the "on" and "off" duty cycle times constant. This type of control is called pulse frequency modulation, or PFM.


With pulse frequency modulation, the motor voltage is controlled by applying pulses of variable frequency, e.g. at a low frequency or with only a few pulses, the average voltage applied to the motor is low and therefore the motor speed is slow. At a higher frequency or with many pulses, the average motor terminal voltage increases and the motor speed also increases.


The transistor can then be used to control the power applied to the DC motor, with the operating modes being "linear" (the voltage to the motor varies), "pulse width modulation" (the width of the pulses varies), or "pulse frequency modulation" (varying the frequency of the pulses).


Reversing the Direction of a DC Motor Although controlling the speed of a DC motor with a single transistor has many advantages, it also has one major disadvantage, the direction of rotation is always the same, making it a "unidirectional" circuit. In many applications, we need to operate the motor in both the forward and reverse directions.


To control the direction of a DC motor, the polarity of the DC power applied to the motor's connections must be reversed to cause its shaft to rotate in the opposite direction.


A very simple and cheap way to control the direction of rotation of a DC motor is to use different switches arranged in the following way:

DC Motor Direction Control

29e893ca-d485-11ed-bfe3-dac502259ad0.png

The first circuit uses a single double-pole double-throw (DPDT) switch to control the polarity of the motor connections. By switching the contacts, the power to the motor terminals can be reversed and the direction of the motor can be reversed. The second circuit is a little more complex and uses four single-pole single-throw (SPST) switches in an "H" configuration.


Mechanical switches are arranged in pairs and must be operated in specific combinations to operate or stop a DC motor. For example, as shown in the figure, switch combination A+D controls forward rotation, while switches B+C control reverse rotation. Combination switches A+B or C+D short-circuit the motor terminals, causing it to brake quickly. However, using switches in this manner has its dangers, because operating switches A+C or B+D together shorts out the power supply.


While the above two circuits work well for most small DC motor applications, do we really want to operate different combinations of mechanical switches just to reverse the direction of the motor? We could change the manual switches of the electromechanical relay bank and have a single forward/reverse button or switch, or even use a solid-state CMOS 4066B four-sided bidirectional switch.

However, another great way to achieve bidirectional control of the motor (and thus its speed) is to connect the motor to a transistor H-bridge type circuit arrangement as shown below.


Basic Bidirectional H-Bridge Circuit

29ff347c-d485-11ed-bfe3-dac502259ad0.png

The H-bridge circuit above, so named because four switches, either electromechanical relays or transistors resemble the letter "H" with the basic structure of a motor located on the center bar. The transistor or MOSFET H-bridge is probably one of the most commonly used types of bidirectional DC motor control circuits. It uses "complementary transistor pairs" of NPN and PNP in each branch, with the transistors switched together in pairs to control the motor.


Control input A runs the motor in one direction (forward rotation) and input B runs the motor in the other direction (i.e. reverse rotation). Direction control of the motor is then achieved by switching the transistors in their "diagonal pairs" either "ON" or "OFF".


For example, when transistor TR1 is "ON" and transistor TR2 is "OFF", point A is connected to the supply voltage (+Vcc), and if transistor TR3 is "OFF" and transistor TR4 is "ON", point B is connected to 0 volts (GND). The motor will then rotate in one direction with motor terminal A being positive and motor terminal B being negative.


If the switching states are reversed so that TR1 is "OFF", TR2 is "ON", TR3 is "ON", and TR4 is "OFF", the motor current will flow in the opposite direction, causing the motor to rotate in the reverse direction.


Then, by applying opposite logic levels "1" or "0" to input terminals A and B, the direction of rotation of the motor can be controlled as follows.

H-bridge truth table

2a1713da-d485-11ed-bfe3-dac502259ad0.png

It is important that no other input combination is allowed, as this could result in a short circuit in the supply, i.e. both transistors TR1 and TR2 being switched "ON" at the same time (fuse = explosion!).


Just like the unidirectional DC motor control we saw above, it is also possible to control the speed of the motor using pulse width modulation or PWM. Then, by combining H-bridge switching with PWM control, the direction and speed of the motor can be precisely controlled.


Commercial off-the-shelf decoder ICs such as the SN754410 quad half H-bridge IC or the L298N with 2 H-bridges provide all the necessary control and safety logic built in that is specifically designed for H-bridge bidirectional motor control circuits.


DC stepper motors are electromechanical actuators that convert pulsed digital input signals into discrete (incremental) mechanical movements, and are widely used in industrial control applications. Stepper motors are a type of synchronous brushless motor that does not have an armature with a commutator and carbon brushes, but rather has a rotor consisting of many rotors, some types of rotors have hundreds of permanent magnet teeth, and a stator with a single winding.


Stepper Motor

As the name implies, a stepper motor does not rotate continuously like a regular DC motor, but instead moves in discrete "steps" or "increments", with the angle of each rotation or step being determined by the number of stator poles and rotor teeth of the stepper motor.


Because of their discrete stepping operation, a stepper motor can easily rotate a limited portion of a rotation at a time, such as 1.8, 3.6, 7.5 degrees, etc. So, for example, let's say a stepper motor completes a full revolution (360°) in 100 steps.


Then, the step angle of the motor is 360 degrees / 100 steps = 3.6 degrees per step. This value is usually called the stepper motor "step angle".

There are three basic types of stepper motors, variable reluctance, permanent magnet and hybrid (a combination of the two). A stepper motor is particularly suitable for applications that require precise positioning and repeatability along with fast response of starting, stopping, reversing and speed control with another key feature of a stepper motor being the ability to hold a load steady once the desired position is achieved.


Typically, a stepper motor has an internal rotor with a large number of permanent magnet "teeth" and multiple electromagnet "teeth" mounted on a stator. The stator electromagnets are polarized and depolarized in sequence, causing the rotor to rotate one "step" at a time.

[1] [2] [3]
Keywords:DC Reference address:The most complete analysis of DC motor working principle and control circuit (brushless + brush + servo + stepper)

Previous article:Detailed explanation of the three major control points of servo, stepper and frequency conversion
Next article:PLC control of robot interference area and interlock signal control

Recommended ReadingLatest update time:2024-11-16 11:24

TUV Rheinland issues the world's first DC1500V string photovoltaic inverter TUV certificate to Sungrow
SHANGHAI, January 4, 2018 /PRNewswire/ -- On December 27, 2017, TUV Rheinland (hereinafter referred to as TUV Rheinland) issued a TUV certificate to the latest model SG125HV inverter of Sungrow Power Supply Co., Ltd. (hereinafter referred to as Sungrow Power Supply). This is also the world's first TUV certificate fo
[New Energy]
iDC 100丨Zhixing Technology confirms application for 2024 Golden Collection Award
Application Technology丨iDC 100 Application field: Intelligent driving Unique advantages: Thanks to Zhixing Technology's leading algorithms and engineering capabilities, the controller can use a single SOC solution (without an extern
[Automotive Electronics]
iDC 100丨Zhixing Technology confirms application for 2024 Golden Collection Award
ADC0809 realizes the conversion of 8 analog signals in turn (displayed on the digital tube)
//----------------------------- Function: ADC0809 realizes the conversion of 8 analog signals in turn and       displays them on the digital tube; 1. P1 port is used as the segment code control terminal of the digital tube, and    P2 port is used as the bit code control terminal of the digital tube; 2. P2.7 port i
[Microcontroller]
STM8S ADC initialization settings and applications
//ADC channel number definition #define ADC_Chanel0 (unsigned char)0x00 #define ADC_Chanel1 (unsigned char)0x01 #define ADC_Chanel2 (unsigned char)0x02 #define ADC_Chanel3 (unsigned char)0x03 #define ADC_Chanel4 (unsigned char)0x04 #define ADC_Chanel5 (unsigned char)0x05 #define ADC_Chanel6 (unsi
[Microcontroller]
IDC: Global smartphone shipments in the first quarter of this year reached nearly 290 million units, with Apple's shipments down 9.6% year-on-year
On April 15, market research firm IDC released a research report this morning, saying that global smartphone shipments in the first quarter of 2024 (1Q24) increased by 7.8% year-on-year to 289.4 million units. Although the smartphone industry has not completely escaped the difficulties and the market still faces mac
[Mobile phone portable]
IDC: Global smartphone shipments in the first quarter of this year reached nearly 290 million units, with Apple's shipments down 9.6% year-on-year
N76E003 Watchdog Timer WDCON
1. Reset function configuration N76E003 provides a watchdog timer (WDT), which can be configured as a timeout reset timer to reset the entire device. Once the device enters an abnormal state or hangs due to external interference, the watchdog can reset and recover the system. WDTEN (CONFIG4 ) initializes WDT to work
[Microcontroller]
N76E003 Watchdog Timer WDCON
Discussion on AC and DC sampling of STM32 ADC
cutting edge Regarding the STM32 sampling problem, I believe many people have encountered such a problem, whether it is about the underlying configuration of the ADC or the choice of the ADC sampling solution, or the ADC software and hardware filtering algorithm. Here, the blogger will extend the training questions he
[Microcontroller]
Discussion on AC and DC sampling of STM32 ADC
Goodix Technology acquires chip design company DCT, a major step forward in smart driving
Goodix Technology announced that it has completed the acquisition of the German system-on-chip design company Dream Chip Technologies GmbH (hereinafter referred to as DCT).   This is an important measure for Goodix Technology to promote its diversified strategic development and gather global innovation forces. DCT's s
[Embedded]
Goodix Technology acquires chip design company DCT, a major step forward in smart driving
Latest Embedded Articles
Change More Related Popular Components

EEWorld
subscription
account

EEWorld
service
account

Automotive
development
circle

About Us Customer Service Contact Information Datasheet Sitemap LatestNews


Room 1530, 15th Floor, Building B, No.18 Zhongguancun Street, Haidian District, Beijing, Postal Code: 100190 China Telephone: 008610 8235 0740

Copyright © 2005-2024 EEWORLD.com.cn, Inc. All rights reserved 京ICP证060456号 京ICP备10001474号-1 电信业务审批[2006]字第258号函 京公网安备 11010802033920号