-
Notifications
You must be signed in to change notification settings - Fork 29
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
Gen2.4.2 (MM32SPIN05) + EFeru FOC port !!! #96
Comments
The two phase currents as usually are taken from the on-resistance of the two low side mosfets. @trondin evaluates the phase current as The hoverboard mosfets usually have the HN75N09 which has something like 8 mOhm on-resistance
At 10A (=360 Watt) that would be a drain-source voltage of only 0.08 Volt ! |
I modified little bit code, but, probably you are right, voltage is too low. At least EFeru's torque mode works terrible, but voltage is fine. Both are with FOC_CTRL mode.
ADC - no need for DMA anymore:
and main eFeru's loop-interruption, just beginning
PWM frequency is 12 kHz, 16kHz is too much foe EFeru's algorithm and Cortex-M0. |
BTW, you are calculating average current, pulse current and voltage for ADC much bigger. With ADC reference voltage 1.2V situation is not dramatically terrible. |
How does motor behavior change in voltage mode if simply set
? If motor still spins nicely, then your EFeru port would applay to all MM32 boards, i guess. |
Sources are here https://github.com/trondin/MM32SPIN05_Hoberboard_hack |
Nice. With the makefile i might be able to add your repo to my online compiler: https://pionierland.de/hoverhack/ |
Okay, compilation succeeds and your repo is added to my online compiler. Only a hex (and .elf) file is generated, no .bin. |
It might be good to add a simple testserial.ino to your repo so people have an easy start for their ESP8266 / ESP32 or Arduino. |
Hex works well! BTW, do you know any cheap and easy available board with opamps for torque mode? |
Your Gen2.4.5 might be pin compatible with Gen2.4.2 that @AILIFE4798 is also working with. I am not sure if 2.4.1 is compatible. I these are my pinfinder results: Gen2.4.1 master, master-slave uart halla ( 0): 28 (PC15) uint16_t pinstorage[64]={28, 26, 27, 8, 32, 31, 23, 65535, 65535, 22, 15, 65535, 14, 65535, 19, 17, 65535, 65535, 65535, 65535, 65535, 65535, 65535, 65535, 65535, 65535, 65535, 65535, 65535, 65535, 65535, 65535, 56491, 31, 250, 0, 19200, 8192, 1, 30, 0, 10, 300, 1, 1, 42000, 32000, 1000, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0}; slave, bluetooth uart header
|
he already said he have exact same board as mine |
I see analog mosfet drivers on his boards so i did assign a new board id for the wiki. |
Yes. it is error in the picture, but schematic is correct - I mean UART. |
@trondin you should start an issue at the Eferu repo to get feedback why an FOC firmware is running without the two phase currents in VLT_MODE and if the missing phase currents are indeed the reason why SPD_MODE and TRQ_MODE do not run smootly. |
Yeah FOC control cannot be used without Phase Current, only sinusoidal can be used. |
Thank you Candas for the quick response :-) But people used to the EFeru firmware might be happy to go for it. |
he use COM_SPEED which is the worse control method, if he used SINE_VOLT itll perform at least better then the gd |
all mm32 board is using gate driver chip, it is required, mm32spin05 do not have direct drive capability like gd32, only other mm32 line have |
idk why you started new layout, and i already said mm32 shouldnt have a id |
@trondin , as you know how to create a makefile. It would be nice if you fork this Gen2.x https://github.com/RoboDurden/Hoverboard-Firmware-Hack-Gen2.x-GD32 firmware and add a makefile. Then i could add the Gen2.x to my online compiler as well. Yes, 2.4.2 and 2.4.5 might be very close. But the wiki board finders starts with identifying the type of mosfet drivers. |
there is version number on back of the board, if you want to make sure its exactly the same, mine is in 2.4.2 issue |
as you know how to create a makefile. It would be nice if you fork this Gen2.x Our boards are exactly same, here is backside of mine one: |
2.4.5 has analog gate drivers, 2.4.2 has three gate driver chips. Maybe put a permanent link to the by now $4 Aliexpress offer on your repo read.me |
now my repo is moved to gitlab |
okay i have changed the link on the read.me here. |
i just use whatever is useable, if you prefer me to use other git controller, i can |
gitlab is just the second most popular option, nothing more, |
okay. but i never understood why you hate 2fa ;-) |
offer a option is always nice, but not force me to use it, especially all my code is for micro controller, its not safety critical, i use my phone in flight mode, i always use a laptop, i know i can use a android emulator, but what if i need to log in onm other pc, its just asking for trouble |
thanks to @trondin , continuation from #22
The text was updated successfully, but these errors were encountered: