-
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.7.1 (ex2.6.1) #49
Comments
@RoboDurden and how can I use your server to build gen 2 firmware I can only find option to use gen 1 and I've successfully flashed gen1 with uart mode |
For this firmware you need to install Keil ide if you need to compile a new binary. C6 only has 32 kB but this is enough for this simple gen2.x firmware :-) Please trace the three hall pins and make sure that the 6 monsfet pins are the standard configuration. See defines_2-0.h 2.6 has not been traced yet. But if you have the three hall sensors and the six mosfet and maybe the green and red led I will add a defines_2-19.h for you and you could start testing. But you should by all means use a constant current power supply with 1-2 A max ! |
Please add photos of the housing / outside so people can see from the outside what is inside. What do you mean with 'the wheel is very bad it only have 3 parallel wire " ? |
@RoboDurden |
i am hardware guy thats why im here looking for code from more intelegent people like you can you please compile firmware for me i am afraid to use keil to compile my self if not for your server i will not attempt this project so thanks allot i have got a stlink v2 adapter but i have taken it apart and it is fake with apm32 insted of stm32 is there any way to repair it or where can i get a proper one i have a lab bench power supply so i am ready to test firmware and btw the battery is also of low quality its only 1 cell in parallel one of the worst ive seen so i will use lab bench power supply |
Good job . Keil is really very simple. You might have more problems installing the bin file.. Yes, gate driver chips should prevent a short cut. With new binaries it is really recommended to start with 1-2 Ampere max. |
I hope I didn't got too many pin wrong so it'll work in few try |
PA14 = SWCLK and PA13 = SWDIO
cheap clones flash just as nicely as stLink. And run windows St-Link-Utility to unlock the bootloader and enable all option bits.. plastic wheel might be good when weight is a problem. Like robot arm.. |
There might be a little smd led on board that is not yet traced:
|
I will try to flash when I'm home |
no you test a board that you have not yet flashed to see if some little red led shows up. If not then we do not have such a little led. no problem. There are applications like lawn mover, where 350+ Watt are not needed anyway. |
i have tested board with original fw no led is found |
i have just tested the remote dummy firmware |
Which two phases did you need to swap ? Try connecting the esp32 to PB6 and pb7 |
i swapped yellow and green |
With only one uart header you can use my uartBus protocol to control each single motor by esp32. |
I have connected to the uart and when I connect USB to serial and baud 19200 it send something that is not humanly readable |
Is the serial protocol compatible with gen1 board so I can connect all tx in parallel so they move at same speed or is there a better way to control multiple gen1/2 boards with one esp |
no my protocol is not compatible to gen1
your esp32 log output does not really makes sense to me. And it looks as if the checksum at the end of the transmitted message is always 0 (tmpFeedback.checksum). But as i do see CD AB, you indeed do seem to receive the hoverboard data. Sorry i will not be able to help you with this in the next days. |
ok i will test the new hall mapping tomorrow i am using the testspeed example but modify the serial to serial2 because serial1 does not exist on esp32... the one you have is esp32s2 not the original esp32 have you change the led pin because it seems to be wrong
is there any more pins that seems to be missing i need to check to make it fully support or sth else |
when log data is correct you can verify battery voltage and current DC. Sorry, no more compilations from me today. Good night from Germany. |
where can i download keil without log in goodnight from China |
Don't understand what you mean with comperator area :-/ |
the area of ok06 comparator ic where the adc is connected to |
i have installed keil where can i download the 2.6.1 source to try out and where to edit |
Simply open Hoverboard.uvprojx with the Keil ide (or doubleclick). |
current sens pin is a6 |
In
You can defines those two already in defines_2-6.h to get correct readings for this layout.. I assume that you now can compile yourself :-) |
i think i have sucessfully build my self |
yes it really worked! |
i just realized this board actually already exist since the second issue already lol #2 |
As you have more insight into the pin tracing of your 2.6.1, it would be nice if you compare the pcb with the photos of the 2.6 layout in the Schematics_2.6 folder. |
to me it looked the same from the picture |
the buzzer is on master for 2.6 but on slave for 2.6.1 |
For the advanced FOC control (which needs more than 32kB MCU), at least two phase currents are needed. I have reached my train station and will make a few days break from my outdoor life. |
it have the dual opamp fitted i just removed it to find the current dc pin but infact current dc is connected to the adc directly and the opamp is for 2 phase current |
Maybe I should compare this gen2 board with gen1 board which is using eferu foc to see if it really did make Any difference |
Can this layout be added to readme as ready now |
No it looks to be 99% ready. |
Ok |
you have deleted keil thats very unfortunate i also want to install on my laptop but its ok ill transfer the file my self |
Thanks @AILIFE4798 for adding the HAL library from that mm32 examples with a pull request !
This has to be ported to the MM32 style:
It does not make much sense trying to port the Gen2 code line by line. But i fear i will not have the happiness to write an entire new firmware for a 32 kB mcu which will not really fit into the Gen2.x code. Need to take a break :-/ |
I think just use some #ifdef for different microcontroller will do It's not on a hurry hardware will take a while to arrive although I believe allot of people have the hardware to test if you would finish it before I got |
With all the documentation this repo has become to big anyway. |
thats a very good idea |
Oh, i should have posted this to the 2.8 issue. |
I have a board very close to layout 2.6 I'm not sure if I can use that or to open another one
![IMG_20240104_013702](https://private-user-images.githubusercontent.com/142502122/293989012-e6a5d357-7f86-4a52-a140-3b1a2e0a4ac8.jpg?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MjM0NDg1MDQsIm5iZiI6MTcyMzQ0ODIwNCwicGF0aCI6Ii8xNDI1MDIxMjIvMjkzOTg5MDEyLWU2YTVkMzU3LTdmODYtNGE1Mi1hMTQwLTNiMWEyZTBhNGFjOC5qcGc_WC1BbXotQWxnb3JpdGhtPUFXUzQtSE1BQy1TSEEyNTYmWC1BbXotQ3JlZGVudGlhbD1BS0lBVkNPRFlMU0E1M1BRSzRaQSUyRjIwMjQwODEyJTJGdXMtZWFzdC0xJTJGczMlMkZhd3M0X3JlcXVlc3QmWC1BbXotRGF0ZT0yMDI0MDgxMlQwNzM2NDRaJlgtQW16LUV4cGlyZXM9MzAwJlgtQW16LVNpZ25hdHVyZT01NDY5NGM3Zjg5N2RjYmIzODJhNzQ4MDFkMWIwOGFhZGVmYTA0ZDE2MWJiNDk5MzU5MzRiNTJkNWEyYjBhOTM5JlgtQW16LVNpZ25lZEhlYWRlcnM9aG9zdCZhY3Rvcl9pZD0wJmtleV9pZD0wJnJlcG9faWQ9MCJ9.-KvtahiqQffvrEL14oGDML6WhKnpMJ9PG7u9Xeslapw)
![IMG_20240104_013749](https://private-user-images.githubusercontent.com/142502122/293989025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S1hYWJmLTQ5MDcyYjJlOWEwOC5qcGc_WC1BbXotQWxnb3JpdGhtPUFXUzQtSE1BQy1TSEEyNTYmWC1BbXotQ3JlZGVudGlhbD1BS0lBVkNPRFlMU0E1M1BRSzRaQSUyRjIwMjQwODEyJTJGdXMtZWFzdC0xJTJGczMlMkZhd3M0X3JlcXVlc3QmWC1BbXotRGF0ZT0yMDI0MDgxMlQwNzM2NDRaJlgtQW16LUV4cGlyZXM9MzAwJlgtQW16LVNpZ25hdHVyZT02ODNjOTVkNDJlOWMwOTk1NDUxNWJiZjUwYjk5NGI3ZTI3ZTkyMTRhMGM0MWVmZWQxN2IzYzRlZDI0ZmJkNDU4JlgtQW16LVNpZ25lZEhlYWRlcnM9aG9zdCZhY3Rvcl9pZD0wJmtleV9pZD0wJnJlcG9faWQ9MCJ9.5tlqFvuD1ZHsjn4c6e0JVmvSO4lejDYIrYONgfbredI)
If it is needed I can help trace wire pinout I really want support asap
Here is some as clear as I can get pictures because phone camera quality is bad
Master board is with power button and Bluetooth and slave board is with buzzer
Mcu:gd32f130c6t6(I heard that the rom is too small so it cannot support this firmware?)
Imu:854lc1(no info on Google)
Gate driver: eg2131
The board is got from the cheapest most common brand hoverboard in China called AERLANG(please don't buy it the quality of the wheel is very bad it only have 3 parallel wire but I got mine for free)
I have some follow up question to ask because I want to make a robot with 6 wheel and I have 2 gen 1 hoverboard and this cheapo one is there any way to control these together because it's very hard to buy gen 1 hoverboard
The text was updated successfully, but these errors were encountered: