ferroacu.blogg.se

L298n motor driver power requirements
L298n motor driver power requirements






At the same time, it also generates a sampling period, that is, the Anzhao sampling period starts A/D conversion. The PWM speed controller uses the timer 0 interrupt mode to generate PWM pulse, and the PWM control subroutine is the interrupt service routine of timer 0.

#L298n motor driver power requirements software#

In terms of program design, the generation of the PWM pulse signal of the MCU can use the following two methods: software delay and timer delay.Īlthough software delay is easier to implement, in theory, it occupies too much system resources and is inconvenient to use. V Software Implementation of PWM Speed Regulation The speed of the motor is realized by adjusting the duty ratio of the PWM signal by the single-chip microcomputer. When it is low level, the 4 transistors on the drive bridge are all cut off, so that the armature current of the running motor is reversed and the motor stops freely.

l298n motor driver power requirements

For the PWM signal, the input terminal In2 is low level, the motor rotates forward the input terminal In2 is the PWM signal, input terminal In1 is recorded as low level, the motor reverses). Hardware composition diagram of PWM speed controllerĪccording to the input and output relationship of L298, the enable control terminal EnA is connected to the P1.0 port of the AT89C52. The internal structure of L298 is shown in Figure 3.įigure 3. There are two identical PWM power amplifier circuits inside. Its driving voltage can reach 46V, and the total DC current can reach 4A. It can be used to drive inductive loads such as relays, coils, DC motors, and stepping motors. L298 is a dual H-bridge high-voltage high-current power integrated circuit, which directly uses ITL logic level control. At present, the control of DC motors is mainly based on the application of PWM control. This serious shortcoming makes PFM control unsuitable in servo systems. Since PFM control relies on the pulse frequency to change the duty cycle, when it encounters a mechanical resonance at a particular frequency, it often results in system vibration and audio whistling. Another way is to have a constant turn-on pulse width and change the duty cycle by changing the switching frequency (f=1/T).One is that the switching period is constant, and the duty cycle is changed by changing the on-pulse width.

l298n motor driver power requirements

There are two modulation methods for changing the duty cycle: The average voltage across the motor also changes accordingly. It can be seen from the above formula that changing the ratio of the switch-on time ton to the switching period T, that is, changing the duty cycle of the pulse.

  • T: Short time period when the switch is on.
  • ton: The time when the switch is turned on each time.
  • The voltage waveform obtained at both ends of the motor is shown in Figure 2, and the average voltage Uav can be expressed by the following formula: At this time, the motor current continues to flow through the freewheeling diode VD. But the energy stored in the armature inductance during the switch S is on. When the switch S is off, the power supply Us is interrupted to provide electrical energy to the motor. When S is connected, the power supply Us is applied to both ends of the motor through the switch S, the power supply provides energy to the motor, and the motor stores energy. The controllable switch S is repeatedly turned on and off at certain time intervals. The schematic diagram of PWM control is shown in Figure 1. Therefore, this device is also called a "switch drive device." By changing the "duty cycle" of the voltage on the armature of the DC servo motor, the average voltage can be changed to control the motor speed. Then, change the length of the "on" and "off" time in a cycle as needed. The PWM speed control device uses the switching characteristics of high-power transistors to modulate a fixed-voltage DC power supply, and switches on and off at a fixed frequency. III Working Principle of DC Household WM Speed Control System Therefore, the DC motor is widely used in speed control.Įspecially with the development of computers in the field of human control and the development of high switching frequency, fully controlled second-generation power semiconductor devices (GTR, GTO, MOS inkstone T, IGBT, etc.), the pulse width modulation (PWM) DC speed control system is in It is more and more commonly used in speed control.

    l298n motor driver power requirements

    Good linear speed regulation characteristics.V Software Implementation of PWM Speed Regulationįor a long time, because DC motors have the following characteristics:






    L298n motor driver power requirements