Progress report
I have discovered a few things about the connections to the motor - I have got LEDs wired up to work as in the handlebar unit. But there is still much understand, and now I have been kicked off the kitchen table by cake making activity, so here is an update.
I got this in Maplins:
It is a 10 pin
0.1 Series Straight Plug PCB Header . Its rectangular pins fit exactly the 11 pin socket on the lead from the motor board. I did not even have to cut off the plastic alongside the pins. It fits neatly on the side of the 11 pin socket.
I bought some 10 way 0.1 inch matrix board with copper strips on one side (Vero strip we called it 40 years ago) so that I could solder the plug to it and then mount components, to try and mock up a handlebar unit. I have got 4 LEDs to work correctly - 2 for battery and 2 for mode I think - but I cant get the remaining two LEDs to function.
I seem to have made a mistake earlier when I reported that the power on switch was latching: ie push for ont hen on/push for off. That is not how pins 11 and 3 work now. Its just a 2 second push contact between these pins which is required for on, and the circuit, not the switch, latches in the on state. A second make should switch it off, but it does not, so I have something wrong here.
The interesting thing is that I now get the 4 LEDs giving recognisable error codes - not the no torque sensor calibration error code reported by Cyclezee, but as follows:
1. With motor/Hallsensors/torque sensor not plugged in -- 4 LEDS light for about 2 seconds then I get the following self-fault-dianosis code pattern: 2 Flashes of the 2 battery LEDs followed by one flashe of the 2 mode LEDs repeating every 3 or 4 seconds. My manual says that this means
Motor Unit Error.
2. So I then plugged all the leads in to the motor, Hall sensor, and torque sensor. I now got a different pattern after the 4 LEDS came on as before on power up, then one mode light lit. Could this be the medium assist mode light? - and the unit is showing normal switch on LEDs status, albeit I am missing the battery display - on a normal working handle bar unit I should have had 3 battery LEDS to indicate full charge, since the battery was at 28.6 Volts.
The fact that I get a sequence of fault codes indicates to me that the processor is functioning - for these are surely generated in the processor.
I won't post the pin connection info for these tests, until I have made further progress and perhaps manage to sort out why I can only get 4 LEDs on, unless someone wants to see how I have connected it up.