Hi everyone,
I'm trying to get a TLE5012B magnetic encoder working on a Trampa VESC 60/75 MK2 (firmware updated to the latest version via VESC Tool), but the sensor never responds.
Setup
- Sensor: TLE5012B E1000 breakout (cross-shaped board, two 5-pin connectors: P1 = SSC, P2 = ABI). The module has series resistors on the SSC lines (470 Ω on DATA, 100 Ω on CSQ and SCK) and 2.2 kΩ pull-ups on IFA/IFB/IFC.
- Sensor Port Mode: TLE5012 Encoder (SSC SW)
- Wiring on the SENSE port (according to encoder.c: PIN1 = SCK, PIN2 = MOSI/MISO, PIN3 = NSS):
- V+ → VCC
- H1 → SCK
- H2 → DATA
- H3 → CSQ
- GND → GND
- Diametrically magnetized magnet, Ø6 mm, air gap tested at 1.5 and 2 mm
Terminal output (encoder)
- SENSE port, SSC SW:
Last error: 1, ssc error rate: 99.985 %, magnet strength: 0, temp 54.76 C - COMM port, SSC HW (MOSI/NSS/SCK):
Last error: 255, ssc error rate: 99.986 %, magnet strength: 1, temp 54.39 C
As far as I understand the code, 54.76 °C corresponds to a raw temperature of all zeros and 54.39 °C to all ones — so the VESC only reads the idle level of the data line and the sensor never answers.
What I have checked
- 5 V directly at the sensor chip (across the decoupling capacitor)
- Continuity of all wires, cable plugged into the SSC connector (DATA reaches the 470 Ω resistor)
- Swapping CSQ and SCK: no change
- Realtime data working, battery voltage 15.6 V, no fault code
Questions
- Has anyone successfully run a TLE5012B in SSC SW mode on the SENSE port of a 60/75 MK2? Could the input filtering on the hall lines combined with the 470 Ω series resistor on DATA prevent communication?
- Should I bypass the 470 Ω resistor on the module?
- Is the COMM port test meaningful at all, or are MOSI/NSS shared with UART TX/RX on this board?
Thanks a lot!
