Custom controller firmware

flangefrog

1 kW
Joined
Jun 26, 2013
Messages
379
Location
Auckland, New Zealand
It seems like it should be fairly straightforward to reverse engineer the circuit on a common controller (e.g. S06P) and write a new firmware for it. Especially if keeping it sensored and square wave, the code should be pretty simple.

As far as I know, nobody has done this yet. Is it just not rewarding enough? Or is there some part of the firmware which would be particularly hard to write?
 
I'd bet that if you look up the MCU p/n on the web for your controller, you'll find the company making the chip has development info and maybe sample code, etc., which I would guess is what many contrlller makers use as unchanged as possible to save time and money.


But...unless you just cant' find the features you want in an existing controller, *and* you find the chip you're after are capable of that, *and* you really like the hardware in an existing controller for it's power stage, control, etc., for wahtever reasons, you'd probably be better off just finding a controller that meets your needs and using it as-is.

I don't know how hard it is to write code fro those motor controller MCUs; if you ahvet o do it from scratch it might be tougher than doing it froma devkit example; you'll probably have a lot of testing and debugging to do to ensure it will actually do what you want it to (and nothing you don't) in all situations in which you'd actually be using it.


There are existing custom controller projects here on ES and elsewhere, mostly in the motor tech subforum, if you want to see how much they've gone thru to get where they are now (and how many just gave up at some point), and examples on waht to do and what not to do.
 
The MCU is an STM8 and ST do make a BLDC controller library (square wave only).

Mainly I just want a controller with programmable phase/motor current, LVC etc. Obviously there would be lots of other things that would be nice to customise as well. The Infineon controllers would be alright but the cheapest one I can find is $75.70 USD including shipping. The Kunteng controllers are available at a much lower price but still have good build quality (i.e. good water resistance).

I have read some of those threads before but most of them are trying make lots of improvements over these controllers. I'm not really interested in improving the hardware or motor control algorithms at this stage, I just want to make a few small adjustments to their functionality. It would be a lot easier if I had an existing firmware I could just modify. Making a motor controller may be something I do in the future but of course it wouldn't end up being cheap.
 
Back
Top