-
Notifications
You must be signed in to change notification settings - Fork 27
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
A GD32Gen1 board with gd32f103rct6 #77
Comments
Go to EFeru GitHub repo and start an issue there. See the defines.h in his firmware. |
Sorry, maybe I should change a way of thinking. I wonder if it is possible to modify the source code of Gen2 to compile the firmware for this board to use. |
EFeru firmware has FOC motor control. |
gen 2 can support f103 also ,so it should be able to drive one of the motor at least, the motor pin is also the standard one |
it is not possible to modify the eferu firmware for different layout,because all the pinmodeAf things is hard coded,and the adc channel is also same,not to say this board uses uart2,uart3,uart4,which s different from the generic gen1 |
This would be the place oop would shine, adding a second motor is very easy, just initialize another object |
No, i already had that hope for the Gen2 SimpleFOC C++ platformIO project here on my github account: https://github.com/RoboDurden/Split_Hoverboard_SimpleFOC The 6 mosfets need the Advanced Timer0. And the next 6 mosfet of the second motor need another advanced Timer. I am no longer very hopeful to continue with the Gen2_SimpleFOC. Even if it is already running with I2C control. @hiliving could use it for his Gen1 board to drive one motor.. The SimpleFOC class library is so complex (and i even added more classes like Hoverboard and even more classes to come like Remote), that i think i will give up on that. I rather hope that you @AILIFE4798 will port your Gen2_MM32 to GD32, add FOC and i can happily delete this repo here (= hand it over to you) |
The future is mm32, at32, maybe lks32, so we should move on to support a gen1 with mm32 and not need to go backwards |
Some of the mm32 gen1 board still have foc capabilities, but more and more is like the$2 gen2 mm32 boards (and the one you have is also not foc capable), no longer have foc capabilities |
This is a new board of Gen1, yet the pins are somewhat different.I have marked all the Pins, but I don't know how to modify the Gen1 source code to compile the firmware. Can you give me some guidance? Which codes need to be modified?
![gd32gen1](https://private-user-images.githubusercontent.com/13884154/319982484-220829d2-f455-4573-9ee5-07f3cf757ef2.jpg?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MjU5ODkyMTQsIm5iZiI6MTcyNTk4ODkxNCwicGF0aCI6Ii8xMzg4NDE1NC8zMTk5ODI0ODQtMjIwODI5ZDItZjQ1NS00NTczLTllZTUtMDdmM2NmNzU3ZWYyLmpwZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNDA5MTAlMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjQwOTEwVDE3MjE1NFomWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPTlmYzdmMGMzMTczNWEwZTI3NGIxMTBlNzYxYTdhZjg1ODhkNzIyNGRjOThmYTM1NDVhYWZhYTcwNjk1MDM4NWYmWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0JmFjdG9yX2lkPTAma2V5X2lkPTAmcmVwb19pZD0wIn0.braqkMKvM8l0gkqdyqq1K5MZ0TdAyJH3Kp-0y8O8Ma4)
Thx ,and Extremely grateful .
The text was updated successfully, but these errors were encountered: