EVSE Hardware/Software Guidelines for In-Cable Control and Protection Devices
What you'll learn:
- What international standards are applicable to EVSEs?
- How to design a low-component-count, isolated EVSE that meets affordability, safety, and environmental impact guidelines.
The electric-vehicle (EV) market is continuously and exponentially growing, with around 500 million EVs expected to be on the road by 2030. This number seems plausible looking at the data provided by the International Energy Agency,1 such as comparing the historical data between 2022 and 2023 with a 35% increase (from 10.2M to 13.8M) in battery electric vehicle (BEV) and plug-in hybrid electric vehicle (PHEV) combined sales. The IEA projects that annual world sales in 2030 will reach 40.7M and 56.5M in 2035.
Climate change and air pollution in highly populated residential areas are the main drivers for high efficiency and zero tail-pipe emission transportation modes.2,3 With this foreseeable growth in the number of EVs, the market needs to cope with the demand as well as be able to deliver the most efficient charging solutions covering affordability, safety, and environmental impact.
Lower-power charging levels are deemed sufficient since most personal vehicle users drive only around 30 miles per day on average, as reported by Solaronev4 for different world regions. The data for the U.S. is based on Statista5 and the Federal Highway Administration database.6
For home EV charging stations, the in-cable control and protection devices (IC-CPD) supplied with newly purchased EVs are viable solutions, since these can eliminate the high costs involved with high-power-level installation and maintenance. With the present complexity in charging solution considerations, not only will the EV market grow in the future, but the charging equipment market will as well.
What is Electric-Vehicle Supply Equipment (EVSE) and Where is It Used?
An EVSE is a device that allows the user to safely charge a PHEV or BEV. EVSEs are classified based on charging power levels. A charging level in EV terminology refers to the electric power-distribution type, standards, and maximum power of a charging system as defined by SAE J1772, and internationally adopted under IEC 62196-1.
Mode 2 Standard Functionality
Mode 2 is a method for the connection of an EV to a standard socket-outlet of an AC supply network. An AC EVSE with a CP function is utilized, and a system for personnel protection against electric shock is placed between the standard plug and the EV [IEC 62752:2017 6.2.2].
The most important function with an IC-CPD is protection against electric shocks. It’s implemented with a residual-current device (RCD), at least type A, and an auxiliary circuit to detect DC currents, or with a type B RCD.
This function is crucial because the charger can be used outdoors, in public areas where there’s the possibility of contact with water, and where it can be touched by people accidentally or intentionally. The protective earth must be present, and, in case of a fault, the supply must be disconnected.
Figure 1 presents a general block schematic of a type 2 IC-CPD. By using a schematic derived from this diagram, all of the mandatory functions in the IEC 61851-1 standard can be implemented. Depending on the preferred solution, some blocks must be added or can be excluded from the general schematic.
For example, if the current is sensed through a current transformer, then the isolation IC can be excluded when interfacing with the microcontroller unit (MCU). In the same manner, the weld detection circuit can be excluded when using a relay with weld detection.
Analog Devices Type 2 EVSE
The block diagram of the Analog Devices Type 2 EVSE (Fig. 2) includes the ADE9113 three-channel isolated sigma-delta (Σ-Δ) ADC. The ADC measures voltage and current on the single-phase power input and the relay voltage for solder contact detection.
Safe operation is enabled by the inclusion of a 6-mA DC/30-mA RMS RCD. Detection of overvoltage, undervoltage, overcurrent, overtemperature, protective earth (PE) detection, and EV diode presence is also available.
The integrated isolation makes for a straightforward connection with the MCU. The MAX32655 ultra-low-power Arm Cortex-M4 processor implements the logic for system control and communication with the EV over the CP interface. The solution also includes a programming and debugging interface. The device’s Bluetooth 5.2 interface enables connectivity to external devices. The communication between the MCU and the ADE9113 is over SPI.
>>Download the PDF of the article
The CP needed to implement the communication between the EVSE and EV is generated using the MAX32655 and the ADA4523-1 low noise, zero-drift op amp.
The system is powered by the single-phase 230-V AC input. An isolated AC-DC switch-mode power supply (SMPS) is used to deliver 12 V to the board. The MAX20457 high-efficiency dual synchronous buck converters for automotive applications are used to step down the voltage to 5 V and 3.3 V, providing power to the isolated side of the board. The LT8330 used in the inverting configuration generates the 12-V negative voltage needed for the low side of the CP signal.
The ADT75 12-bit digital temperature sensor monitors the temperature of the device and sends it to the MCU for protection against overheating.
The design is accompanied by an open-source software stack and reference applications, enabling custom software development to start with a proven implementation validated to meet the applicable standards. The system is designed to the IEC 61851 and IEC 62752 standards.
The Isolated ADC
The ADE9113 is an isolated, three-channel, sigma-delta ADC for polyphase energy-measurement applications using shunt current sensors. Data and power isolation are based on ADI’s iCoupler technology. This IC features three ADCs. One channel is dedicated to measuring the voltage across a current-sensing shunt. Up to two additional channels are dedicated to measuring voltages, which are usually sensed using resistor dividers. In this application, one of the voltage channels detects if the relay contacts are welded.
This ADC includes an isoPower device, an integrated, isolated DC-DC converter. The DC-DC converter provides the regulated power required by the first stage of the ADCs. It eliminates the need for an external DC-DC isolation block.
The iCoupler chip-scale transformer technology is also used to isolate the logic signals between the first and second stages of the ADC. The result is a small-form-factor, total isolation solution that provides access to the ADC outputs, configuration, and status registers for easy interfacing with microcontrollers. It can be clocked from a crystal or an external clock signal.
The input range of the ADE9113 must be satisfied by choosing the appropriate values for the voltage divider resistors and the shunt resistance. The range represents the peak-to-peak pseudo differential voltage that must be applied to the ADCs to generate a full-scale response when the IM and VxM pins are connected to AGND, Pin 11. The IM and VxM pins are connected to AGND using anti-aliasing filters.
The ADE9113’s second voltage input is used for welded relay contact detection.
Figure 3 shows the simplified LTspice simulation for the circuits connected to the three input channels of the ADE9113 where:
- R_contact is the value of the relay contact resistance (open, Figure 4, or closed relay, Figure 5, value depending on the simulated case).
- V1P, V2P, V1M, V2M, IP, and IM are the inputs of the ADE9113 channels.
The relay state values for the two cases for an input voltage of 230-V amplitude and 23-Ω load are presented in the table.
Grid Protective Earth Presence Test
The grid protective earth presence and phase-neutral reversed are sensed during the device power-off using the circuit in Figure 6. If the earth isn’t present, the device enters an error state and an error message is displayed on the status LEDs. If the phase-neutral reversed needs to be detected, then the two outputs of the optocoupler are used in conjunction with the PE_ERR signal.
Software Framework
“no-OS” is a software framework developed by Analog Devices for systems that don’t include an operating system (OS), otherwise known as bare metal. The framework defines a common interface (API) for accessing typical bare-metal peripherals such as general-purpose input output (GPIO), SPI, I2C, RTC, timer, interrupt controller, and others. This common API may then be used to initialize and control these peripherals in a common way across multiple microcontroller platforms.
The framework currently supports Intel and Xilinx microprocessors and SoCs. It also works with ADI’s own precision microcontrollers, several MAX32xx microcontrollers, STMicroelectronics’ STM32, Raspberry Pi’s PICO, and mbedOS-based devices.
By using this common driver API, which follows its own coding style, no-OS can provide reference projects for ADI evaluation boards running on various underlying hardware. Thanks to the no-OS build system, no-OS users may generate standalone reference projects in a short period of time and use them as the starting point for their own development.
no-OS is open-source software, and its official repository is the no-OS GitHub repository. Users are free to use and distribute no-OS if they comply with the license. The no-OS main drivers used in the firmware are those that are concerned with the MAX32655 microcontroller, ADE9113 isolated three-channel sigma-delta ADC, and ADT75 temperature monitoring system.
The State Machine
An IC-CPD’s functionality is presented in Figure 7. The implemented state machine follows the IEC 61851-1 guidelines.
The firmware uses three enums to implement the logic. First is the charger_state_e, which includes the possible states, and the states change based on the CP value. The state_ machine_events_e enum contains all of the possible events that can be triggered. These events are used for state logic implementation. The interface_err_status_e enum is applied for error interpretation.
Test Results
The tests were conducted using the Fluke FEV300 EV charging station adapter and different loads (Fig. 8), or with the Type 2 cable connector using the same loads, or an EV.
Normal Working Conditions (Charging State Machine) and RCD Error Detection Results
Figures 9 and 10 present the waveforms for two test measurements done using the test bench from Figure 8. Figure 9 shows a complete run of the state machine from power-up, with the EV disconnected (a resistive load in this case), to charging, where the states are highlighted on the CP waveform.
The difference between Figures 9 and 10 is that during state C (while the EV is charging), an AC RCD interrupt is triggered. This can be observed in the third waveform. The IC-CPD opens the relay, and an error message is displayed on the LEDs.
The messages in Figure 11 correspond to the case presented in Figure 9, which shows a complete charging session from power-on to charging and EV disconnected.
The debug messages also include information about the input voltage value, the current and temperature inside the enclosure, and the active states at a specific moment in time.
CP Error
In case of a CP error, the IC-CPD opens the relay and indicates the CP error on the LEDs.
Protective Earth (PE) Error
In case of a PE error (PE missing between EVSE and EV) that occurs in state C, the relay will be opened, and an error will be indicated on the LEDs. If the PE error occurs during state A or state B, the IC-CPD will see it as if the EV is disconnected and will remain or enter state A (depending on the state active when the error occurred). In this situation, the CP level can’t reach the state C value and the relay will remain open until the PE connection is reestablished.
Conclusion
This article is focused on IC-CPDs and offered information about the ADI AD-ACEVSECRDSET-SL reference design, which is a complete Type 2 EVSE 3.6-kW charging cable solution intended for the evaluation and prototyping of EV charging systems. The component count is reduced by using the ADE9113 isolated ADC; this is made possible thanks to integrated isoPower technology and internal isolation.
The MAX32655 MCU with its integrated BLE and ADC channels makes the implementation of the state machine straightforward as indicated in the IEC 61851-1. In addition, the use of the no-OS framework and the open-source code approach eases the development of the software and gives a good starting point for the development of software that follows the guidelines in the applicable IEC standards mentioned in the article.
These links offer further information regarding the reference design:
- AD-ACEVSECRDSET-SL User Guide
- AD-ACEVSECRDSET-SL Hardware User Guide
- AD-ACEVSECRDSET-SL Software User Guide
References
1. Global EV Data Explorer. International Energy Agency.
2. Fayez Alanazi. “Electric Vehicles: Benefits, Challenges, and Potential Solutions for Widespread Adaptation.” Applied Sciences, Vol. 13, 2023.
3. Luis Sarmiento, Nicole Wägner, and Aleksandar Zaklan. “The Air Quality and Well-Being Effects of Low Emission Zones.” Journal of Public Economics, Vol. 227, 2023.
4. “Worldwide Daily Driving Distance is 25-50km? What about AU, US, UK, EU, and...” Solar on EV, October 2021.
5. “Daily Miles of Travel per Driver in the United States Between 2001 and 2017.” Statista, 2021.
6. National Household Travel Survey. U.S. Department of Transportation Federal Highway Administration.
ADI Type2 EVSE. GitHub.
no-OS API. Analog Devices Inc.
no-OS Build Guide. GitHub.
no-OS Code Style Guidelines. GitHub.
no-OS GitHub Repository. GitHub.
no-OS Licence. GitHub.
no-OS Overview. Analog Devices Inc.
>>Download the PDF of the article
About the Author
Radu Etz
Embedded Systems Architect, Analog Devices
Radu Etz holds a Ph.D. in electronics from the Technical University of Cluj-Napoca since 2012. He joined the Customer Office Solutions at Analog Devices in 2022. Currently, Radu is an embedded systems architect in the Software and Security Group at Analog Devices Romania.













