Low-Latency Dual-MCU Hardware-in-the-Loop Platform Using Analog-Domain Communication for Electric Drive Applications

Main Article Content

Tanpisit Atipasaworn
Kittithuch Paponpen

Abstract

Real-time validation of electric-vehicle (EV) motor-drive controllers remains constrained by the high cost and communication latency of existing hardware-in-the-loop (HIL) systems. To address this limitation, this paper presents a dual-microcontroller HIL platform that enables deterministic, low-latency testing using readily available components. Two Texas Instruments TMS320F28379D digital signal controllers are used to partition the control and plant domains. The first MCU executes cascaded PI-based speed and current regulators, while the second numerically simulates the DC-motor–chopper–vehicle dynamics at a 10 µs step size. A distinguishing feature of the proposed system is its analog-domain signal exchange: the controller’s PWM duty output is low-pass filtered and sampled by the plant MCU, while plant feedback (armature current and speed) is returned through DAC–ADC links. This architecture eliminates protocol overhead inherent in SPI or serial communication and achieves a measured 8.67 µs round-trip latency, ensuring deterministic real-time coupling. Experimental validation using step and mixed-drive-cycle profiles demonstrates tracking performance comparable to a single-MCU benchmark, with reduced current ripple and improved modularity. The entire workflow is implemented through Simulink auto-code generation, requiring no manual driver coding. Beyond providing a cost-effective alternative to commercial HIL simulators, the platform offers a transparent and reproducible framework for research and education in electric-drive control. This contribution highlights how analog-coupled dual-MCU architectures can deliver sub-10 µs responsiveness and structural realism, forming a scalable foundation for next-generation EV HIL development

Article Details

How to Cite
Atipasaworn, T. ., & Paponpen, K. (2026). Low-Latency Dual-MCU Hardware-in-the-Loop Platform Using Analog-Domain Communication for Electric Drive Applications. ECTI Transactions on Electrical Engineering, Electronics, and Communications, 24(2). https://doi.org/10.37936/ecti-eec.2026242.262175
Section
Power Electronics

References

I. R. Kendall and R. P. Jones, “An Investigation into

the Use of Hardware-in-the-Loop Simulation Testing

for Automotive Electronic Control Systems,”

Control Engineering Practice, vol. 7, no. 11, pp.

–1356, Nov. 1999.

R. Isermann, R. Schaffnit, and S. Sinsel, “Hardwarein-

the-Loop Simulation for the Design and Testing

of Engine Control Systems,” Control Engineering

Practice, vol. 7, no. 5, pp. 643–653, May 1999.

D. Maclay, “Simulation Gets into the Loop,” IEEReview, vol. 43, no. 3, pp. 109–112, May 1997.

F. Mihalič, M. Truntič, and A. Hren, “Hardwarein-

the-Loop Simulations: A Historical Overview

of Engineering Challenges,” Electronics, vol. 11, no.

, Art. 2462, Aug. 2022.

IEEE PES Task Force on Real-Time Simulation of

Power and Energy Systems, “Real-time simulation

technologies for power systems design, testing,

and analysis,” IEEE Power and Energy Technology

Systems Journal, vol. 2, no. 2, pp. 63–73, Jun. 2015.

J. Saele and I. O’Bryan, ”Realization of Real-

Time Simulation of Power Electronics Systems

in Applications - A Review of Requirements and

Methods,” 2024 IEEE 15th International Symposium

on Power Electronics for Distributed Generation

Systems (PEDG), Luxembourg, 2024, pp. 1-6.

G. F. Lauss, M. O. Faruque, K. Schoder, C. Dufour,

A. Viehweider and J. Langston, ”Characteristics

and Design of Power Hardware-in-the-Loop Simulations

for Electrical Power Systems,” IEEE Transactions

on Industrial Electronics, vol. 63, no. 1, pp.

-417, Jan. 2016.

M. O. Omar Faruque and V. Dinavahi, ”Hardwarein-

the-Loop Simulation of Power Electronic Systems

Using Adaptive Discretization,” IEEE Transactions

on Industrial Electronics, vol. 57, no. 4, pp.

-1158, Apr. 2010.

R. F. Bastos, G. H. F. Fuzato, C. R. de Aguiar, R.

V. A. Neves, and R. Q. Machado, “Model, Design

and Implementation of a Low-Cost HIL for Power

Converter and Microgrid Emulation Using DSP,”

IET Power Electronics, vol. 14, no. 1, pp. 690–705,

Jan. 2021.

S. A. Ojeda-Mancera, J. G. Carranco-Martínez,

V. M. Sámano-Ortega, J. J. Martínez Nolasco, C.

Martínez Nolasco, and M. Santoyo Mora, “Didactic

Hardware-in-the-Loop Platform: A Low-

Cost Open-Source Approach,” IEEE Latin America

Transactions, vol. 23, no. 10, pp. 910–921, Oct. 2025.

Y. Martinez-Armero, S. Lopez-Blandon, and E.

Giraldo, “Low-Cost Arduino-Based Hardware-inthe-

Loop Platform for Simulation and Control of

Dynamic Systems,” IAENG International Journal of

Computer Science, vol. 50, no. 4, pp. 1–8, Dec. 2023.

J. Vejlupek, M. Jasanský, V. Lamberský, and

R. Grepl, “Custom-Build Hardware-in-the-Loop

Microcontroller Based Simulator for Turboprop

and Turbojet Engine Control Units,” International

Journal of Circuits, Systems and Signal Processing,

vol. 8, pp. 410–417, 2014.

M. E. M. Essa, J. V. W. Lotfy, M. E. K. Abd-Elwahed,

K. Rabie, B. M. ElHalawany, and M. Elsisi, “Low-

Cost Hardware in the Loop for Intelligent Neural

Predictive Control of Hybrid Electric Vehicle,”

Electronics, vol. 12, no. 4, Art. 971, Feb. 2023.

Wahyudi, M. J. E. Salami, and A. Albagul,

“Development of a Microcontroller-Based

Control System with a Hardware-in-the-Loop (HIL) Method for Control Education Using

MATLAB/Simulink/xPC Target,” International

Journal of Engineering Education, vol. 21, no. 5, pp.

–854, 2005.

Gis, D., Büscher, N., Haubelt, C., “Investigation

of Timing Behavior and Jitter in a Smart Inertial

Sensor Debugging Architecture,” Sensors, vol. 21,

no. 14, pp. 4675–4689, Jul. 2021

dSPACE GmbH, “SCALEXIO Real-Time Platform,”

Product Information, [Online]. Available:

https://www.dspace.com/en/pub/home/products/hw/simulator_hardware/cfm, accessed: Mar. 2026.

Typhoon HIL, “HIL606 Real-Time Digital

Simulator,” Product Datasheet, [Online]. Available:

https://www.typhoon-hil.com/products/hilsimulator/

hil606/, accessed: Mar. 2026.

OPAL-RT Technologies, “OPAL-RT Real-Time

Simulation Platforms,” Product Overview,

[Online]. Available: https://www.opalrt.

com/hardware/simulators/, accessed: Mar.

Texas Instruments, “TMS320F2837xD

Dual-Core Microcontrollers Technical

Reference Manual,” 2022. [Online]. Available:

https://www.ti.com/lit/pdf/spruhm8, accessed:

Mar. 2026.