casainho
10 GW
- Joined
- Feb 14, 2011
- Messages
- 6,047
I did not yet read. For what I saw on the code from Infineon for FOC, the FOC code is closed source and distributed as a library. So yes, there must be way configure the library and maybe is that tool. Maybe a good idea is to use the original tool to have an initial configuration. I hope their FOC library give us all that is needed so we can avoid to implement all that / reuse your FOC codestancecoke said:I will not use a middrive motor, my highest priority is the absolute silence of the drive, therefore I use BionX direct drives in my bikes, as you know.casainho said:@stancecoke, are you planning to help developing the firmware? if so, are you using or planning to use TSDZ2?
I can help with the basic FOC commutation, if help is needed. I strongly recomment to use the DAVE APP configuration tool, that is described in the pdf document (comes with the zip file of the FOC example), to generate the code for the hardware initialization (ADCx, Timerx, Interrupts....). This will save 4 weeks of reading the reference manual....
You can then edit the generated code further in Visual Studio Code.
regards
stancecoke
DAVE APP configurator.JPG
DAVE APP configurator_1.JPG
DAVE APP configurator_2.JPG
I also value more and more the silence... But I do MTB and only mid drive motors are suitable.