
MG ZS BrkOut V1
damienmaguire/MG-EV-Inverter
Reverse engineering of the drive motor and inverter used in MG Electric Vehicles

Reverse engineering of the drive motor and inverter used in MG Electric Vehicles
MG ZS V2 is an open-source printed circuit board by damienmaguire, from the damienmaguire/MG-EV-Inverter repository on GitHub, published under the GPL-3.0 licence. It is a 4-layer board of 180 × 120 mm with 177 parts on 210 nets, routed with 1,752 tracks and 313 vias.
It is built around the 74HCT245D,653-JSM, 74LVC2G34GW and SN65HVD230D, with the WEMOS D1 MINI, TPS55340RTER and XL1509-5.0E1 among its other parts. Its parts include 60 capacitors, 60 resistors, 13 ICs, 11 diodes and 8 connectors. It belongs with the ESP8266 and STM32 boards of this library.
Reverse engineering of the drive motor and inverter used in MG Electric Vehicles.
The drive unit here is from a 2022 MG ZS EV Right hand drive.
First look : https://vimeo.com/929258328
IGBT Module : FS820R08A6P2B
Gate driver : MC33GD3100EK
One current sensor per phase. 5V supply, 2.5V at zero current anlog output.
Isolated gate power supplies provided from a common 30VDC primary supply , a pair of 5V at 132KHz and 42% duty signals to a mosfet driver. Transformers are Epcos A213721495C.
HV Voltage sensing is achived using the external ADC channel of the Low3 gate driver and transmitted via spi.
The three IGBT temp sensors are fed into the relevant high side drivers. Temp is sensed using the external ADC channel of the three high side gate drivers and transmitted via spi.
The OEM logic board communicates with all 6 gate drive chips via SPI at a clock rate of 1.7MHz. Data is in 16 bit format with an 8 bit crc and sent/received as 24 bit packets. Sadly , NXP want an NDA to allow access to the SPI data for this device. As this would then tie me down from sharing the data I will not be going this route. Instead, we'll use reverse engineering and open information to discern the data formatting.
Freely available information has been found here :
https://community.nxp.com/t5/Other-NXP-Products/MC33GD3100-daisy-chain/td-p/1309335
and
https://community.nxp.com/t5/Power-Management/CRC-seed-value-for-MC33GD3100/m-p/1677961
and
A series of SPI logic analyser captures are now here on the repo. Files are in Saleae Logic 2 format which my be freely downloaded here : https://www.saleae.com/pages/downloads
An Openinverter logic board replacement is currently being designed to allow this drive unit to be used unrestricted. Design files will be in Kicad format : https://www.kicad.org/
The external power and signal connector is a Molex 500762-1001 available from Mouser : https://www.mouser.ie/ProductDetail/538-500762-1001
A pre wired 48 way plug to fit this is available from AliExpress : https://www.aliexpress.com/item/1005004818455812.html
The logic board to power board connector is a ERNI 063210-E available from Mouser : https://www.mouser.ie/ProductDetail/305-063210
The motor resolver and temp sensor connector is a TE 1897462-2 available from Mouser : https://www.mouser.ie/ProductDetail/571-1897462-2 Pins : https://www.mouser.ie/ProductDetail/571-7-1452656-3-CT
Gate driver signals are 5V level. One active low fault / INT line for high and low sides.
HV Connector may be Yonguui Metal Housing Connector-YG998C
V2 Logic board now undergoing testing.
Now working in closed loop FOC control with V2 logic board : https://vimeo.com/1032344714
Added 3D printable HV connector replacement. Also available on Printables : https://www.printables.com/model/1100211-mg-ev-drive-unit-high-voltage-connector
16/11/25 : Added all design and production files for the current V2 logic board. Files in Kicad 9 format. Happy MG spinning!
| Qty | Value | Footprint | References |
|---|---|---|---|
| 26 | 1uF | Capacitor_SMD:C_0805_2012Metric | C1, C2, C3, C4, C5, C13, C15, C18, C19, C20, C23, C30, C35, C49, C50, C51 +10 |
| 13 | 10K | Resistor_SMD:R_0805_2012Metric | R1, R2, R13, R22, R27, R32, R33, R35, R37, R38, R39, R41, R44 |
| 12 | 1K | Resistor_SMD:R_0805_2012Metric | R6, R7, R24, R25, R34, R36, R43, R45, R48, R53, R57, R60 |
| 10 | 4K7 | Resistor_SMD:R_0805_2012Metric | R3, R4, R5, R8, R9, R26, R49, R50, R55, R56 |
| 9 | MountingHole | MountingHole:MountingHole_5.3mm_M5_Pad_Via | H1, H2, H3, H4, H5, H6, H7, H8, H9 |
| 7 | TestPoint | TestPoint:TestPoint_Pad_2.5x2.5mm | TP1, TP2, TP3, TP4, TP5, TP6, TP7 |
| 6 | 22nF | Capacitor_SMD:C_0805_2012Metric | C17, C21, C24, C25, C40, C42 |
| 4 | 100nF | Capacitor_SMD:C_0805_2012Metric | C31, C34, C53, C60 |
| 4 | 10uF | Capacitor_SMD:C_0805_2012Metric | C9, C10, C11, C41 |
| 4 | 1K5 | Resistor_SMD:R_0805_2012Metric | R51, R52, R58, R59 |
| 4 | 1nF | Capacitor_SMD:C_0805_2012Metric | C29, C33, C37, C46 |
| 4 | 220R | Resistor_SMD:R_0805_2012Metric | R14, R15, R19, R20 |
| 4 | SS54B | Samacsys:DIOM5336X244N | D5, D6, D8, D9 |
| 3 | 0R | Resistor_SMD:R_0805_2012Metric | R10, R11, R42 |
| 3 | 100uF 6.3V | Capacitor_Tantalum_SMD:CP_EIA-3528-15_AVX-H | C16, C39, C43 |
| 3 | 10uF | Capacitor_SMD:C_1206_3216Metric | C28, C36, C44 |
| 3 | 4.7uF | Capacitor_SMD:C_1206_3216Metric | C45, C47, C48 |
| 2 | 100uF 6.3V | Samacsys:CAPPM3528X210N | C12, C22 |
| 2 | 22pF | Capacitor_SMD:C_0805_2012Metric | C26, C27 |
| 2 | 330R | Resistor_SMD:R_0805_2012Metric | R12, R29 |
| 2 | 3K3 | Resistor_SMD:R_0805_2012Metric | R16, R18 |
| 2 | 3K6 | Resistor_SMD:R_0805_2012Metric | R23, R30 |
| 2 | 6K2 | Resistor_SMD:R_0805_2012Metric | R21, R28 |
| 2 | 74HCT245D,653 | Samacsys:SOIC127P1032X265-20N | IC2, IC3 |
| 2 | Conn_01x06_Pin | Connector_PinHeader_2.54mm:PinHeader_1x06_P2.54mm_Vertical | J6, J8 |
| 1 | 0.047uF | Capacitor_SMD:C_0805_2012Metric | C32 |
| 1 | 063210 | Samacsys:063210 | J2 |
| 1 | 100pF | Capacitor_SMD:C_0805_2012Metric | C38 |
| 1 | 10uH | Inductor_SMD:L_0805_2012Metric | L3 |
| 1 | 10uH | Inductor_SMD:L_Sunlord_SWPA4030S | L1 |
| 1 | 120R | Resistor_SMD:R_0805_2012Metric | R54 |
| 1 | 2051-09-SM-RPLF | Samacsys:DIOM5336X244N | GD1 |
| 1 | 237K | Resistor_SMD:R_0805_2012Metric | R40 |
| 1 | 3V3 LED | LED_SMD:LED_0805_2012Metric | D7 |
| 1 | 470uF 25V | Capacitor_SMD:CP_Elec_10x10 | C14 |
| 1 | 47K | Resistor_SMD:R_0805_2012Metric | R46 |
| 1 | 500762-1001 | Samacsys:5007621001 | J4 |
| 1 | 5K1 | Resistor_SMD:R_0805_2012Metric | R47 |
| 1 | 680R | Resistor_SMD:R_0805_2012Metric | R17 |
| 1 | 68uH | Inductor_SMD:L_12x12mm_H8mm | L2 |
| 1 | 74LVC1G10 | Package_TO_SOT_SMD:SOT-23-6 | U3 |
| 1 | 74LVC2G34 | Package_TO_SOT_SMD:SOT-23-6 | U2 |
| 1 | 74LVCH1T45GW,125 | Samacsys:74LVCH1T45GW125 | IC1 |
| 1 | 78.7K | Resistor_SMD:R_0805_2012Metric | R31 |
| 1 | AMS1117-3.3 | Package_TO_SOT_SMD:SOT-223-3_TabPin2 | U5 |
| 1 | CAN MON | Connector_PinHeader_2.54mm:PinHeader_1x03_P2.54mm_Vertical | J3 |
| 1 | Conn_01x03_Pin | Connector_PinHeader_2.54mm:PinHeader_1x03_P2.54mm_Vertical | J7 |
| 1 | Conn_01x04_Pin | Connector_PinHeader_2.54mm:PinHeader_1x04_P2.54mm_Vertical | J5 |
| 1 | ESDCAN01-2BLY | Samacsys:SOT95P255X150-3N | D11 |
| 1 | INTH LED | LED_SMD:LED_0805_2012Metric | D2 |
| 1 | INTL LED | LED_SMD:LED_0805_2012Metric | D1 |
| 1 | JFC2410-0500TS | Samacsys:FUSC6126X280N | F1 |
| 1 | LED | LED_SMD:LED_0805_2012Metric | D3 |
| 1 | LM2901 | Package_SO:SOIC-14_3.9x8.7mm_P1.27mm | U1 |
| 1 | M032.54MM | Connector_PinHeader_2.54mm:PinHeader_1x03_P2.54mm_Vertical | J1 |
| 1 | MMBT3904 | Package_TO_SOT_SMD:SOT-23 | Q2 |
| 1 | SL2301 | Package_TO_SOT_SMD:SOT-23 | Q1 |
| 1 | SMAJ18CA | Samacsys:DIONM5127X229N | D4 |
| 1 | SMAJ7.0A | Samacsys:DIOM5026X229N | D10 |
| 1 | SN65HVD230 | Package_SO:SOIC-8_3.9x4.9mm_P1.27mm | U7 |
| 1 | STM32F103VCTx | Package_QFP:LQFP-100_14x14mm_P0.5mm | U6 |
| 1 | SolderJumper_2_Open | Jumper:SolderJumper-2_P1.3mm_Open_Pad1.0x1.5mm | JP1 |
| 1 | TDA2822D013TR | Samacsys:SOIC127P600X175-8N | IC5 |
| 1 | TPS55340RTER | Samacsys:QFN50P300X300X80-17N-D | IC6 |
| 1 | WeMos_D1_mini | Module:WEMOS_D1_mini_light | U4 |
| 1 | X50328MSB2GI | Crystal:Crystal_SMD_5032-2Pin_5.0x3.2mm | X1 |
| 1 | XL1509-5.0E1 | Samacsys:SOIC127P600X175-8N | IC4 |

damienmaguire/MG-EV-Inverter
Reverse engineering of the drive motor and inverter used in MG Electric Vehicles

jibrilsharafi/EnergyMe-Home
Smart energy meter capable of monitoring up to 16 channels. Supports MQTT, REST API, Modbus TCP, InfluxDB, AWS IoT Core. Friendly UI and fully open source (PCB, schematics, components, source code)


BYU-I-eBadge/e-badge
A hackable eBadge platform for students — a customizable, programmable electronics badge designed for hands-on learning and creative exploration throughout their academic journey.

RomLab/pcb-system-for-underfloor-heating-v2.0
PCB for underfloor heating system

mothenjoyer69/thundermxm
An MXM eGPU board featuring an Intel JHL7440 TB3 controller module, with support for 200W of power delivery, and Clevo cards too!



It measures 180 × 120 mm and has 4 copper layers, 1.6 mm thick.
177 parts, built around the 74HCT245D,653-JSM, 74LVC2G34GW, SN65HVD230D and WEMOS D1 MINI. The full list of its parts is on this page, with links to each part's symbol and footprint where PCBKit's library has them.
From the damienmaguire/MG-EV-Inverter repository on GitHub, at the commit this page was made from: the board is Design/MG_ZS_V2.kicad_pcb and its schematic Design/MG_ZS_BrkOut_V1/MG_ZS_BrkOut_V1.kicad_sch. PCBKit opens the board in the browser, with nothing to install.
Its repository publishes it under the GPL-3.0 licence: you may reuse it on that licence's terms (keep the author's notice, and for a copyleft licence share your changes alike).