-
Notifications
You must be signed in to change notification settings - Fork 25
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.1.13 (ex2.15) (Several more board layouts) #38
Comments
Gd32f130c8 MCU have the best usage. But you can upload four hi res photos to a new issue each and I do the gimp compilation and assign a new layout number. I then will change the issue title to contain the layout number. Forking might be better suited if you want to add new code functionality like a RemotePwm or torque control.. |
If you know how to add a MM MCU target to Keil this would help others. Look at the other MM MCU issue . |
Do you know the purpose of that additional white Hall cable of first layout? |
Hover1 is probably the best board as it has the two dual opamp 8pin chips that are needed for two additional phase currents. These are not needed for this simple firmware here but for the new simpleFOC firmware . |
My guess is that it controls blue LEDs on the wheel hub that turn on when you connect to Bluetooth. I will take the wheel apart and check though to let you know. |
Please do not copy/quote my words. These issues tend to get very long. Yes of course, another led output :-) |
FOC is for more efficiency or less noise. You are doing a good job with tracing the pins. You might already want to copy the defines_2-x.h to defines_2-15.h and fill in the pins you have already traced. The six MOSFET output pins are mostly the same
When you have the three hall sensors and the three main led, you could already compile a first single_RemoteDummy.bin But you for sure should have a 1A constant current power supply!!! |
I am going to order a CC power supply. It will be a few more days before I will be able to do any more testing. I will let you know how it goes. Thank you for your help! |
I can not download your pin tracing image :-/ |
So i added the 2.15 to this repo. When you have completed the hall sensor defines, you could already compile and test:
Also try to complete/confirm the other defines in defines_2-15.h Cheapest cc power supply is a 3A 60V step down converter: https://www.aliexpress.com/item/4001360810712.html |
Thank you for adding the 2.15 layout! I didn't get a chance to do much more circuit tracing over the weekend. I received the constant current power supply. I am trying to trace the hall sensor wires but to set them properly in the defines file but I am not clear how Hall_A, Hall_B, and Hall_C relate to the colors Green, Blue, and Yellow. Should the variables be renamed to the colors? |
You have to try all six permutations. I would like to program an auto tracer for so long now :-( In bldc.c the hall position is read at 16 kHz. But I never have the happiness to do it :,( |
I think I might be working with a board that has already let out its magic smoke (fried). :-( I tried to program this board several years ago and ran into issues after flashing it at one point. Currently, when connected to the CC power supply set to 42v and 1 A, when pressing (and holding) the power button in, the power indicator light flashes on and off rapidly. I tried setting it to 2A and I am getting the same response. I am currently unable to flash it because it won't stay on long enough. The power supply keeps switching between CC and CV. It seems like the load is too heavy. I don't even have the motor wires connected. Do they have to be connected when flashing? Anyway, the slave board was untouched when I was messing with this hoverboard a few years ago. I was thinking of trying to flash it but I am not sure how it would work since it doesn't have some of the components that the master has. |
Slave should be fine when powered directly with power supply but it might need the red voltage line on the slave cable to power the MCU . This can hold 5V or 14V depending on layout. Check the six MOSFETs of the master for short cuts. |
Better run the power supply at 26 volt. |
Oops... Two of my MOSFETs on my master are shorted. My slave board doesn't have any shorts on the MOSFETs. It looks like the slave cable supplies both 5v and 15v to the slave (if I trust the markings on the board). I'll need to see if I can figure out how to do that. |
Unsolder the two MOSFET. |
When I attempted to remove the bad MOSFETs, I messed destroyed several of the soldering pads on the board and lost a surface mount resistor in the carpet somewhere. :-(. I don't want to give up on my project so I am looking into using a different hoverboard that closely matches layout 2.7. I was thinking about swapping the processor on that layout with one that I can program using the ST-Link v2. Is that a bad idea? |
If it is a smd resistor from the mosfet gate drives, you can measure the reistance at the identical circuit of one of the other two phases. I think it is not worth the trouble to replace the MCU. And i myself do have a board with a MM processor. So i dream that one day some guy will show up who knows how to add the MM mcu as a target to the Keil project. Your Razor board has a nice GD32F130C8, so this might be 2.16 :-) |
As i have already added a defines_2-15.h to the repo, it would be good for the community if you continue with the slave board to succeed with making the motor spin and RemoteUart working.. |
I am going to try your Arduino sketch to run the motor back and forth later this afternoon. Thank you for your help! |
Be very careful, i have forgotten how far we have proceeded with pin tracing. |
i feel you trace too many lines so it becomes difficult to understand. |
I still can not download the images you post here: private-user-images.githubusercontent.com/37341137/28.... Good night from Germany. |
Ahh.. I see... that makes more sense. I actually have them traced properly (I just tested it) but I need to remove some of the extra BS that is causing confusion. After changing the hall ABC pinout in the compiler, I see that MOSFET_OUT is also on PA1 (same as blue). I tried commenting out that line and it didn't compile. I'll do a bit more investigation. Thank you for your help!! Goodnight! |
Set MOSFET_OUT to TODO_PIN |
Check if the three led pins are correct:
Then activate/uncomment The 6 mosfet output pins are very limited , so you only need to check some of the pins:
|
Thank you for encouraging me to push forward with this. I was able to map the hall sensors. Now I have a motor that is spinning smoothly back and forth!! That is awesome!! I also created a PR for the changes that are working for me. #41 |
#38 - Fix defines for 2-15 layout.
It makes me happy to have users who can really contribute to the project :-) With RemoteDummy working, the 2.15 layout is ready for others to build on :-)) Would be nice if you list here what other pins you also traced/confirmed : Onoff button input ? |
Please create a seperate issue for that razor board :-) Yes i did change the hold pin to
So there is a chance that when you flash the new binary to the master, it will keep power. If it does not turn off when pushing onOff again, then this definition is still wrong:
|
@andyshmandy are you willing to help with supporting the mm32 board as you also had the hardware |
Hello @RoboDurden! I have 3 hoverboards that I would like to reverse engineer as I have several project ideas in mind and I am too cheap to buy BLDC driver boards for them when they already come with what is needed. The layouts appear to be different than the ones that you have already added.
I would like to know how you would like me to proceed with adding layouts for these boards. Should I create a separate issue for each layout? Or should I add the new layouts to my fork and create folders for the new layouts and submit pull requests for them. Maybe it would be best to work on one at a time. Here are photos of the boards. In your opinion, which one would be best to start with?
Hover-1
![IMG_9821](https://private-user-images.githubusercontent.com/37341137/287294292-27398da5-ca04-4f93-86ea-1ff88bfbafb8.JPG?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MjM0NDgzNzIsIm5iZiI6MTcyMzQ0ODA3MiwicGF0aCI6Ii8zNzM0MTEzNy8yODcyOTQyOTItMjczOThkYTUtY2EwNC00ZjkzLTg2ZWEtMWZmODhiZmJhZmI4LkpQRz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50a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VhZGVycz1ob3N0JmFjdG9yX2lkPTAma2V5X2lkPTAmcmVwb19pZD0wIn0.wRxMmfCFGm8dFf0k__al0shnV2mwP5LXTbJOvh_dpEI)
Generic - YK201C
![IMG_9832](https://private-user-images.githubusercontent.com/37341137/287295021-4aa4110c-26de-4055-85b9-03c0032f7c73.JPG?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MjM0NDgzNzIsIm5iZiI6MTcyMzQ0ODA3MiwicGF0aCI6Ii8zNzM0MTEzNy8yODcyOTUwMjEtNGFhNDExMGMtMjZkZS00MDU1LTg1YjktMDNjMDAzMmY3YzczLkpQRz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNDA4MTIlMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjQwODEyVDA3MzQzMlomWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPThkYmE3ZmVlZWExMmI3MTkyYzcxNzk0ZTc3YzAwNzRiODM2N2Q2OWUwN2YyMTQ1ZTMwMTQ1ZDNkNDRiZDU3ZjgmWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0JmFjdG9yX2lkPTAma2V5X2lkPTAmcmVwb19pZD0wIn0.-eBR0jd6GNQI78f5s-MPhaNR7uQLh5dkEphgJ7hKrAU)
Thank you for all of your work on this project!
Andy
The text was updated successfully, but these errors were encountered: