RoboDurden / Hoverboard-Firmware-Hack-Gen2.x

with different defines_2-x.h for different board layouts :-) Compiles with Keil version 6
GNU General Public License v3.0
89 stars 29 forks source link

Gen2.4.2 (ex2.8.1) #59

Open AILIFE4798 opened 9 months ago

AILIFE4798 commented 9 months ago

IMG_20240201_215601 IMG_20240201_215624 MCU:MM32SPIN05PFOP(32K) Gate driver: uni u3116s Voltage:5V!!!

No optical sensors is on this board It is pin compatible with Layout 2.8

AILIFE4798 commented 9 months ago

it worked on my 2.8.1 without tuning values but its good if you would also test it

AILIFE4798 commented 9 months ago

if you want to request feature also can but im already at 25k

RoboDurden commented 9 months ago

There are already some users here with mm32 boards. So a YouTube video with a walkthrough and a demonstration of your eeprom feature might motivate some to test it.

You can use ai text2speech if you do not want to speak yourself . Or only subtitles with nice techno music :-)

AILIFE4798 commented 9 months ago

i will make a video,but after its more complete i always used ai voice in my videos cuz i cannot speak english

RoboDurden commented 9 months ago

25k :-( I had dreamed that the mm32 libraries are more optimized when you mentioned these extremely low code sizes. So only the autodetect.c boosted your code size by 10k ?

AILIFE4798 commented 9 months ago

if you have used my firmware you will know why its so large the amount of strings in it is just not designed to be optimized cuz i dont have to with eeprom self programming autodetect can be seperate without user needing to compile them self so allinone is not needed so i can use fancy ui without worrying too much

RoboDurden commented 9 months ago

I am still skeptical that my autodetect will ever succeed 100% with all boards.

The selfHold and currentDC autodetect is too tricky for that.

So your eeprom feature is not that important for me and I probably will stick to the defines_2-x-y.h files.

I also want to make them compatible to my platformIO simpleFoc firmware..

AILIFE4798 commented 9 months ago

if autodetect failed, theres last resort image and with command line you can modify things like slave id which you will need to anyways

my self hold is 100% reliable believe it or not(acidently detecting button pin doesnt count) it can even detect self hold pin when powered from stlink connected to usb the tiny voltage drop is enough

i already said currentdc detection is bad idea so i didnt implement in my autodetect

AILIFE4798 commented 9 months ago

my autodetect do not need bridge on power button just use itwith a button itll detect the latch silently on startup

AILIFE4798 commented 9 months ago

and i have implemented self hold button pin fix in my firmware but need user intervention

RoboDurden commented 9 months ago

I do not understand your last two comments. A video explanation would be better. But I do not have time to optimize my autodetect for the next two weeks anyway.

AILIFE4798 commented 9 months ago

i will only make video after the main firmware can use the result of autodetect

AILIFE4798 commented 9 months ago

maybe i can make a shit quality video for you to watch first

RoboDurden commented 9 months ago

No I happily wait a little longer :-) I want to see the eeprom with the two distinct firmwares see in action :-))