Lab 2 A: Robot DC Motor: Characterization, Modeling, and Simulation
Lab 2 A: Robot DC Motor: Characterization, Modeling, and Simulation
Lab 2 A: Robot DC Motor: Characterization, Modeling, and Simulation
Characterization,modeling,andsimulation
ECEN2270
ElectronicsDesignLaboratory
DiscussionItems
Labreports:mustbeuploadedviaD2Ldropbox bythe deadline
Onereportpergroup,includebothnamesonthefrontpage Attendanceisrequired!!!!!!!
TakeawayfromLab1demos
Donotrushthroughthelab;takethetimetounderstandwhatyou aredoingandwhy Makesurebothpartnersknowandunderstandallaspectsofthe lab;donotsplitportionsofthelabbetweenpartnerstorush through ReviewcarefullytheLectureslidesandtheLabTasks,includingthe statementsonwhattoincludeinthefinalreport DosotodaybeforestartofLab2tomorrow!
ECEN2830
ElectronicsDesignLaboratory
Lab2,PartA
Broaderobjectives:workingwithaload
Understandthephysicalbehavioroftheload:DCmotor DevelopinganelectricalmodelfortheDCmotorasaload Experimentallyfindingmodelparameters Performingdesignandsimulationusingmodels Hardwareimplementation,verification,andtesting
ECEN2830
ElectronicsDesignLaboratory
Robotplatform
TwoDCmotors,eachdrivingawheel
wheel IDC
motor shaft wheel shaft
VDC
+ _
DCmotor
12 3 4
64:1 gear
ECEN2830
ElectronicsDesignLaboratory
DCMotorbasics:TorqueT
righthandrule _ IDC VDC +
Vectoralignedwith theconductorof lengthl,direction alignedwith currentdirection
Armature winding
IDC
Force[N]
F I DC l B
Current[A]
Torque[Nm]
T kI DC
k =motorconstant[Nm/A]
DCMotorbasics:ElectromotiveForce(EMF)
Faradayslawofinduction righthandrule _ IDC VDC +
Rateofchangeof magneticflux throughthe armaturewinding
Armature winding
IDC
VEMF
InducedEMF[V]
d dt
VEMF k
InducedEMF[V]
Speed[rad/s]
k =motorconstant[Nm/A],[V/(rad/s)]
Diagramfrom:http://www.animations.physics.unsw.edu.au/jw/electricmotors.html ECEN2830 ElectronicsDesignLaboratory 6
DCmotorequations
Electricalmodel(armaturecircuit)
VDC RM I DC
VEMF k
Mechanicalmodel
dI DC LM VEMF dt
d TJ B Tload dt T kI DC
Tload Tint Text
J =momentofinertia B =frictioncoefficient
Loadtorqueisacombinationofinternal gearboxloadandexternalload
ECEN2830
ElectronicsDesignLaboratory
DCmotorequivalentcircuitmodel
IDC + VDC _ VEMF = k + T = kIDC J 1/B Tload LM RM
VDC RM I DC
dI DC LM VEMF dt
VEMF k
Requiresmeasurementof inputterminals,VDC andIDC
Considerhowtomeasureallcircuitparametersfromthemodel
Opticalencoder
ECEN2830
ElectronicsDesignLaboratory
Speedconversions
Example:wheelspeedis1 rotationpersecond:1rps
n =60rpm =2 rad/s=6.28rad/s nm =64*60rpm=3840rpm fenc =12*nm/60=768Hz
n =wheelspeed,rotationsperminute[rpm] n/60=wheelspeed,rotationspersecond[rps]
2 f enc 12 64
ECEN2830
ElectronicsDesignLaboratory
10
Opticalencoder:direction
counterclockwise
Encoderpulse outputA Encoderpulse outputB
clockwise
Encoderpulse outputA Encoderpulse outputB
InLab2,onlyoneencoderpulseoutputisneeded Optionalextracreditusesbothpulsestodeterminedirection
ECEN2830
ElectronicsDesignLaboratory
11
Encodercircuit
ECEN2830
ElectronicsDesignLaboratory
12
Inputandoutput portsdefined
DCMotorSpicemodel
Internaltorqueload fromgearbox,Tint
DownloadthemodelfromtheLab2website Onlyeditthemodeldesignatedparameters
ElectronicsDesignLaboratory 13
TestingSpicemodel
Externalloadtorque Text attachedhere
Simulationsetupto 1. Startmotor:bringupVDC,overfirst1ms
2. Pulseloadtorque:0A(noload)forfirst50ms,1Afornext50ms 3. Stopmotor:bringdownVDCfrom100msto101ms,10Vto0V
ECEN2830
ElectronicsDesignLaboratory
14
MotorSimulationResults
Considerwaveformsandmodelineachmode:motorstart,loadchange,motorstop
IDC + VDC _ VEMF = k + T = kIDC J 1/B Tload LM RM
VDC RM I DC LM
dI DC VEMF dt
VEMF k
ECEN2830
ElectronicsDesignLaboratory
Findingmodelparametersfromexperiments
RM fromlockedmotortest k fromspeedasafunctionofvoltage,unloadedmotor B andTint frominternallosses,unloadedmotor J fromatransient:considerpoweronorofftransient
IDC + VDC _ VEMF = k + T = kIDC J 1/B Tload LM RM
VDC RM I DC LM
dI DC VEMF dt
TJ
d B Tload dt
VEMF k
T kI DC
ECEN2830
ElectronicsDesignLaboratory
16
Lab2objectives
PartA MeasureDCmotorcharacteristics DevelopaSpicecircuitmodelfortheDCmotoranddetermine modelparametersbasedonexperiments Validatethemodel:compareexperimentalandsimulationresults PartB UseDCmotorSpicemodeltodesignaspeedsensor(tachometer) circuitthatoutputsvoltageproportionaltowheelspeed Build,testanddemothespeedsensorcircuit
ECEN2830
ElectronicsDesignLaboratory
17