• Skip to primary navigation
  • Skip to main content
  • Skip to primary sidebar
  • Skip to footer

Microcontroller Tips

Microcontroller engineering resources, new microcontroller products and electronics engineering news

  • Products
    • 8-bit
    • 16-bit
    • 32-bit
    • 64-bit
  • Applications
    • 5G
    • Automotive
    • Connectivity
    • Consumer Electronics
    • EV Engineering
    • Industrial
    • IoT
    • Medical
    • Security
    • Telecommunications
    • Wearables
    • Wireless
  • Learn
    • eBooks / Tech Tips
    • EE Training Days
    • FAQs
    • Learning Center
    • Tech Toolboxes
    • Webinars/Digital Events
  • Resources
    • Design Guide Library
    • DesignFast
    • LEAP Awards
    • Podcasts
    • White Papers
  • Videos
    • EE Videos & Interviews
    • Teardown Videos
  • EE Forums
    • EDABoard.com
    • Electro-Tech-Online.com
  • Engineering Training Days
  • Advertise
  • Subscribe

How is HIL testing used for onboard EV chargers?

May 15, 2024 By Jeff Shepard Leave a Comment

Hardware-in-the-loop (HIL) testing is a real-time simulation that enables designers to test embedded code for EV chargers without needing the actual system hardware. It speeds development efforts and reduces development costs.

This article begins with an overview of HIL testing and onboard chargers (OBCs), looks at specific types of HIL testing applied to OBCs, and concludes by considering how HIL testing of OBCs can improve vehicle-to-grid (V2G) operations.

HIL testing of OBCs includes testing interactions with the power grid or electric vehicle supply equipment (EVSE) on the input and high-voltage power supply and electronic load to test bidirectional operation, a low-voltage electronic load, a cooling system (chiller), various actuators and sensors and the HIL simulator (Figure 1).

SASE security
Figure 1. HIL simulations of EV OBCs enable designers to test interactions between embedded code and hardware.  (Image: Meta System)

Some features of HIL testing platforms for OBCs include:

  • Realistic software models of the OBC, EVSE, battery pack, battery modules, battery management system, cooling/heating system, sensors, actuators, and other components.
  • Library of preprogrammed automated tests.
  • Specific tests to confirm compliance with industry standards like the combined charging standard (CCS), CHAdeMO, ISO 15118-2, IEC 61851-1, J1772, and so on.
  • Ability to test the controller functionality during fault conditions and simulated grid disturbances.
  • Simulation using actual OBC and EVSE communication messages.

Using HIL testing enables EV developers to test a wide range of hardware, such as different battery pack sizes and configurations, different types of EVSE, and interactions with various grid specifications, to ensure global compatibility without using many complex and expensive physical hardware configurations.

HIL testing for power electronic systems like OBCs can focus on signal simulations or power simulations. Signal simulations validate the controller’s performance under actual operating conditions. The simulated controller must accurately imitate the actual hardware, including communications protocols and battery charging algorithms, under nominal and abnormal operating conditions.

Power simulations can be performed at reduced power levels or at full power. Both tests use the same software but may require different hardware. Reduced power testing is often used initially to test the integration of the controller and power conversion components. It’s performed using a lower-power AC source and lower-power electronic loads. That can speed initial validation of the system with minimal cost.

Full-power HIL simulation is used as a final validation step before actual hardware testing begins. In addition to testing the overall system performance and integration, full power HIL simulations are often used for testing new subsystems and related control software before final system integration.

HIL and V2G integration

Numerous challenges are associated with V2G system integration. A V2G system must accommodate the needs of the electric grid to dynamically minimize voltage and frequency excursions in real time to support stable grid operation. Due to the complex nature of the grid structure and the different types of vehicles that will be used for V2G, HIL testing is needed to integrate V2G systems cost-effectively.

HIL testing can simulate power electronic systems like OBCs while simultaneously simulating the complexities of distribution grid operation. In one case, a V2G simulation was implemented that included a 2.5 mega-volt-amp (MVA), 230 kilovolt (kV), and 4.8 kV, 37-bus, three-phase balanced network for the distribution grid. The loads included a combination of houses and V2G systems. The simulation included 10 neighborhoods of 16 homes each. There was a total of 320 end-nodes (160 homes and 160 V2G systems).

This HIL system was designed to enable simulation of a decentralized V2G control algorithm under various operating assumptions and study the impact on the voltage stability of the grid. A key element in the simulation was a bidirectional OBC using real-time control. The grid simulator sends a grid voltage signal to the bidirectional power converter and receives instantaneous current feedback from the power converter enabling the simulation to determine power consumption from each individual node. The results of the simulation on voltage stability are viewed on an oscilloscope (Figure 2).

SASE security
Figure 2. Using HIL techniques, the operation of a 2.5 MVA, 230 kV/4.8kV three-phase distribution grid with 160 nodes can be simulated and studied on a desktop. (Image: IEEE)

Summary

HIL testing gives OBC designers a powerful tool for quickly and inexpensively testing system operation and integration. It can also test compliance with industry standards and is being used to develop distributed control algorithms for V2G systems that support grid voltage stability.

References

Controller Hardware-in-the-loop (C-HIL) Testing of Decentralized EV-Grid Integration, IEEE
Experimental Platform for Evaluation of On-Board Real-Time Motion Controllers for Electric Vehicles, MDPI energies
HIL Testing Bidirectional On-Board Chargers, Typhoon HIL
HIL Tests for Onboard Chargers, dSpace
On Board Charger (OBC) Testing for Electric Vehicles (EVs), Meta System

You may also like:


  • How does a recurrent neural network (RNN) remember?

  • EE Training Day: ADAS domain controllers and transition to central…

  • What’s the difference between GPUs and TPUs for AI processing?

  • How do the seven types of V2X connectivity work?

  • MCUs optimized for EV control apps

Filed Under: Automotive, EV Engineering, FAQ, Featured Tagged With: FAQ

Reader Interactions

Leave a Reply Cancel reply

Your email address will not be published. Required fields are marked *

Primary Sidebar

Featured Contributions

Five challenges for developing next-generation ADAS and autonomous vehicles

Securing IoT devices against quantum computing risks

RISC-V implementation strategies for certification of safety-critical systems

What’s new with Matter: how Matter 1.4 is reshaping interoperability and energy management

Edge AI: Revolutionizing real-time data processing and automation

More Featured Contributions

EE TECH TOOLBOX

“ee
Tech Toolbox: 5G Technology
This Tech Toolbox covers the basics of 5G technology plus a story about how engineers designed and built a prototype DSL router mostly from old cellphone parts. Download this first 5G/wired/wireless communications Tech Toolbox to learn more!

EE Learning Center

EE Learning Center

EE ENGINEERING TRAINING DAYS

engineering
“bills
“microcontroller
EXPAND YOUR KNOWLEDGE AND STAY CONNECTED
Get the latest info on technologies, tools and strategies for EE professionals.

DesignFast

Design Fast Logo
Component Selection Made Simple.

Try it Today
design fast globle

Footer

Microcontroller Tips

EE World Online Network

  • 5G Technology World
  • EE World Online
  • Engineers Garage
  • Analog IC Tips
  • Battery Power Tips
  • Connector Tips
  • DesignFast
  • EDA Board Forums
  • Electro Tech Online Forums
  • EV Engineering
  • Power Electronic Tips
  • Sensor Tips
  • Test and Measurement Tips

Microcontroller Tips

  • Subscribe to our newsletter
  • Advertise with us
  • Contact us
  • About us

Copyright © 2025 · WTWH Media LLC and its licensors. All rights reserved.
The material on this site may not be reproduced, distributed, transmitted, cached or otherwise used, except with the prior written permission of WTWH Media.

Privacy Policy