0% found this document useful (0 votes)
16 views

DC Motor Control Lab

This document describes a lab experiment to control the speed of a DC motor. The objectives are to control motor speed using an encoder for feedback and PWM signals. A DC motor converts electrical to mechanical energy using a rotor, stator and commutator. PWM generates analog signals from digital devices by varying pulse width. An incremental encoder measures shaft rotation outputting two sets of pulses. The lab uses an Arduino to control a motor driver providing PWM to set speed and direction. A rotary encoder measures motor speed which is displayed and controlled using potentiometer or LabView. Students build the setup, collect speed data, and submit a report analyzing results.

Uploaded by

dks697bvhc
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
16 views

DC Motor Control Lab

This document describes a lab experiment to control the speed of a DC motor. The objectives are to control motor speed using an encoder for feedback and PWM signals. A DC motor converts electrical to mechanical energy using a rotor, stator and commutator. PWM generates analog signals from digital devices by varying pulse width. An incremental encoder measures shaft rotation outputting two sets of pulses. The lab uses an Arduino to control a motor driver providing PWM to set speed and direction. A rotary encoder measures motor speed which is displayed and controlled using potentiometer or LabView. Students build the setup, collect speed data, and submit a report analyzing results.

Uploaded by

dks697bvhc
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 5

Cairo University Engineering Measurement MDP3610

Faculty of Engineering Year 2023 – 2024


Mechanical Design and Production Department 1st Semester

DC Motor Control Lab

Objectives
Control the speed of a DC motor.
Use encoder for motor speed feedback.
Use PWM signals for speed feedback and control.

DC motor
A direct current DC motor is defined as a class of electrical motors that convert direct current
electrical energy into mechanical energy. DC motors have wide range of applications.
A brushed DC motor is composed of armature (rotor), stator, commutator, and brushes.
Commutator reverses the current every half cycle and creates single direction torque. When a DC
motor is powered, a magnetic field is created in its stator. The field attracts and repels magnets on
the rotor; this causes the rotor to rotate. To keep the rotor continually rotating, the commutator that
is attached to brushes connected to the power source supply current to the motors wire windings.
A brushless DC motor, also known as synchronous DC motor, do not have a commutator. The
commutator in a brushless DC motor is replaced by an electronic servomechanism that can detect
and adjust the angle of the rotor.

PWM signal
Pulse width modulation (PWM) is a commonly used control technique that generates analog
signals from digital devices such as microcontrollers. Thus, at any given time, the wave will either
be high or low.
PWM uses a rectangular pulse wave whose pulse width is modulated resulting in the variation of
the average value of the waveform. Thus, it is a method of controlling the average power delivered
by an electrical signal. The average value of voltage (and current) fed to the load is controlled by

1/5
switching the supply between 0 (OFF) and 100% (ON) at a rate faster than it takes the load to
change significantly.
PWM is particularly suited for running inertial loads such as motors, which are not as easily
affected by this discrete switching. The PWM switching frequency can vary greatly depending on
load and application. For example, switching only has to be done several times a minute in an
electric stove; 100 or 120 Hz (double of the utility frequency) in a lamp dimmer; between a few
kilohertz (kHz) and tens of kHz for a motor drive.
The frequency of PWM determines how fast a PWM completes a period. The frequency of PWM
can be calculated as follows:
𝑃𝑒𝑟𝑖𝑜𝑑 𝑇 = 𝑇𝑂𝑁 + 𝑇𝑂𝐹𝐹
𝐹𝑟𝑒𝑞𝑢𝑒𝑛𝑐𝑦 = 1⁄𝑇

The duty cycle can be calculated as per the below formula:


𝑇𝑂𝑁
𝐷= × 100
𝑇

The average voltage of the signal is calculated using the following formula,
𝐷
𝑉𝑎𝑣𝑔 = × 𝑉𝑚𝑎𝑥
10

where
𝑇𝑂𝑁 : Duration of the signal being in the high (on) state
𝑇𝑂𝐹𝐹 : Duration of the signal being in the low (off) state
𝑇: Period = Total time taken to complete one cycle
D = Duty Cycle in Percentage
Vavg = Average voltage of the signal
Vmax = Max voltage of the signal

2/5
Rotary Encoders
Rotary encoders are electronic devices that can measure mechanical rotation. They can be used in
two fashions – As a control or as a device to measure the rotation of a shaft.
Incremental encoders are called quadrature or relative rotary encoders. These encoders have two
sensors and output two sets of pulses. The sensors, which can be magnetic (hall effect) or light
(LED or Laser), produce pulses when the encoder shaft is rotated. As there are two sensors in two
different positions, they will both produce the same pulses, however, they will be out of phase as
one sensor will pulse before the other one. Which sensor goes first is determined by the direction
of rotation.
The speed of rotation is determined using the Pulse Per Revolution PPR of the encoder as function
of the pulse width which changes with speed.

DC motor Control Loop


A DC 12V 80W 13000rpm 775 Motor (High Speed Motor) is driven using Cytron MDD10A driver.
MDD10A is a dual channel version of MD10C which is designed to drive 2 brushed DC motors
with high current up to 10A continuously. Speed control is done using PWM frequency up to
20KHz.
Arduino controller controls the DC motor driver and using 2 digital output DO channels. The first
DO is PWM channel (6) which controls the speed of the motor. The second DO controls the
direction of rotation.
The motor speed is measured using a rotary encoder. Encoder ME 775 having 7 PPR is used. The
encoder feedback signal is delivered to a digital input DI PWM channel (3).
The motor speed is controlled either using a variable resistance potentiometer or using LabView
controls.

3/5
4/5
Experiment Procedure
1- Build the DC motor speed control setup.
2- Wire all the power and control signals.
3- Upload the code to the Arduino board.
4- Run the system and observe its function.
5- Use a tachometer to measure the speed of the motor and compare with the code.
6- Explain the different types of DC motors and relays.
7- Submit a group technical report for the experiment. [objective, experiment setup picture and
explanation, results plots, data analysis, discussion]

5/5

You might also like