Sep 13 Update
The latest hex file I received from Paul is SensorlessFOC.hex dated Sep 12 at 11:14 am
Loaded into the controller - OK
foc test 2 is the log file
set for pole-pairs 4
set rotor-time-constant=index 40 (17)
run the motor with the throttle signal
Motor is NOT 4 pole pairs
foc test 3 is the log file
set for pole-pairs 2
run-rotor-test
video shows a big bang - test aborted at 870, index 50
foc test 4 is the log file
set for pole-pairs 1
the last index is NOT the best, 83, but that's still low.
index 25
run motor with throttle .. lots of buzzing. Motor does NOT have 1 pole pair.
foc test 5 is the log file
set for pole-pairs 3
the last index is the best, 27, but that's still low.
index 50
run motor with throttle .. lots of buzzing. Motor does NOT have 3 pole pairs
foc test 6 is the log file
set for pole-pairs 2
Throttle fault on power-up
Check for a couple of items in config, wiggle potentiometer to get a reading. But it appears to need a power cycle to reset the fault.
pole pairs 2. run-rotor-test
Best value is last - 890.
Set rotor-time-constant-index to 49 (is it 0 based or 1 based?) Oh well, if I get the second last value it will be fine.
Crank the throttle - it appears I was too aggressive. Hardware fault when I try to slow down. Darn!
log file foc test 7
throttle is out of range on power up
cycle power
throttle is 257. Change to 482. Run-rotor-test
Powered down during test. It was cycling pretty badly. I should not have killed power - the test had completed (but I didn't realize that!) Oh well.
log file foc test 8
run-rotor-test finishes, but there is a hardware fault at the end of the test. So I could not select the highest value (1231) and test with the throttle.
It appears that there is a problem with my cheap potentiometer, used for the throttle. There are dead spots. Those spots give me 0 as a throttle value.
Sigh!
Log files attached. Working on the videos.
Video 1
https://youtu.be/isGhQsoZepA
Video 2
https://youtu.be/5bUCE9oz1FM
Video 3
https://youtu.be/llbOpFHC6cU
Video 4
https://youtu.be/jR54cTNkKu8
Video 5
https://youtu.be/bO53AHmxcrA
Video 6
https://youtu.be/xdrg1i52hs8