Skip to content
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

[Question] compatibility of another layout #2

Open
grafvonvolta opened this issue Feb 22, 2023 · 6 comments
Open

[Question] compatibility of another layout #2

grafvonvolta opened this issue Feb 22, 2023 · 6 comments

Comments

@grafvonvolta
Copy link

Hi Robo,

thank you for the repo.

I have a question regarding another layout.
Screenshot_20230222-194759

It has a GD32F130C8T6.

Do you know by any chance if this layout is compatible to 2.1 or 2.2? If not, I would have to figure out/confirm the pin mapping in defines.h, correct? I guess the most crucial is the mosfet output.

Thank you in advance

Max

@grafvonvolta grafvonvolta changed the title [Question] [Question] compatability of another layout Feb 22, 2023
@RoboDurden
Copy link
Owner

Would be awesome if you test the pin connections of this board. Yes, only a new defines_2-5 would/should be needed.
And yes, the 6 gate driver pins are crucial.
It looks to have three gate driver chips
That would make testing the pins easier as you should have a direct connect from the gd32 to the two input pins of those half bridge gate drivers.
Would also be great if you could send detailed photos to roland@robo4future.de where every chip description is readable.

Then I would add an official 2.y layout to my repo and we could see how many more people would love a defines.h for that layout.

I think I also have such boards at my other location (solar warehouse).

Thanks for using my repo.

@grafvonvolta
Copy link
Author

OK great. I will send you some pictures soon. Let's see how far I get with the mapping without destroying the mosfets ;). I have two of those boards and one 2.3. So I'm also curious to get that one to work. .

@RoboDurden
Copy link
Owner

When you attach a needle to one pole of a multimeter and select the beeping diode test mode, it is quite easy to find the tiny gd32 pins. And when you look at the PDF of your gate driver chips you can quickly target the 6 MOSFET driver pins with the multimeter pole that has no needle.
There should be an op amp chip on the layout which outputs the analog inputs of the current.

The serial pins only have a resistor between header and gd32. But the diode beeper will only work behind that SMD resistor :-/

Digital output is harder to find because a little transistor is driven.

It might be possible to program a binary that sets all possible Io pins to output low and send loops through all pins only setting one pin to pwm.
As the MOSFET half bridges need two MOSFET to open for a short cut, this should be safe.
The st-link dongle has a serial one wire debug interface.. don't know but maybe this could be used to log the output of that analysing binary..
Otherwise the tx pin of one of the serial ports would have to be identified manually.

But I think it will be faster if people like you would have the happiness to use a needle for 60 minutes :-)

Be aware that the orientation of the writing in the gd32 is misleading !! Find the little dot to see pin 1. My many pictures of gen 2.0 should help you.

@RoboDurden
Copy link
Owner

RoboDurden commented Mar 9, 2023

I have not received any detailed pictures so far :-/

@grafvonvolta
Copy link
Author

Hi,

here is a picture of my board. So far I could confirm that the mosfet and HAL pins are as in version 2.0 an 2.1. I did not check any leds. I did not manage to get a rotation yet. I plan to do some debugging.

I'll keep you updated.

hoverboard

@RoboDurden
Copy link
Owner

You might want to follow the progresse in this parallel issue: #3

So you can debug (step through code) with Keil and st-link dongle ?

When you get the serial communication running you can install my Arduino code and get the log data.
Then you will see if the two ADC inputs are correct.

Is the on/off button working ?

@grafvonvolta grafvonvolta changed the title [Question] compatability of another layout [Question] compatibility of another layout Mar 18, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants