Skip to the content
4 layers180 × 120 mmMG ZS V2, the printed circuit board in 3D

Reverse engineering of the drive motor and inverter used in MG Electric Vehicles

Size
180 × 120 mm
Copper layers
4
Thickness
1.6 mm
Parts
177
Nets
210
Pads
737
Tracks, vias
1,752, 313
Pours
2
Routed
Yes
KiCad
KiCad 8.0 (file 20240108)
Created
5 Apr 2024
Updated
16 Nov 2025

Overview

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.

Main components

12

README

README.md

MG-EV-Inverter

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

https://community.nxp.com/t5/Motor-Control-and-Smart-Energy/GD3160-SPI-Example-code-Question/m-p/1780583

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!

Parts

177
QtyValueFootprintReferences
261uFCapacitor_SMD:C_0805_2012MetricC1, C2, C3, C4, C5, C13, C15, C18, C19, C20, C23, C30, C35, C49, C50, C51 +10
1310KResistor_SMD:R_0805_2012MetricR1, R2, R13, R22, R27, R32, R33, R35, R37, R38, R39, R41, R44
121KResistor_SMD:R_0805_2012MetricR6, R7, R24, R25, R34, R36, R43, R45, R48, R53, R57, R60
104K7Resistor_SMD:R_0805_2012MetricR3, R4, R5, R8, R9, R26, R49, R50, R55, R56
9MountingHoleMountingHole:MountingHole_5.3mm_M5_Pad_ViaH1, H2, H3, H4, H5, H6, H7, H8, H9
7TestPointTestPoint:TestPoint_Pad_2.5x2.5mmTP1, TP2, TP3, TP4, TP5, TP6, TP7
622nFCapacitor_SMD:C_0805_2012MetricC17, C21, C24, C25, C40, C42
4100nFCapacitor_SMD:C_0805_2012MetricC31, C34, C53, C60
410uFCapacitor_SMD:C_0805_2012MetricC9, C10, C11, C41
41K5Resistor_SMD:R_0805_2012MetricR51, R52, R58, R59
41nFCapacitor_SMD:C_0805_2012MetricC29, C33, C37, C46
4220RResistor_SMD:R_0805_2012MetricR14, R15, R19, R20
4SS54BSamacsys:DIOM5336X244ND5, D6, D8, D9
30RResistor_SMD:R_0805_2012MetricR10, R11, R42
3100uF 6.3VCapacitor_Tantalum_SMD:CP_EIA-3528-15_AVX-HC16, C39, C43
310uFCapacitor_SMD:C_1206_3216MetricC28, C36, C44
34.7uFCapacitor_SMD:C_1206_3216MetricC45, C47, C48
2100uF 6.3VSamacsys:CAPPM3528X210NC12, C22
222pFCapacitor_SMD:C_0805_2012MetricC26, C27
2330RResistor_SMD:R_0805_2012MetricR12, R29
23K3Resistor_SMD:R_0805_2012MetricR16, R18
23K6Resistor_SMD:R_0805_2012MetricR23, R30
26K2Resistor_SMD:R_0805_2012MetricR21, R28
274HCT245D,653Samacsys:SOIC127P1032X265-20NIC2, IC3
2Conn_01x06_PinConnector_PinHeader_2.54mm:PinHeader_1x06_P2.54mm_VerticalJ6, J8
10.047uFCapacitor_SMD:C_0805_2012MetricC32
1063210Samacsys:063210J2
1100pFCapacitor_SMD:C_0805_2012MetricC38
110uHInductor_SMD:L_0805_2012MetricL3
110uHInductor_SMD:L_Sunlord_SWPA4030SL1
1120RResistor_SMD:R_0805_2012MetricR54
12051-09-SM-RPLFSamacsys:DIOM5336X244NGD1
1237KResistor_SMD:R_0805_2012MetricR40
13V3 LEDLED_SMD:LED_0805_2012MetricD7
1470uF 25VCapacitor_SMD:CP_Elec_10x10C14
147KResistor_SMD:R_0805_2012MetricR46
1500762-1001Samacsys:5007621001J4
15K1Resistor_SMD:R_0805_2012MetricR47
1680RResistor_SMD:R_0805_2012MetricR17
168uHInductor_SMD:L_12x12mm_H8mmL2
174LVC1G10Package_TO_SOT_SMD:SOT-23-6U3
174LVC2G34Package_TO_SOT_SMD:SOT-23-6U2
174LVCH1T45GW,125Samacsys:74LVCH1T45GW125IC1
178.7KResistor_SMD:R_0805_2012MetricR31
1AMS1117-3.3Package_TO_SOT_SMD:SOT-223-3_TabPin2U5
1CAN MONConnector_PinHeader_2.54mm:PinHeader_1x03_P2.54mm_VerticalJ3
1Conn_01x03_PinConnector_PinHeader_2.54mm:PinHeader_1x03_P2.54mm_VerticalJ7
1Conn_01x04_PinConnector_PinHeader_2.54mm:PinHeader_1x04_P2.54mm_VerticalJ5
1ESDCAN01-2BLYSamacsys:SOT95P255X150-3ND11
1INTH LEDLED_SMD:LED_0805_2012MetricD2
1INTL LEDLED_SMD:LED_0805_2012MetricD1
1JFC2410-0500TSSamacsys:FUSC6126X280NF1
1LEDLED_SMD:LED_0805_2012MetricD3
1LM2901Package_SO:SOIC-14_3.9x8.7mm_P1.27mmU1
1M032.54MMConnector_PinHeader_2.54mm:PinHeader_1x03_P2.54mm_VerticalJ1
1MMBT3904Package_TO_SOT_SMD:SOT-23Q2
1SL2301Package_TO_SOT_SMD:SOT-23Q1
1SMAJ18CASamacsys:DIONM5127X229ND4
1SMAJ7.0ASamacsys:DIOM5026X229ND10
1SN65HVD230Package_SO:SOIC-8_3.9x4.9mm_P1.27mmU7
1STM32F103VCTxPackage_QFP:LQFP-100_14x14mm_P0.5mmU6
1SolderJumper_2_OpenJumper:SolderJumper-2_P1.3mm_Open_Pad1.0x1.5mmJP1
1TDA2822D013TRSamacsys:SOIC127P600X175-8NIC5
1TPS55340RTERSamacsys:QFN50P300X300X80-17N-DIC6
1WeMos_D1_miniModule:WEMOS_D1_mini_lightU4
1X50328MSB2GICrystal:Crystal_SMD_5032-2Pin_5.0x3.2mmX1
1XL1509-5.0E1Samacsys:SOIC127P600X175-8NIC4

More from damienmaguire/MG-EV-Inverter

1
  • 2 layers88.5 × 88.5 mmMG ZS BrkOut V1, the printed circuit board in 3D

    MG ZS BrkOut V1

    damienmaguire/MG-EV-Inverter

    Reverse engineering of the drive motor and inverter used in MG Electric Vehicles

    13 parts17GPL-3.0

Similar boards

  • 4 layers50 × 87 mmEnergyMe Home, the printed circuit board in 3D

    EnergyMe Home

    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)

    87 parts288GPL-3.0
  • 2 layers131.5 × 83.5 mmBadge esp32-s3, the printed circuit board in 3D

    Badge esp32-s3

    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.

    185 parts2MIT
  • 4 layers146.2 × 142.6 mmTb3-mxm, the printed circuit board in 3D

    Tb3-mxm

    mothenjoyer69/thundermxm

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

    66 parts7
  • 4 layers50 × 50 mmWireslesslock, the printed circuit board in 3D

    Wireslesslock

    Shehroz30/wireslesslock

    69 partsMIT

Questions

How big is the MG ZS V2 PCB?

It measures 180 × 120 mm and has 4 copper layers, 1.6 mm thick.

What parts does the MG ZS V2 use?

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.

Where can I download the MG ZS V2 KiCad files?

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.

Can I use the MG ZS V2 design in my own project?

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).