Skip to content

TSDZ8 Controller PCB

Daniel Nilsson edited this page Mar 8, 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 sense) MCP602
OPAMP (Torque) LM358
Voltage Ref TL431C

Infineon XMC1302

PIN Type Function Comment
P0.0 PWM Phase U (C) HS Green
P0.1 PWM Phase U (C) LS Green
P0.2 PWM Phase V (B) HS Blue
P0.3 PWM Phase V (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 W (A) HS Yellow
P0.9 PWM Phase W (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 Lights
P2.0
P2.1
P2.2 ADC Torque Sensor LM358 (2)
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.6
P2.7
P2.8 ADC Average Current MCP602 U6 (B), Integrator, Offset = 0V, Gain = 10, Rs = 3mΩ
P2.9 ADC Current Sense C MCP602 U6 (A), Differential, Offset = 2.5V, Gain = 10, Rs = 3mΩ
P2.10 ADC Current Sense B MCP602 U7 (B), Differential, Offset = 2.5V, Gain = 10, Rs = 3mΩ
P2.11 ADC Current Sense A MCP602 U7 (A), Differential, Offset = 2.5V, Gain = 10, Rs = 3mΩ

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.

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

Torque Sensor Excitation

50kHz, 5Vpp at 10V offset

Clone this wiki locally