39
Hardware Interfacing & Control Indian Institute of Technology Bombay Prof. P. S. V. Nataraj

Indian Institute of Technology Bombay · Indian Institute of Technology Bombay Prof. P. S. V. Nataraj. PC Based Interface Using Custom Hardware interface Microcontroller based custom

  • Upload
    others

  • View
    6

  • Download
    0

Embed Size (px)

Citation preview

Page 1: Indian Institute of Technology Bombay · Indian Institute of Technology Bombay Prof. P. S. V. Nataraj. PC Based Interface Using Custom Hardware interface Microcontroller based custom

Hardware Interfacing & Control

IndianInstituteofTechnologyBombay

Prof.P.S.V.Nataraj

Page 2: Indian Institute of Technology Bombay · Indian Institute of Technology Bombay Prof. P. S. V. Nataraj. PC Based Interface Using Custom Hardware interface Microcontroller based custom

PC Based Interface

UsingCustomHardwareinterface

MicrocontrollerbasedcustomHardware

Encoder

SerialPort

USB

IITBombay

Page 3: Indian Institute of Technology Bombay · Indian Institute of Technology Bombay Prof. P. S. V. Nataraj. PC Based Interface Using Custom Hardware interface Microcontroller based custom

DC motor Control Kit

DevelopedByIITBombay

USB

IITBombay

Page 4: Indian Institute of Technology Bombay · Indian Institute of Technology Bombay Prof. P. S. V. Nataraj. PC Based Interface Using Custom Hardware interface Microcontroller based custom

Controller MotorDriverSpeedSetpoint

SpeedFeedback

DCMotorControl

Encoder

IITBombay

Page 5: Indian Institute of Technology Bombay · Indian Institute of Technology Bombay Prof. P. S. V. Nataraj. PC Based Interface Using Custom Hardware interface Microcontroller based custom

Microcontroller&MotorDriverBoard

Encoder

SerialPort

USB

RotaryEncoderfeedback

VariableVoltagetoMotor

DC motor Control Kit

Setpoint SpeedRPM

FeedbackCurrentRPM

IITBombay

Page 6: Indian Institute of Technology Bombay · Indian Institute of Technology Bombay Prof. P. S. V. Nataraj. PC Based Interface Using Custom Hardware interface Microcontroller based custom

SystemIdentification

ModulesforSpeed&Positioncontrol

MPC RobustControl

DeepLearningNeuralNetworks

DC motor Control Kit

TraditionalControlusingPPIPID

TrainingModules

IITBombay

Page 7: Indian Institute of Technology Bombay · Indian Institute of Technology Bombay Prof. P. S. V. Nataraj. PC Based Interface Using Custom Hardware interface Microcontroller based custom

DC motor Control Kit

Usedforclassroomteachingover4yearsinIIT

LowCost

Createsrealworldplantexperienceonyourdesktop

CompleteLabDevelopmentPackageforAcademics

InteractivefrontendSoftwaremodules

USBConnectivity–Plug&Play

Opencommunicationcommandset

IITBombay

Page 8: Indian Institute of Technology Bombay · Indian Institute of Technology Bombay Prof. P. S. V. Nataraj. PC Based Interface Using Custom Hardware interface Microcontroller based custom

IITBombay

IndianInstituteofTechnologyBombay

DC Motor control using MATLAB/SIMULINK

Page 9: Indian Institute of Technology Bombay · Indian Institute of Technology Bombay Prof. P. S. V. Nataraj. PC Based Interface Using Custom Hardware interface Microcontroller based custom

Outline

• ExperimentNo-1• Validationofmotormodelforspeedcontrol

• ExperimentNo-2• PIControlGainsforMotorspeedcontrol

IITBombay

Page 10: Indian Institute of Technology Bombay · Indian Institute of Technology Bombay Prof. P. S. V. Nataraj. PC Based Interface Using Custom Hardware interface Microcontroller based custom

Experiment No-1Validation of motor model for speed control

IITBombay

Page 11: Indian Institute of Technology Bombay · Indian Institute of Technology Bombay Prof. P. S. V. Nataraj. PC Based Interface Using Custom Hardware interface Microcontroller based custom

Procedure

• Setts=0.015• Runthematlabsimulinkmodel• TostopthemotorpresstheresetbuttonontheDCmotorkit.

IITBombay

Page 12: Indian Institute of Technology Bombay · Indian Institute of Technology Bombay Prof. P. S. V. Nataraj. PC Based Interface Using Custom Hardware interface Microcontroller based custom

FOPTD

IITBombay

Page 13: Indian Institute of Technology Bombay · Indian Institute of Technology Bombay Prof. P. S. V. Nataraj. PC Based Interface Using Custom Hardware interface Microcontroller based custom

Apply two-point method for system

IITBombay

Page 14: Indian Institute of Technology Bombay · Indian Institute of Technology Bombay Prof. P. S. V. Nataraj. PC Based Interface Using Custom Hardware interface Microcontroller based custom

Sample values

IITBombay

Page 15: Indian Institute of Technology Bombay · Indian Institute of Technology Bombay Prof. P. S. V. Nataraj. PC Based Interface Using Custom Hardware interface Microcontroller based custom

Transfer function

IITBombay

Page 16: Indian Institute of Technology Bombay · Indian Institute of Technology Bombay Prof. P. S. V. Nataraj. PC Based Interface Using Custom Hardware interface Microcontroller based custom

Output response

• Intheopenloop,theplantisbroughttoequilibriumbyapplyingastepof150PWMunits.• Thecorrespondingspeedisaround2000RPM• Afterthemotorspeedsettles,thePWMinputisinstantaneouslychangedto170.• Asaresult,thespeedincreasestoaround2400RPM.

IITBombay

Page 17: Indian Institute of Technology Bombay · Indian Institute of Technology Bombay Prof. P. S. V. Nataraj. PC Based Interface Using Custom Hardware interface Microcontroller based custom

Output vs Input

IITBombay

Page 18: Indian Institute of Technology Bombay · Indian Institute of Technology Bombay Prof. P. S. V. Nataraj. PC Based Interface Using Custom Hardware interface Microcontroller based custom

Experiment No-2PI Control Gains for Motor speed control

IITBombay

Page 19: Indian Institute of Technology Bombay · Indian Institute of Technology Bombay Prof. P. S. V. Nataraj. PC Based Interface Using Custom Hardware interface Microcontroller based custom

Ziegler-Nichols Rule for Tuning PID Controllers

IITBombay

Page 20: Indian Institute of Technology Bombay · Indian Institute of Technology Bombay Prof. P. S. V. Nataraj. PC Based Interface Using Custom Hardware interface Microcontroller based custom

Calculations

IITBombay

Page 21: Indian Institute of Technology Bombay · Indian Institute of Technology Bombay Prof. P. S. V. Nataraj. PC Based Interface Using Custom Hardware interface Microcontroller based custom

Procedure

• Doubleclickonthecontrollerblock.• DoubleclickonPIDControllerblock.• EnterthePandIvaluescalculatedusingtheZiegler-NicholsRule.

IITBombay

Page 22: Indian Institute of Technology Bombay · Indian Institute of Technology Bombay Prof. P. S. V. Nataraj. PC Based Interface Using Custom Hardware interface Microcontroller based custom

PID Block

IITBombay

Page 23: Indian Institute of Technology Bombay · Indian Institute of Technology Bombay Prof. P. S. V. Nataraj. PC Based Interface Using Custom Hardware interface Microcontroller based custom

PID block configuration

IITBombay

Page 24: Indian Institute of Technology Bombay · Indian Institute of Technology Bombay Prof. P. S. V. Nataraj. PC Based Interface Using Custom Hardware interface Microcontroller based custom

Output

• Kc=0.075andTi=0.36sec.• Afterthespeedsettlesat2000RPM,astepof400RPMisapplied.• Itisseenthattheoutputfollowsthesetpointandthespeedsettlesat2400RPM.• Next,anegativestepof400RPMisapplied.• Itisclearlyobservedthatmotorspeeddecreasesandsettlesat2000RPM.

IITBombay

Page 25: Indian Institute of Technology Bombay · Indian Institute of Technology Bombay Prof. P. S. V. Nataraj. PC Based Interface Using Custom Hardware interface Microcontroller based custom

Output response

IITBombay

Page 26: Indian Institute of Technology Bombay · Indian Institute of Technology Bombay Prof. P. S. V. Nataraj. PC Based Interface Using Custom Hardware interface Microcontroller based custom
Page 27: Indian Institute of Technology Bombay · Indian Institute of Technology Bombay Prof. P. S. V. Nataraj. PC Based Interface Using Custom Hardware interface Microcontroller based custom
Page 28: Indian Institute of Technology Bombay · Indian Institute of Technology Bombay Prof. P. S. V. Nataraj. PC Based Interface Using Custom Hardware interface Microcontroller based custom
Page 29: Indian Institute of Technology Bombay · Indian Institute of Technology Bombay Prof. P. S. V. Nataraj. PC Based Interface Using Custom Hardware interface Microcontroller based custom
Page 30: Indian Institute of Technology Bombay · Indian Institute of Technology Bombay Prof. P. S. V. Nataraj. PC Based Interface Using Custom Hardware interface Microcontroller based custom
Page 31: Indian Institute of Technology Bombay · Indian Institute of Technology Bombay Prof. P. S. V. Nataraj. PC Based Interface Using Custom Hardware interface Microcontroller based custom
Page 32: Indian Institute of Technology Bombay · Indian Institute of Technology Bombay Prof. P. S. V. Nataraj. PC Based Interface Using Custom Hardware interface Microcontroller based custom
Page 33: Indian Institute of Technology Bombay · Indian Institute of Technology Bombay Prof. P. S. V. Nataraj. PC Based Interface Using Custom Hardware interface Microcontroller based custom
Page 34: Indian Institute of Technology Bombay · Indian Institute of Technology Bombay Prof. P. S. V. Nataraj. PC Based Interface Using Custom Hardware interface Microcontroller based custom
Page 35: Indian Institute of Technology Bombay · Indian Institute of Technology Bombay Prof. P. S. V. Nataraj. PC Based Interface Using Custom Hardware interface Microcontroller based custom
Page 36: Indian Institute of Technology Bombay · Indian Institute of Technology Bombay Prof. P. S. V. Nataraj. PC Based Interface Using Custom Hardware interface Microcontroller based custom
Page 37: Indian Institute of Technology Bombay · Indian Institute of Technology Bombay Prof. P. S. V. Nataraj. PC Based Interface Using Custom Hardware interface Microcontroller based custom
Page 38: Indian Institute of Technology Bombay · Indian Institute of Technology Bombay Prof. P. S. V. Nataraj. PC Based Interface Using Custom Hardware interface Microcontroller based custom
Page 39: Indian Institute of Technology Bombay · Indian Institute of Technology Bombay Prof. P. S. V. Nataraj. PC Based Interface Using Custom Hardware interface Microcontroller based custom

Contact

Prof.P.S.V.NatarajSystems&[email protected]

[email protected],9320201648

IITBombay