pe03_ai-based-afci-solution-for-solar-inverter
pe03_ai-based-afci-solution-for-solar-inverter
1
AI based smart solar
arc-fault circuit
interrupter solution
Matteo MARAVITA
STMicroelectronics
ST reference designs for smart solar systems
Smart
Monitor
meter
Inverter AC to grid
MPPT
INV.
AFCI
RSD
Bidirect PV micro-inverter (PLC)
MPPT DC-DC
MLPE (module-level power electronic) on AC
Communication
DC to battery
PV optimizer (PLC) Inverter DC-AC converter Inverter rapid shutdown (DC PLC)
PV rapid shutdown (PLC) Inverter bidirectional DC-DC Inverter monitor (AC PLC)
• Aging
• Weather variation
• Harsh environment
• Human factors
Possibly
1500 V/10 A DC
Inverter
4
Arc-fault detection standard–UL1699B
5
STM32 + AI detector
Field proven and future oriented system for AFCI
Inverter
BOOST
MPPT
#1
AFCI
BOOST Channel 1
MPPT Host-
Neural network
interface
#2 Channel 2 to DSP
Detection
DC-AC
Channel 3 Algorithm
BOOST
To RSD
MPPT Channel 4
#3
RSD
BOOST
MPPT
#4
6
Challenges in AFCI system design
Inverter noise
36 kHz 72 kHz
Weather impact
Rapid shutdown
131 kHz 143 kHz
7
Possible issues in AFCI data processing
Poor connection
Customer
prototype
Inverter noise
HW/FW
Frame-loss by USB
Filter-chain performance
Transformer saturation
All STM32
MCUs
9
AFCI HW/FW reference design
AFCI board hardware block diagram
microSD
ADC To PC (micro-USB)
ADC
STM32H7B3
SPI
RSD comm.
module
• The primary target of STM32H7B3 is to drive microSD card.
11
• STM32G473 or STM32H7B3 should be sufficient for customer AFCI product.
AFCI hardware board v1.0
OP: TSV772 RESET button
MCU: STM32H7B3
Input CH4
Input CH2 for LED5
STM32H7 LED4
Micro-USB to PC for
STM32H7B3
Input CH3 (optional)
Input CH1 for
STM32H7 MCU: STM32G473
Output
(player)
LED2
12
LED3
AFCI filter design
The 2nd band stop filters are bypassed in current board by jumpers
RC band Amplifier 2nd order Band stop 2nd order RC 2nd order, HPF To ADC
CH2 CT filter x11 HPF 30 kHz 19-20 kHz 100 kHz LPF LPF 30 kHz, MCU OP
RC band Amplifier 2nd order Band stop Band stop 2nd order RC MCU OP To ADC
CH3 CT filter x11 HPF 30 kHz 18 kHz optional 200 kHz LPF LPF voltage follower
CH4 RC band Amplifier 4th order Band stop Band stop 4th order RC MCU OP To ADC
CT filter x11 HPF 30 kHz 19-20 kHz optional 100 kHz LPF LPF voltage follower
13
AFCI filter design
CH1 CH2
18 kHz 19 kHz
CH3 CH4
18 kHz 19 kHz
14
Connection in system
• Recorder mode: mainly used for data collection for model training.
• Detector mode: mainly used for NN model accuracy verification or ARC
detection.
• Control mode: mainly used for firmware update, reset device, stop current
mode etc.
• Others …
15
AFCI solution use-cases
Solution function bock: In-lab evaluation mode:
• Install in customer system for evaluation and competitor comparison.
• Enable parallel mode (4 channels), enable rapid shutdown (RSD) on arc-fault detected.
DC-in USB-A RSD UART
Channel 1 To host DSP
To host DSP
Channel 1
Channel 1 DC-in Host UART
Channel 2
AFCI Micro USB Channel 2
AFCI RSD UART
Channel 3 board
Channel 3 board
USB
Models
Channel 4 microSD
Channel 4
16
AFCI GUI tool makes development easier
17
ST arc fault detection lab
Main instruments in AFCI lab
1. DC electronic load.
2. Arc generator
3. DC power supply
18
AI reference design
Overall AI development workflow
All STM32
Edge AI toolkit MCUs
20
Step by step for AFCI project
Confirm AI model
Collect dataset Signal check Model training Verify in lab
requirements implementation
AFCI HW v1.0 WIN32 console Signal check AFCI AI model AFCI FW project
board application tool (exe file) training for STM32
Board including • Recorder (exe file) • Datalogging
STM32G4 and • Detector For analyzing For training the
• AI model real
STM32H7 for data • FW update signal quality. dataset for AI
time processing
collection and model.
testing. • Post-processing
22
Signal checking
• Checking signal with signal check tool is very important before training neural network.
Good examples
Bad examples
23
AI model training
• Collecting dataset by using Labeled data Neural network
AFCI GUI with two classes. architecture
Class1
Training set (Normal)
• Normal status SoftMax
• Training set
• Validation set
• Test set
24
AI model implementation
WIN32 STM32 STM32
AI training
Data buffering
Application AI model
Managemen AI library (.a)
live-upgrade
t
Sample data
AI validation storage
USB-Key
NVM ADC + DMA Sampling
driver
Runtime on STM32
Input data
Arc detection
from CT AI model result Postprocessing
result
sensor
25
Takeaways
The AI based arc fault circuit interrupter (AFCI) contributes the safe
and sustainable development
26
27
Find out more at www.st.com