Troubleshooting KT Motor controller opensource STM8 family

Electric Motors and Controllers
Post Reply
thunderbolt   1 µW

1 µW
Posts: 3
Joined: Apr 20 2020 6:26pm

Troubleshooting KT Motor controller opensource STM8 family

Post by thunderbolt » Apr 20 2020 6:48pm

Hello I'm new to the community here, I looked into Casainho and Stance work on the opensource firmware for KT controllers here
https://github.com/stancecoke/BMSBatter ... s_firmware
I do have KT controller/like which uses STM8S207 44 pin QFP. The entire firmware is built for STM105C 48 pins QFP, wondering what are the changes in the repo I may have to do to burn the EEPROM?
Any help is highly appreciated
Thanks

thunderbolt   1 µW

1 µW
Posts: 3
Joined: Apr 20 2020 6:26pm

KT controller with 9 MOSFETS not working after flashing

Post by thunderbolt » Apr 27 2020 11:00pm

Hello,
I flashed the 48V setting on a "9 MOSFET KT CONTROLLER", the motor doesn't spin. I'm wondering if I had to chose only 6 or 12 MOSFETs controller...not sure...any help is appreciated
Thanks,
thunderbolt

obcd   100 W

100 W
Posts: 159
Joined: Jul 16 2019 3:45pm

Re: Troubleshooting KT Motor controller opensource STM8 family

Post by obcd » Apr 28 2020 7:21am

Did you recompile the source 4 the correct type of microcontroller or did you just flash the binary?

Creating open source firmware for your controller with a different microcontroller is likely a project on it's own.
First, you will need to take the schematics of the kuteng the firmware is designed 4. You will need a list with all cpu pins and what they do in the controller.
Next, you will need the same for your controller so you can compare if the io's are identical used. If they aren't, it needs to be adjusted in the source code. Obviously, you will also need to check if the open source code isn't using a cpu feature that might not exist or work differently on your cpu. (For instance timers or even clock speed could be different.)

Post Reply