Can this Kunray controller be re programmed?

sdobbie

100 W
Joined
Dec 14, 2013
Messages
137
Location
Fife Scotland
I recently bought this controller https://www.ebay.co.uk/itm/KUNRAY-B...e=STRK:MEBIDX:IT&_trksid=p2060353.m2749.l2649

It uses the STM8S105S4T6C chip and I was wondering if there is any way to reprogram its firmware to make it a sinewave (foc) controller with regen? I noticed this page with the sort of thing I am looking for but not sure if it will work even though it says it is for stm8 controllers.
https://opensourceebikefirmware.bitbucket.io/
The pins will probably have different uses so I would imagine that firmware would probably not work on my hardware.

20201227_195050.jpg

20201227_195155.jpg
 
Of the controller wasn't a FOC to begin with, you're not going to make it into one by programming. Regenerative braking is another issue, but it's also something your controller was either built to do, or not.
 
You are probably right. The chip in the controllers which support the open-source firmware is the STM8S105S6 which seems to be identical to the STM8S105S4 in my controller apart from the important difference that the S6 runs at 24MHz and the S4 runs at 16MHz which means its probably not powerful enough for the FOC algorithm. It should be able to manage regen though as all regen does is pulse the bottom three fets in the H bridge as shown

Clipboard01.jpg

Clipboard02.jpg
 
AFAIK, FOC would require phase current sensing; if it doesn't have that hardware, it can't know what the phase currents actually are, which means it could only guess at what the field is doing. If it only has battery current sensing, it may not be capable of FOC.

But I am not a controller guru...so that might not be true.
 
You're right, I read on the open source page for KT controllers that the sensors are needed. Also read that they could be added but it doesn't say how. Even if I could just add regen somehow, that would be amazing.
 
Back
Top