I’ve had the urge to tinker with firmware for ages and have decided to take the plunge.
As I want to use the bike while I'm experimenting this necessitates purchasing another controller for testing purposes. Options are another KT sinewave controller and flash with OSEC firmware or a Lishui controller which arguably has better hardware than the KT and flashing with eBics. The settings will then be modified to mimic the standard KT controller but hopefully in a better package.
After reading through the procedures for both controllers the KT appears easier to set up than the Lishui. The Lishui also has the added problem (for me) that the forum discussing it is a German language forum. Google translate can only get you so far and it makes it difficult to search for specific terms in a monster length thread if you don't speak the language.
In the pioneering spirit I have of course gone for the more difficult option on the hope it will give me a better outcome.
There is a Wiki in English
github.com
First thing order a controller. This is one of them recommended in the Wiki for the project.
vi.aliexpress.com
First issue. On opening it up it has been potted with some grey goo. Not quite the consistency of silicone sealant and not quite decorators calk but somewhere in between. After removing both end caps and the 3 screws holding the MOSFET rail a bit of light pressure on it reveals it to be stuck in the case. A bit of exploratory digging reveals the aluminium rail running through the controller with all the MOSFETs attached to it. With the case held in the vice and a small length of wood thinner than the case placed on the rail followed by couple of short, sharp taps with a lump hammer the circuit board pops out. Aluminium bar is pictured below on a photo borrowed from another forum. I have added a red circle to show the point to whack.

Now needs a bit of digging to clean it up to reveal the board.
Next problem. There is no throttle connection. I hadn't noticed when I ordered it. A quick look at the chip drawing shows that a wire should be soldered from 'SP' on the board. A lead from the ground and another from the +5v rail adds the throttle function.
As I want to use the bike while I'm experimenting this necessitates purchasing another controller for testing purposes. Options are another KT sinewave controller and flash with OSEC firmware or a Lishui controller which arguably has better hardware than the KT and flashing with eBics. The settings will then be modified to mimic the standard KT controller but hopefully in a better package.
After reading through the procedures for both controllers the KT appears easier to set up than the Lishui. The Lishui also has the added problem (for me) that the forum discussing it is a German language forum. Google translate can only get you so far and it makes it difficult to search for specific terms in a monster length thread if you don't speak the language.

Open Source Firmware für Lishui Controller
nachdem die offene Firmware für den Kunteng ja mehr oder weniger fertig entwickelt ist, habe ich mir einen Lishui als nächstes Opfer ausgesucht. Vorteil der Lishui-Controller: 1. viele haben den Programmieranschluß schon herausgeführt, man muß also nichts auf der Platine rumlöten 2. viel...
www.pedelecforum.de
In the pioneering spirit I have of course gone for the more difficult option on the hope it will give me a better outcome.
There is a Wiki in English
Home
Free FOC firmware for Lishui E-Bike-Controllers. Contribute to EBiCS/EBiCS_Firmware development by creating an account on GitHub.

First thing order a controller. This is one of them recommended in the Wiki for the project.

BRUSHLESS CONTROLLER SINEWAVE 12Mosfet MAX CURRENT 25A+display EN06 FOR MOTOR 500W+TORQUE SENSOR T9 T13 T15 T17 EBIKE DIY PART - AliExpress 18
Smarter Shopping, Better Living! Aliexpress.com
First issue. On opening it up it has been potted with some grey goo. Not quite the consistency of silicone sealant and not quite decorators calk but somewhere in between. After removing both end caps and the 3 screws holding the MOSFET rail a bit of light pressure on it reveals it to be stuck in the case. A bit of exploratory digging reveals the aluminium rail running through the controller with all the MOSFETs attached to it. With the case held in the vice and a small length of wood thinner than the case placed on the rail followed by couple of short, sharp taps with a lump hammer the circuit board pops out. Aluminium bar is pictured below on a photo borrowed from another forum. I have added a red circle to show the point to whack.

Now needs a bit of digging to clean it up to reveal the board.
Next problem. There is no throttle connection. I hadn't noticed when I ordered it. A quick look at the chip drawing shows that a wire should be soldered from 'SP' on the board. A lead from the ground and another from the +5v rail adds the throttle function.