HANOI UNIVERSITY OF SCIENCE AND TECHNOLOGY
SCHOOL OF ELECTRICAL AND ELECTRONIC ENGINEERING
PROJECT REPORT
EMBEDDED SYSTEM DESIGN
Group 6
DC MOTOR
Instructor: MSc. Chu Duc Viet
Group member:
Lâm Tuần Châu 20210111
Trần Anh Đức 20212407
Hanoi, 2024
I. Motor control
1. Design Requirements:
o Control Functions:
▪ Forward rotation, reverse rotation, acceleration, and deceleration of
the DC motor.
o Speed Range: 0 to 3000 RPM.
o Voltage: 24V.
o Power: 120W.
o Communication Protocol: RS232.
o Control Interface: Button to set the desired speed and control parameters.
o Additional Components: Filter circuit and heat sink.
o PWM Frequency: 16 kHz.
o Digital Input (DI): High = 10-36V, Low = 0-10V for buttons to control
motor start/stop, direction, and setpoints.
o Digital Output (DO): High = 24V, Low = 0V for indicate system status or
for interlocking.
o Analog Input (AI): 0-10V or 4-20mA For external speed control or
feedback.
o Analog Output (AO): 0-10V or 4-20mA for monitoring or controlling
connected devices.
Source LCD
AI ADC DAC AO
MCU
Gate
DI Power
Driver
DO
Voltage, DC
ADC Current motor
sensor
Inputs
• User Speed Adjustment Signal: Includes On/Off button, Forward/Reverse
button, Reset button, and Speed Adjustment Knob.
• Current Sensor: Monitors the motor’s current.
• Voltage Sensor: Measures voltage levels.
• Angle/Speed Sensor: Uses an encoder to track the motor's position and
speed.
Outputs
• Control Signal to Gate Driver: Manages motor control functions.
• LCD Display: Shows control parameters, status, or settings.
2. Control Process and Functionality
Forward/Reverse Rotation:
o Use H-Bridge configuration (Gate driver) will allow switching the
direction of current through the motor, enabling forward or reverse
rotation based on control signals from the microcontroller.
Acceleration/Deceleration Control:
o The microcontroller gradually changes the PWM duty cycle to ramp
up or down the motor speed, controlling acceleration and
deceleration smoothly.
Speed Control:
o The motor speed can be set from 0 to 3000 RPM. The
microcontroller adjusts the PWM duty cycle based on the set speed
value.
o The set speed can be provided by an analog input (0-10V or 4-
20mA), a digital setpoint, or via RS232 communication.