-
Notifications
You must be signed in to change notification settings - Fork 31
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Added 2FOC V3.5 application. #91
Conversation
…motor control are as aligned as possible: the rotor encoder is used for field control and the Hall effect sensor is used to reset the encoder (2.5) or the index tick is used for the same purpose (3.0).
Some improvements have been added:
|
We have to test on the robot before merging the PR. |
@ale-git why have we duplicated the whole folder? Are maintaining 2 releases? If it's the case it's better to create release branches. It makes it easier to compare/merge changes between the 2 releases. |
…motor control are as aligned as possible: the rotor encoder is used for field control and the Hall effect sensor is used to reset the encoder (2.5) or the index tick is used for the same purpose (3.0).
Discarded files generated by the IDE or the build, since they are IDE, platform and sometimes user dependant.
Merge from commit 'cd0f640': - Ported changes in 2FOC-V35 folder into 2FOC-V3 folder - Merged these changes with base of 2FOC_V35 branch
Moving the files from 2FOC-V35 to 2FOC-V3@ale-git I ported the changes into the original folder
Once the review is finished, we can delete the files in @marcoaccame, as agreed with @ale-git , we moved the files instead of keeping duplicates, for the following reasons:
I suggest we discuss on this today on skype (I'm working from home today and tomorrow morning), or tomorrow afternoon. |
We agreed with @ale-git to revert the HES/ADC offset calibration to the former original method: PWM on all phases is set to OFF prior measuring the offset currents on terminals A and C. Refer to #96 (comment). Changes pushed in 41b228b. But this change was done on the old folder 2FOC-V35. Porting now to 2FOC-V3. |
- Ported changes on 2FOC_V3 folder. - Removed 2FOC_V35 folder.
ciao @ale-git , here are the tests I think would be performance improvement indicators for this pull request, illustrating the two main expected improvements:
Here's a proposal for the tests to run... Test 1: clean current waveform on each stator phaseWe have to verify that there are no current discontinuities through a full electric cycle. These discontinuities were previously observed at the switching between sectors 1<->2<->3<->4<->5<->6, while the rotor position detection was hybrid, using the optical encoder and the HES. Two possible approaches...
Test 2: stator direct field (Id) always well aligned with the rotorAfter a few laps and switching between sectors 1 & 6, there could be a slight misalignment between the stator field and the rotor. We can measure that error through the following procedure (while the rotor has no mechanical load):
@ale-git, does this seem reasonable with respect to the new rotor alignment you have implemented? |
having talked w/ @ale-git we can close this old PR w/out merging and delete the branch |
Now the 2.5 motors are controlled in a way as much similar as possible to 3.0 motors in the experimental release V3.5 of the 2FOC firmware: