Annoyingly, the PAS sensor only works with 5v - and I only have 3.3v on the board, pita - but at least it works. Ditto the speedsensor - which despite being documented in most places as a reed switch is probably a hall sensor because it needs 5v in... Luckily the VESC has 5v out which I can grab easily for now.
Anyway - at least I now have Torque, PAS and Speedsensor inputs working. Need to do the buttons and brake sensor input next.... but I don't expect any surprises there since they are all inputs we've used before on the tsdz2 wireless controller...
Sooner or later I'll start a new thread - as this is no longer about the torque sensor, it's about making an interface board that allows a VESC to work with a tsdz2 motor and case...