Transcription of InstaSPIN(tm) BLDC Lab - TI.com
1 ApplicationReportSPRABN7 November2011 instaspin MCU(DRV8312-C2-KIT) (theDRV8302-HC-C2-KITorDRV8301-HC-C2-KIT canalsobeused)witha PiccoloF28035controlCARD subsystemtorunthesensorlessInstaSPIN bldc technique. (.out) , ,RSTB, andRSTC mustbein ,MOB, :Whatdoyouthinkwillhappenif youconnectthemotorwiresin a differentorder?(a)Thebrushesin themotorwilloverheatandcouldcausea fire.(b)Thecurrentin thewireswillreversethepolarityoftheanti- protonsin themagneticfield,causinganantimatterexpl osion.(c)Nothingwillhappenexceptthemotor mayspinin theoppositedirection.(d)Youcouldpotentia llydamagetheDRV8312,resultingin yourimmediateterminationfromTI.(e)Thisis a trickquestionbecausetheconnectoris keyed,prohibitingthemotorwiresfrombeingc onnectedin anyotherwaythanwhatis ,controlCARD, November2011 instaspin BLDCLabSubmitDocumentationFeedbackCopyri ght 2011,TexasInstrumentsIncorporatedUsingth eInstaSPIN BLDCLabSPRABN7 November2011 SubmitDocumentationFeedbackCopyright 2011, SetupandProgrammingTheincludedcontrolCAR D comeswiththeswitch(SW3)settoholdtheXDS10 0v1emulatorin JTAG reset(switchis up(OFF)) ,allowJTAG accessbysettingSW3down(ON).
2 (CCS4). NewTargetConfiguration(seeFigure3). (forexample, ). :TMS320F28035andclickSave(seeFigure4). November2011 instaspin BLDCLabSubmitDocumentationFeedbackCopyri ght 2011,TexasInstrumentsIncorporatedUsingth eInstaSPIN ,rightclickonyournewTargetandclick"Launc hSelectedConfiguration"in thecontextmenu(seeFigure5). "Target->ConnectTarget"(seeFigure6). ,clickthemenuitem"Target-> ". "Browse"buttonandfindthefile" "fromUSBS tickorC:\ti\controlSUITE\development_kit s\DRV8312-C2-KIT_v1XX\~ "Open"andthen"OK".Theflashis BLDCLabSPRABN7 November2011 SubmitDocumentationFeedbackCopyright 2011, "TerminateAll"(seeFigure7) :\ti\controlSUITE\development_kits\DRV83 12-C2-KIT_v1XX\~ youseethemessageshownin Figure8, click"Yes". "Connected"in thelowerlefthandcorner(seeFigure9). AlsoverifythattheFaultStatus,DCBus, fullquickstartguidefortheInstaSPINBLDCGU I canbefoundinC:\ti\controlSUITE\developme nt_kits\DRV8312-C2-KIT_v1XX\~ November2011 instaspin BLDCLabSubmitDocumentationFeedbackCopyri ght 2011,TexasInstrumentsIncorporatedUsingth eInstaSPIN ,click"EnableMotor"(seeFigure10).
3 :DutyCycle= !YoujustdidInstaSPIN! ,butInstaSPINBLDC andtheGUIalloweasiertuninginformationtob egatheredforthemotorin "StartContinuousRead"ontheuppergraphs(se eFigure11). BLDCLabSPRABN7 November2011 SubmitDocumentationFeedbackCopyright 2011, (seeFigure12):TopGraph:Displaystheper-un it(PU) :Displaystheper-unit(PU)PhaseA :Displaystheper-unit(PU)PhaseA , thecommutationis happeningtoolateascanbeseenbytheovershoo twheretheredarrowis pointingin November2011 instaspin BLDCLabSubmitDocumentationFeedbackCopyri ght 2011,TexasInstrumentsIncorporatedUsingth eInstaSPIN "FluxThreshold"toa smallervalue( )untilthecommutationhappensattheinflecti onpointofthevoltagewaveform(seeFigure14) . feelingfortuningis , ,torqueresponsealsoimprovesbyloweringthe fluxthreshold(canyouguesswhy?)
4 It turnsoutthata bldc motorworksverymuchlikea ,youwanttoadvancethesparktimingbecauseit takesa finiteamountoftimetoignitethefuelvaporin theengineisrunningathighRPM,bythetimethe fuelhasignitedandtheforceoftheexplosioni s feltonthepiston, takesa finiteamountoftimetocommutatea bldc motor(getthecurrentextinguishedin onecoilandbuiltupin themotoris runningathighRPM,bythetimethecommutation takesplace, justlikeadvancingthesparktimingin BLDCLabSPRABN7 November2011 SubmitDocumentationFeedbackCopyright 2011, :CascadeSpeedControlWithInstaSPINBLDCW iththeControlModestillsetto"DutyCycle", nocontrolloopregulatingthespeed, ,enableeither"Velocity"modeor"Cascade" "Cascade"onthe"Settings" "Main"tabagainandverifythattheControlkno bis startsupsmoothlyandrampstoa theMotorSpeedRPMwindow(seeFigure16).)
5 ,themotoreventually9 SPRABN7 November2011 instaspin BLDCLabSubmitDocumentationFeedbackCopyri ght 2011,TexasInstrumentsIncorporatedUsingth eInstaSPIN becauseoftheintegratorsthathavebeenenabl edin a negativefeedbackcontrolsystemcannottoler ateanysteadystateerrorandwilldriveit tozero(thatis,thecommandedvalueandthecon trolledvaluewillbeequal).However,theresp onseofthesystemis ratherspongy,isn t it?Inotherwords,thisis nota "stiff" , "Settings" :1 msRampStartSpeed:50 RPMRampEndSpeed:500 RPMKp(current) (current):20 StartupCurrent(PU) (velocity) (velocity):60 VelocityLoopLimit(PU) :8 polesBaseElectricalFrequency(Hz):200 ControlMode:CascadeIf setcorrectly, t changedtheControlknobonthe"Main"tab,it shouldstillbesettoa not,changeit ,enablethemotor,andverifythatit startsupsmoothlyandachievesa BLDCLabSPRABN7 November2011 SubmitDocumentationFeedbackCopyright 2011, BLDCS olutionAgain, muchstifferin termsofmaintainingthecommandedspeed, thehighergainsettingsresultin muchbettertrackingperformance,thenwhydid n t wespecifythemasthedefaultvaluestobeginwi th?
6 Toanswerthisquestion,let s ,slowlydecrementthecommandedspeedonenumb erata , :Sowhywouldthesystembestableathigherspee ds,butunstableatlowerspeeds?(Thisisa trickyone).Thinkaboutit fora :It hassomethingtodowithhowthevelocityfeedba cksignalis :Inordertomeasurevelocityin a sensorlesssystem, spinningathighspeed,therearemanycommutat ionintervalspersecond,whichmeansthatthev elocityfeedbackvalueis ,whenthemotoris spinningatlowspeed,thecommutationrateis low,whichmeanstheupdaterateforthevelocit yvalueis ,thevelocityfeedbackvaluebecomes"stale"w henit isnotupdatedfora ,thereis a phaselagbetweenthetruevelocityandthemeas uredvelocitywhenthevelocityvalueis ,andwhenit is allgone, (forexample,fans,blowers,andcompressors) ,thisis notaproblem,becauseit doesn t (forexample,washerdrumagitation),lowspee doperationis a requirement,whichsuggeststhata differentcontrolschemeis "EnableMotor",closetheGUI, November2011 instaspin BLDCLabSubmitDocumentationFeedbackCopyri ght 2011, s revieweachofthepanelsin.
7 TheEnableMotorcheckboxis usedtostartorstopthemotorControlModedrop downboxallowstheselectionoffourdifferent controlmodes: DutyCycle:Themotoris commutatedusingthesensorlessalgorithmbut is drivenin anopen-loopdutycyclemode. Current:Themotoris commutatedusingthesensorlessalgorithmwhi lethecurrent(torque)isregulatedusinga highspeedin thismode. Velocity:Themotoris commutatedusingthesensorlessalgorithmwhi lethemotorspeedis regulatedusinga a PWMdutycycle. Cascade:Themotoris commutatedusingthesensorlessalgorithmwhi lethemotorspeedis regulatedusinga a motorcurrentcommandthatis regulatedbya usedtoadjustthemotor s separatefunctionforeachcontrolmode: DutyCycle:TheknobadjuststhePWMdutycyclet othemotor. Current:Theknobadjuststheper-unit(PU)com mandedcurrentthroughthemotor. Velocity:Theknobadjuststheper-unit(PU)mo torcommandedspeed.
8 Cascade:Theknobadjuststheper-unit(PU) TopGraph:Displaystheper-unit(PU)integrat edmotorflux. SecondGraph:Displaystheper-unit(PU)Phase A BEMF waveform. ThirdGraph:Displaystheper-unit(PU)PhaseA currentwaveform. FourthGraph:Displaysthemotorspeedin ;theMotorSpeedgraphis BLDCLabSPRABN7 November2011 SubmitDocumentationFeedbackCopyright 2011, (seeFigure18). is November2011 instaspin BLDCLabSubmitDocumentationFeedbackCopyri ght 2011,TexasInstrumentsIncorporated*()()N cycles 60 seconds 2 revolutionsN 60 2 PUrevolutionsPUminuteminutePsecondP cycles**= ,in ms, "good."RequiredConsecutiveCommutationsNu mberofrequiredconsecutive"good" (P) (N)Inputthemaximumfrequency(incyclespers econd) shownin Equation1.(1)WherePUis thePerUnitknobvalue(0to1)fortheknoblocat edonthe"Main" rotorpolesresultsin a motorspeedof3000 RPMwhentheknobis activethemotoris drivenwithconstantcurrentratherthana BLDCLabSPRABN7 November2011 SubmitDocumentationFeedbackCopyright 2011, (c)Nothingwillhappenexceptthemotormayspi nin November2011 instaspin BLDCLabSubmitDocumentationFeedbackCopyri ght 2011,TexasInstrumentsIncorporatedIMPORTA NTNOTICET exasInstrumentsIncorporatedanditssubsidi aries(TI)
9 Reservetherighttomakecorrections,modific ations,enhancements,improvements, s accordancewithTI s ,testingofallparametersofeachproductis , ,eitherexpressorimplied,is grantedunderanyTIpatentright,copyright,m askworkright,orotherTIintellectualproper tyrightrelatingtoanycombination,machine, orprocessin licensefroma thirdpartyunderthepatentsorotherintellec tualpropertyofthethirdparty,ora TIdatabooksordatasheetsis permissibleonlyif reproductionis withoutalterationandis accompaniedbyallassociatedwarranties,con ditions,limitations, safety-criticalapplications(suchaslifesu pport)wherea failureoftheTIproductwouldreasonablybeex pectedtocauseseverepersonalinjuryordeath , thesafetyandregulatoryramificationsofthe irapplications,andacknowledgeandagreetha ttheyaresolelyresponsibleforalllegal,reg ulatoryandsafety-relatedrequirementsconc erningtheirproductsandanyuseofTIproducts in suchsafety-criticalapplications, , military/aerospaceapplicationsorenvironm entsunlesstheTIproductsarespecificallyde signatedbyTIasmilitary-gradeor"enhancedp lastic.
10 " solelyattheBuyer's risk,andthattheyaresolelyresponsibleforc ompliancewithalllegalandregulatoryrequir ementsin ,if theyuseanynon-designatedproductsin automotiveapplications, , :TexasInstruments,PostOfficeBox655303,Da llas,Texas75265 Copyright 2011,TexasInstrumentsIncorporat
