Real Time DC Motor Control
  • Lab : Real Time DC motor control
  • Getting Started
  • DC motor modeling and control loop design
  • Simulation
  • Experimentation
Powered by GitBook
On this page
  • Simulation
  • Comparison between model and simulation

Was this helpful?

Simulation

PreviousDC motor modeling and control loop designNextExperimentation

Last updated 6 years ago

Was this helpful?

Simulation

  1. Download the simulation files . These files are Matlab/Simulink files for the simulation of the control law proposed section .

  2. For the realtime application the controlleur needs to be sampled. The inner electrical control loop will be sampled à 20kHz (PWM frequency). The outer mechanical control loop will be sampled at 500Hz. For this purpose, use the Sampling block commented in the simulation. Apply the sampled control to the downloaded model and compare with the continous control.

  3. The DSpic support 16bits fixed point variables. The control needs to be converted to use 16bits fixed point variable only. Here use the quantization block. Compare the this control with the two previous one.

Comparison between model and simulation

Here the objective is to compare the difference between the modeling and motor real measurement.

  1. Using the simulink file MCLV2_dsPIC33EP256MC506_internalOpAmp_DataLog_R2017a.mdl record real data from motor measurement.

  2. Compare the simulation with the real measurment using the simulink file Simu_Model_vs_Logs_R2017a.mdl

Download the model

here
here
DC motor modeling and control loop design
Double precision simulation
Model vs Logs