Closed loop speed control of DC motor using back emf sening

8,781

Circuit Image

A speed closed-loop control system for a DC motor utilizes back EMF sensing. To implement this, a DC motor is operated in one direction, substituting the LED with the motor and omitting the current limit resistor. It is important to note that reversing the motor direction is not feasible with this setup. The motor's speed can be adjusted by varying the duty cycle of the PWM signal. However, a common issue with this schematic for DC motor control arises when the motor is subjected to a mechanical load, resulting in a decrease in speed. This indicates that the system operates in an open loop. To establish a closed-loop system, a mechanism must be in place to feedback the motor speed to the controller (PIC18F4520). This feedback allows the controller to ascertain the current motor speed and adjust the PWM duty cycle accordingly to compensate for any variations in mechanical load. When a DC motor is driven externally, it generates a voltage known as back EMF, which is also produced when the motor is powered by a DC source. This voltage is directly proportional to the motor's speed. To measure the back EMF, the PWM driver is briefly halted, allowing the motor to coast while current flows through a freewheeling diode. After the energy stored in the motor's inductance is dissipated, the back EMF builds up. This signal is then scaled to an appropriate voltage using a potential divider and sent to the ADC input of the controller. Small motors with gears, commonly used in hobby robotics, typically operate at high speeds (with low-speed gear reduction) and can effectively utilize this control scheme. If the motor is designed to run in both directions (using an H-bridge), the back EMF measurement circuit becomes more complex, necessitating differential measurement techniques.

The described circuit employs a closed-loop control system for a DC motor through back EMF sensing, which is critical for maintaining optimal motor performance under varying load conditions. The integration of a PIC18F4520 microcontroller enables precise control over the motor's operation by continuously monitoring the back EMF voltage, which reflects the motor's speed. The back EMF is derived from the motor's inherent properties and is a key factor in feedback control systems.

To implement this system, the PWM signal is generated by the microcontroller, determining the motor's speed through duty cycle adjustments. The back EMF is measured during a brief pause in PWM operation, allowing the motor to coast and generate a measurable voltage. This voltage is then conditioned using a potential divider to ensure it falls within the ADC's input range. The ADC converts the analog back EMF signal into a digital value, which the microcontroller processes to calculate the current speed of the motor.

For effective operation, the circuit includes a freewheeling diode that allows current to circulate when the PWM signal is turned off, preventing voltage spikes that could damage the circuitry. Additionally, the system can be enhanced by incorporating filtering components to stabilize the back EMF signal and improve measurement accuracy.

In applications where bidirectional motor control is necessary, the design complexity increases, as the back EMF must be measured differentially to account for the direction of rotation. This requires additional circuitry to switch between measurement modes based on the motor's operational state. Overall, the closed-loop control system utilizing back EMF sensing provides a robust solution for maintaining consistent motor speed in various load conditions, making it particularly suitable for robotics and automation applications.A speed closed loop control of DC motor using back emf sensing. Running a DC motor in one direction, just replace the LED with DC motor and remove the current limit resistor. Please note that motordirection reversal is not possible with this configuration. The motor speed can be varied by varying the duty cycle of PWM. But a common problem with this schematic for DC motor control is that if the motor is loaded (mechanical load), the motor speed reduces. In other words, the system is running in open loop. If we have to make a system as closed loop, we should have a mechanism to feedback the motor speed back into the controller (PIC18F4520).

Only then, the controller will know the present speed of motor and vary the duty cycle of PWM to compensate for any change in mechanical load. A DC motor when driven by external means, will generate a voltage. This voltage is also generated by the motor, when it is supplied by a DC source. This voltage is proportional to the speed of motor and is called the back emf. Best part is that the back emf is linearly proportional to the speed. To measure the back emf of motor, we stop the PWM driver for a brief period. During this brief period, the motor coasts for sometime when the current flows through the freewheeling diode.

Once the energy stored in motor inductance is exhausted, the back emf build up. This back emf is scaled to suitable voltage using the potential divider. The back emf signal is then fed into the ADC input of controller. 4. Small motors with gear used for hobby robotics usually run at high speed (gear runs at low speed, gear reduction). Such motor can easily use this scheme. 3. If the motor is configured to run on both direction (using H bridge), then the back emf measurement circuit becomes complicated (differential measurement).

🔗 External reference




Warning: include(partials/cookie-banner.php): Failed to open stream: Permission denied in /var/www/html/nextgr/view-circuit.php on line 713

Warning: include(): Failed opening 'partials/cookie-banner.php' for inclusion (include_path='.:/usr/share/php') in /var/www/html/nextgr/view-circuit.php on line 713