View Single Post
Old 09-27-2015, 05:59 PM   #2097 (permalink)
MPaulHolmes
PaulH
 
MPaulHolmes's Avatar
 
Join Date: Feb 2008
Location: Maricopa, AZ (sort of. Actually outside of town)
Posts: 3,832

Michael's Electric Beetle - '71 Volkswagen Superbeetle 500000
Thanks: 1,362
Thanked 1,202 Times in 765 Posts
Ya, the mulss takes a couple cycles off the normal multiply. I think because there are 4 variations:
mulss
mulus
mulsu
muluu

(signed signed)
(unsigned signed)
(signed unsigned)
(unsigned unsigned)

And if you know what type you are using, the compiler doesn't have to check and maybe saves a little time somehow?

Now for the sensorless,

Ealpha = Valpha - statorResistance*IAlpha - statorInductance*dIAlpha/dt
Ebeta = Vbeta - statorResistance*Ibeta - statorInductance*dIbeta/dt

(Valpha, Vbeta, Ialpha, and Ibeta are all just stuff that you get during the clarke and park transforms and inverse transforms. The steps are identical for ACIM and permanent magnet AC)

EDIT: OK I had made a mistake, and you can't just get the rotor flux angle that way. There's an offset that depends on the speed of the motor. Oh well. It's sort of working now though.
__________________
kits and boards

Last edited by MPaulHolmes; 09-28-2015 at 02:43 PM..
  Reply With Quote
The Following 3 Users Say Thank You to MPaulHolmes For This Useful Post:
dave koller (09-28-2015), e*clipse (09-28-2015), thingstodo (09-28-2015)