Skip to content

TSDZ8 Controller PCB

Daniel Nilsson edited this page Mar 5, 2025 · 47 revisions

TSDZ8 Controller PCB

Hardware

ICs

Function Model
MCU Infineon XMC1302-T038X0064
Gate Driver Infineon IRS2005
MOSFET BLP023N10
SMPS 5V XL7005
OPAMP (I/V sense) MCP602
OPAMP (Torque) LM358
Voltage Ref TL431C

Infineon XMC1302

PIN Type Function Comment
P0.0 PWM Phase C HS Green
P0.1 PWM Phase C LS Green
P0.2 PWM Phase B HS Blue
P0.3 PWM Phase B LS Blue
P0.4 IN Road Speed
P0.5 IN PAS 1
P0.6 UART TX
P0.7 UART RX
P0.8 PWM Phase A HS Yellow
P0.9 PWM Phase A LS Yellow
P0.10 IN Brake
P0.11
P0.12
P0.13 PAS 2
P0.14
P0.15
P1.0 IN Hall A Blue? Mismatching wire colors
P1.1 IN Hall B Yellow? Mismatching wire colors
P1.2 IN Hall C Green
P1.3 PWM Torque Sensor Excitation
P1.4
P1.5 OUT Light
P2.2 ADC Torque Sensor
P2.3 ADC Voltage Ref TL431, Typical 2.495V.
P2.4 ADC Voltage Sense R1 = 330k, R2 = 20k, Vadc = Vbat * 20k / (330k + 20k)
P2.5 ADC Throttle
P2.8 ADC Current Sense Battery MCP602 U6 (B), Rf = 10k, Rg = 1k, Gain = 10
P2.9 ADC Current Sense C MCP602 U6 (A), Rf = 10k, Rg = 1k, Gain = 10
P2.10 ADC Current Sense B MCP602 U7 (B), Rf = 10k, Rg = 1k, Gain = 10
P2.11 ADC Current Sense A MCP602 U7 (A), Rf = 10k, Rg = 1k, Gain = 10

Notes

LM358

VIN: 5V

OP1
Configured as voltage follower on voltage divider VIN/2.
Output connected to IN+ pins on MCP602 creating
a 5V/2 offset (2.436V on my board...)

OP2
Torque sensor reading. Output connected to ADC P2.2.

Torque Sensor Excitation

50kHz, 5Vpp at 10V offset

Clone this wiki locally