Code Generation for Resolver
Hello,
I have implemented the FOC algorithm for PMSM using an encoder that gives A, B, and Z signals. I have tested this code on Typhoon C-HIL employing F28335, results are promising. I would like to replace the encoder with a resolver that outputs sine and cosine waveforms. I have been through example simulations of resolver but looks like it is not compatible with code generation.
Is there a way to make the resolver compatible with the code generation?
The motor drive hardware setup I am going to test works with the resolver.
Answers
-
One way is to build a circuit outside the F28335 which can generate the A, B, and Z signals from the revolver's outputs.
Another way is to feed the sine and cosine waveforms into the ADC, then use the PSIM's control blocks to build your algorithm to calculate the speed.
An example "examples\Motor Drive\position sensors\Resolver PMSM Drive.sch" shows how to calculate speed from a revolve. You need to insert the ADC between the revolve and the calculation circuit:
0