{"id":1291,"date":"2021-03-30T14:36:31","date_gmt":"2021-03-30T14:36:31","guid":{"rendered":"https:\/\/imperix.com\/doc\/?p=1291"},"modified":"2026-04-14T09:28:21","modified_gmt":"2026-04-14T09:28:21","slug":"electric-car-motor-control","status":"publish","type":"post","link":"https:\/\/imperix.com\/doc\/example\/electric-car-motor-control","title":{"rendered":"Electric Car Motor Control"},"content":{"rendered":"<div id=\"ez-toc-container\" class=\"ez-toc-v2_0_82_2 ez-toc-wrap-right-text counter-hierarchy ez-toc-counter ez-toc-grey ez-toc-container-direction\">\n<div class=\"ez-toc-title-container\">\n<p class=\"ez-toc-title\" style=\"cursor:inherit\">Table of Contents<\/p>\n<span class=\"ez-toc-title-toggle\"><\/span><\/div>\n<nav><ul class='ez-toc-list ez-toc-list-level-1 ' ><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-1\" href=\"https:\/\/imperix.com\/doc\/example\/electric-car-motor-control\/#Downloads\" >Downloads<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-2\" href=\"https:\/\/imperix.com\/doc\/example\/electric-car-motor-control\/#General-description-of-the-electric-car-motor-control\" >General description of the electric car motor control<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-3\" href=\"https:\/\/imperix.com\/doc\/example\/electric-car-motor-control\/#Electric-car-motor-control-implementation\" >Electric car motor control implementation<\/a><ul class='ez-toc-list-level-3' ><li class='ez-toc-heading-level-3'><a class=\"ez-toc-link ez-toc-heading-4\" href=\"https:\/\/imperix.com\/doc\/example\/electric-car-motor-control\/#Electric-car-emulator\" >Electric car emulator<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-3'><a class=\"ez-toc-link ez-toc-heading-5\" href=\"https:\/\/imperix.com\/doc\/example\/electric-car-motor-control\/#Electric-car-motor-control\" >Electric car motor control<\/a><\/li><\/ul><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-6\" href=\"https:\/\/imperix.com\/doc\/example\/electric-car-motor-control\/#Experimental-testbench-for-electric-car-motor-control\" >Experimental testbench for electric car motor control<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-7\" href=\"https:\/\/imperix.com\/doc\/example\/electric-car-motor-control\/#Experimental-results-of-the-electric-car-motor-control\" >Experimental results of the electric car motor control<\/a><ul class='ez-toc-list-level-3' ><li class='ez-toc-heading-level-3'><a class=\"ez-toc-link ez-toc-heading-8\" href=\"https:\/\/imperix.com\/doc\/example\/electric-car-motor-control\/#Speed-control\" >Speed control<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-3'><a class=\"ez-toc-link ez-toc-heading-9\" href=\"https:\/\/imperix.com\/doc\/example\/electric-car-motor-control\/#Motor-torque-and-load-forces\" >Motor torque and load forces<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-3'><a class=\"ez-toc-link ez-toc-heading-10\" href=\"https:\/\/imperix.com\/doc\/example\/electric-car-motor-control\/#Power-consumption-and-energy-regeneration\" >Power consumption and energy regeneration<\/a><\/li><\/ul><\/li><\/ul><\/nav><\/div>\n\n<p>This example implements a reduced-scale testbench for electric car motor control.<\/p>\n\n\n\n<p>The application note describes the emulation of the car&#8217;s physics with a load motor and the implementation of the car motor speed controller using Field-Oriented Control (FOC).<\/p>\n\n\n\n<p>This note serves also as an example of how pre-recorded setpoint profiles and long-term data monitoring can be used with imperix controllers.<\/p>\n\n\n\n<p>The control is implemented on Simulink using the&nbsp;<a href=\"https:\/\/imperix.ch\/software\/acg-sdk\">ACG SDK<\/a> library and is executed on a&nbsp;<a href=\"http:\/\/imperix.ch\/products\/control\/bbox\">B-Box RCP<\/a>. Please note that imperix offers a <a href=\"https:\/\/imperix.com\/products\/electric-motor-drive-bundle\/\">ready-to-use motor drive system<\/a> to develop and test motor control techniques.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"h-downloads\"><span class=\"ez-toc-section\" id=\"Downloads\"><\/span>Downloads<span class=\"ez-toc-section-end\"><\/span><\/h2>\n\n\n\n<p>The Simulink model used in this note can be downloaded under the link below. The same model allows to run a PC-based simulation of the whole system and to generate run-time control code for controlling the motor drives with a <a href=\"http:\/\/imperix.ch\/products\/control\/bbox\">B-Box RCP<\/a>.<\/p>\n\n\n\n<div class=\"wp-block-file\"><a href=\"https:\/\/cdn.imperix.com\/doc\/wp-content\/uploads\/2021\/03\/AN011_Electrical_Vehicle_Testbench.zip\">AN011_Electrical_Vehicle_Testbench<\/a><a href=\"https:\/\/cdn.imperix.com\/doc\/wp-content\/uploads\/2021\/03\/AN011_Electrical_Vehicle_Testbench.zip\" class=\"wp-block-file__button wp-element-button\" download>Download<\/a><\/div>\n\n\n\n<p><em>Minimum requirements: Imperix ACG SDK \u22653.5.1.1 | MATLAB Simulink \u2265R2016a | [offline simulation only] Plexim PLECS Blockset (paid license) or PLECS Viewer (free)<\/em><\/p>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"h-general-description-of-the-electric-car-motor-control\"><span class=\"ez-toc-section\" id=\"General-description-of-the-electric-car-motor-control\"><\/span>General description of the electric car motor control<span class=\"ez-toc-section-end\"><\/span><\/h2>\n\n\n\n<p>In this note, a reduced-scale electric vehicle testbench is implemented by applying common motor control techniques to two connected motor drive systems. In that system, one motor represents the vehicle powertrain, whereas the other produces the resistive force that the moving vehicle is subject to.<\/p>\n\n\n<div class=\"wp-block-image\">\n<figure class=\"aligncenter size-large is-resized\"><img loading=\"lazy\" decoding=\"async\" width=\"785\" height=\"162\" src=\"https:\/\/imperix.com\/doc\/wp-content\/uploads\/2021\/03\/image-262.png\" alt=\"Electric car motor control diagram\" class=\"wp-image-1295\" style=\"width:785px;height:162px\" title=\"Application notes &gt; AN011: Motor control of an Electric Vehicle &gt; schematic_AN011.png\" srcset=\"https:\/\/imperix.com\/doc\/wp-content\/uploads\/2021\/03\/image-262.png 785w, https:\/\/imperix.com\/doc\/wp-content\/uploads\/2021\/03\/image-262-300x62.png 300w, https:\/\/imperix.com\/doc\/wp-content\/uploads\/2021\/03\/image-262-768x158.png 768w\" sizes=\"auto, (max-width: 785px) 100vw, 785px\" \/><\/figure>\n<\/div>\n\n\n<p>The vehicle powertrain is tested using the standardized <a href=\"https:\/\/www.wltpfacts.eu\/\">WLTP speed profile<\/a> shown below, which the speed controller has to follow. This realistic test challenges the speed controller in various speed and acceleration ranges. In addition, it allows computing the total electric consumption of the vehicle and the amount of energy recovered during regenerative braking.<\/p>\n\n\n\n<figure class=\"wp-block-image size-large is-resized\"><img loading=\"lazy\" decoding=\"async\" width=\"800\" height=\"319\" src=\"https:\/\/imperix.com\/doc\/wp-content\/uploads\/2021\/03\/image-263.png\" alt=\"WLTP test speed profile\" class=\"wp-image-1296\" style=\"width:800px;height:319px\" title=\"Application notes &gt; AN011: Motor control of an Electric Vehicle &gt; WLTP_speed_profile.png\" srcset=\"https:\/\/imperix.com\/doc\/wp-content\/uploads\/2021\/03\/image-263.png 800w, https:\/\/imperix.com\/doc\/wp-content\/uploads\/2021\/03\/image-263-300x120.png 300w, https:\/\/imperix.com\/doc\/wp-content\/uploads\/2021\/03\/image-263-768x306.png 768w\" sizes=\"auto, (max-width: 800px) 100vw, 800px\" \/><\/figure>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"h-electric-car-motor-control-implementation\"><span class=\"ez-toc-section\" id=\"Electric-car-motor-control-implementation\"><\/span>Electric car motor control implementation<span class=\"ez-toc-section-end\"><\/span><\/h2>\n\n\n\n<p>In this application, one single <a href=\"https:\/\/imperix.com\/products\/control\/bbox\/\">B-Box controller<\/a> is used to control both PMSM and, therefore, one single Simulink model implements both control algorithms in parallel. In addition to the motor control algorithms, the model contains notably a car emulator, as described below.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\" id=\"h-electric-car-emulator\"><span class=\"ez-toc-section\" id=\"Electric-car-emulator\"><\/span>Electric car emulator<span class=\"ez-toc-section-end\"><\/span><\/h3>\n\n\n\n<p>The car emulator computes the resistive torque \\(T_L\\) that the load machine should apply, in order to mimic the behavior of a moving car. The torque of the load machine is controlled using the method developed in <a href=\"https:\/\/imperix.com\/doc\/implementation\/field-oriented-control-of-permanent-magnet-synchronous-machine\">Field-oriented control (FOC) of a PMSM (TN111)<\/a>.<\/p>\n\n\n\n<p>The computation of \\(T_L\\) is based on a basic physical model containing only an inertial and an air drag term, assuming that the road is flat. The standard equations of linear motion are converted into rotational motion, considering a wheel of radius \\(R\\). The resistive torque \\(T_L\\) is computed from the motor speed \\(\\omega_m\\), according to:<\/p>\n\n\n\n<p>$$T_{L}=T_{\\text{inertial}}+T_{\\text{drag}}=\\left(R\\gamma\\right)^2\\left[m\\cfrac{\\text{d}\\omega_m}{\\text{d}t}+ \\cfrac{1}{2} \\mathop{\\mathrm{sgn}}(\\omega _m) \\space R \\space \\gamma \\space \\rho_{air} \\space C_d \\space A \\space \\omega_m^2\\right]$$<\/p>\n\n\n\n<p>with the parameters listed below. Their values are adapted from actual parameters of a <a href=\"https:\/\/en.wikipedia.org\/wiki\/Tesla_Model_S\">Tesla Model S<\/a> and downsized to fit the ratings of the available motors (1.23 kW \/ 3.9 Nm).<\/p>\n\n\n\n<figure class=\"wp-block-table\"><table><tbody><tr><th><strong>Symbol<\/strong><\/th><th><strong>Parameter<\/strong><\/th><th><strong>Value<\/strong><\/th><\/tr><tr><td>\\(\\omega_m\\)<\/td><td>Motor speed [rad\/s]<\/td><td><em>Derived from encoder angle<\/em><\/td><\/tr><tr><td>\\(R\\)<\/td><td>Wheel radius<\/td><td>30 cm<\/td><\/tr><tr><td>\\(\\gamma\\)<\/td><td>Gear box ratio<\/td><td>1 : 2.5<\/td><\/tr><tr><td>\\(m\\)<\/td><td>Mass<\/td><td>2100 \/ 120 = 17.5 kg<\/td><\/tr><tr><td>\\(\\rho_{air}\\)<\/td><td>Air density<\/td><td>1.25 kg\/m<sup>2<\/sup><\/td><\/tr><tr><td>\\(C_d\\)<\/td><td>Drag coefficient<\/td><td>0.24<\/td><\/tr><tr><td>\\(A\\)<\/td><td>Reference area<\/td><td>2.34 \/ 120<sup>2\/3<\/sup> = 961.8 cm<sup>2<\/sup><\/td><\/tr><\/tbody><\/table><\/figure>\n\n\n<div class=\"wp-block-image\">\n<figure class=\"aligncenter size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"263\" height=\"105\" src=\"https:\/\/imperix.com\/doc\/wp-content\/uploads\/2021\/03\/image-264.png\" alt=\"Electric car model\" class=\"wp-image-1297\" title=\"Application notes &gt; AN011: Motor control of an Electric Vehicle &gt; car_emulator_diagram.png\"\/><\/figure>\n<\/div>\n\n\n<h3 class=\"wp-block-heading\" id=\"h-electric-car-motor-control\"><span class=\"ez-toc-section\" id=\"Electric-car-motor-control\"><\/span>Electric car motor control<span class=\"ez-toc-section-end\"><\/span><\/h3>\n\n\n\n<p>The car motor is controlled to follow a WLTP speed profile using Field-Oriented Control, cascaded with a speed controller. The implementations of both stages are described in <a href=\"https:\/\/imperix.com\/doc\/implementation\/field-oriented-control-of-permanent-magnet-synchronous-machine\">TN111<\/a> and <a href=\"https:\/\/imperix.com\/doc\/implementation\/motor-speed-control\">TN114<\/a>, respectively. The control orientation is based on the rotor position measured by an incremental encoder and decoded by the decoder module of the ACG SDK library, as presented in <a href=\"https:\/\/imperix.com\/doc\/help\/using-the-angle-decoder-modules\">Using the angle decoder modules (PN104)<\/a>.<\/p>\n\n\n\n<p>The WLTP speed profile is pre-recorded and stored in a MATLAB vector. During the code execution, it is applied as the speed reference for the car motor controller, using the approach detailed in <a href=\"https:\/\/imperix.com\/doc\/help\/pre-recorded-profiles-setpoint\">PN152<\/a>.<\/p>\n\n\n<div class=\"wp-block-image\">\n<figure class=\"aligncenter size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"306\" height=\"108\" src=\"https:\/\/imperix.com\/doc\/wp-content\/uploads\/2021\/03\/image-265.png\" alt=\"Electric car speed control\" class=\"wp-image-1298\" title=\"Application notes &gt; AN011: Motor control of an Electric Vehicle &gt; WLTP_speed_ctrl_diagram.png\" srcset=\"https:\/\/imperix.com\/doc\/wp-content\/uploads\/2021\/03\/image-265.png 306w, https:\/\/imperix.com\/doc\/wp-content\/uploads\/2021\/03\/image-265-300x106.png 300w\" sizes=\"auto, (max-width: 306px) 100vw, 306px\" \/><\/figure>\n<\/div>\n\n\n<h2 class=\"wp-block-heading\" id=\"h-experimental-testbench-for-electric-car-motor-control\"><span class=\"ez-toc-section\" id=\"Experimental-testbench-for-electric-car-motor-control\"><\/span>Experimental testbench for electric car motor control<span class=\"ez-toc-section-end\"><\/span><\/h2>\n\n\n\n<p>The motor testbench is shown below. It contains two back-to-back 1.23 kW PMSMs, driven by two three-phase voltage source inverters. In this configuration, both inverters share the same DC bus. Please refer to <a href=\"https:\/\/imperix.com\/doc\/help\/variable-speed-drive\">PN180<\/a> for more information on this topology.<\/p>\n\n\n\n<p>In particular, the following imperix products are featured:<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li><a href=\"https:\/\/imperix.com\/products\/control\/bbox\/\">B-Box RCP controller<\/a><\/li>\n\n\n\n<li>Control implementation using <a href=\"https:\/\/imperix.com\/software\/acg-sdk\/\">ACG SDK for Simulink<\/a><\/li>\n\n\n\n<li>Converter rack with 6x <a href=\"https:\/\/imperix.com\/products\/power\/peb\/\">PEB 8032 IGBT phase-leg module<\/a><\/li>\n<\/ul>\n\n\n<div class=\"wp-block-image\">\n<figure class=\"aligncenter size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"615\" height=\"451\" src=\"https:\/\/imperix.com\/doc\/wp-content\/uploads\/2021\/03\/image-266.png\" alt=\"Electric car motor control testbench\" class=\"wp-image-1299\" title=\"Application notes &gt; AN011: Motor control of an Electric Vehicle &gt; testbench_photo.png\" srcset=\"https:\/\/imperix.com\/doc\/wp-content\/uploads\/2021\/03\/image-266.png 615w, https:\/\/imperix.com\/doc\/wp-content\/uploads\/2021\/03\/image-266-300x220.png 300w\" sizes=\"auto, (max-width: 615px) 100vw, 615px\" \/><\/figure>\n<\/div>\n\n\n<div class=\"wp-block-simple-alerts-for-gutenberg-alert-boxes sab-alert sab-alert-success\" role=\"alert\">General\u00a0<strong>safety-related recommendations<\/strong>\u00a0for operating power converters in a laboratory environment are given in\u00a0<a href=\"https:\/\/imperix.com\/doc\/implementation\/safety-and-protection-in-the-lab\">TN181<\/a>.<\/div>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"h-experimental-results-of-the-electric-car-motor-control\"><span class=\"ez-toc-section\" id=\"Experimental-results-of-the-electric-car-motor-control\"><\/span>Experimental results of the electric car motor control<span class=\"ez-toc-section-end\"><\/span><\/h2>\n\n\n\n<p>The following experimental results were extracted from the BB Control datalogging, after running the full 30-minutes WLTP test. The speed, torque, and electrical power values of each machine are acquired at a rate of 10 Hz (i.e. using a downsampling ratio of 2000). In total, 18&#8217;000 samples of 7 different variables are acquired and exported in a CSV file.<\/p>\n\n\n\n<div class=\"wp-block-simple-alerts-for-gutenberg-alert-boxes sab-alert sab-alert-success\" role=\"alert\">BB Control is able to save 200&#8217;000 points on 32 different channels. During a 30-minute test, this could represent an acquisition rate of above 100 Hz for each variable.<\/div>\n\n\n\n<h3 class=\"wp-block-heading\" id=\"h-speed-control\"><span class=\"ez-toc-section\" id=\"Speed-control\"><\/span>Speed control<span class=\"ez-toc-section-end\"><\/span><\/h3>\n\n\n\n<p>The following graph shows the measured motor speed during the whole 30-minutes test. It shows that the speed regulator is able to track the WLTP speed profile throughout the test, in all speed ranges.<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"800\" height=\"300\" src=\"https:\/\/imperix.com\/doc\/wp-content\/uploads\/2021\/03\/image-267.png\" alt=\"Electric car measured speed\" class=\"wp-image-1300\" title=\"Application notes &gt; AN011: Motor control of an Electric Vehicle &gt; speed_profile_with_zoom_x1.png\" srcset=\"https:\/\/imperix.com\/doc\/wp-content\/uploads\/2021\/03\/image-267.png 800w, https:\/\/imperix.com\/doc\/wp-content\/uploads\/2021\/03\/image-267-300x113.png 300w, https:\/\/imperix.com\/doc\/wp-content\/uploads\/2021\/03\/image-267-768x288.png 768w\" sizes=\"auto, (max-width: 800px) 100vw, 800px\" \/><\/figure>\n\n\n\n<h3 class=\"wp-block-heading\" id=\"h-motor-torque-and-load-forces\"><span class=\"ez-toc-section\" id=\"Motor-torque-and-load-forces\"><\/span><strong>Motor torque and load forces<\/strong><span class=\"ez-toc-section-end\"><\/span><\/h3>\n\n\n\n<p>The graph below shows the evolution of the motor torque throughout the test. The measured torque is actually estimated from the q-axis current of the PMSM, while the theoretical value is derived from the speed profile and the physical model of the car. Overall, the measured torque tends to be slightly larger (in absolute value) than the theoretical value, since the motor friction forces are not taken into account in the car modeling.<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"800\" height=\"300\" src=\"https:\/\/imperix.com\/doc\/wp-content\/uploads\/2021\/03\/image-268.png\" alt=\"Electric car measured torque\" class=\"wp-image-1301\" title=\"Application notes &gt; AN011: Motor control of an Electric Vehicle &gt; torque.png\" srcset=\"https:\/\/imperix.com\/doc\/wp-content\/uploads\/2021\/03\/image-268.png 800w, https:\/\/imperix.com\/doc\/wp-content\/uploads\/2021\/03\/image-268-300x113.png 300w, https:\/\/imperix.com\/doc\/wp-content\/uploads\/2021\/03\/image-268-768x288.png 768w\" sizes=\"auto, (max-width: 800px) 100vw, 800px\" \/><\/figure>\n\n\n\n<p>When translated back into linear movement, the load torque breaks down into its air drag and inertial components, as shown below. As expected, the drag force is always negative, since it acts always against the movement of the car. The inertia, however, acts against acceleration: its associated force is negative when the car accelerates, and positive when it decelerates. Overall, when the total load force is positive, the kinetic energy can be recovered to charge the car battery, thanks to the bidirectional power converter. In the case of this back-to-back testbench, the load machine runs as a motor during the energy recovery periods.<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"800\" height=\"300\" src=\"https:\/\/imperix.com\/doc\/wp-content\/uploads\/2021\/03\/image-269.png\" alt=\"Electric car measured forces\" class=\"wp-image-1302\" title=\"Application notes &gt; AN011: Motor control of an Electric Vehicle &gt; load_forces.png\" srcset=\"https:\/\/imperix.com\/doc\/wp-content\/uploads\/2021\/03\/image-269.png 800w, https:\/\/imperix.com\/doc\/wp-content\/uploads\/2021\/03\/image-269-300x113.png 300w, https:\/\/imperix.com\/doc\/wp-content\/uploads\/2021\/03\/image-269-768x288.png 768w\" sizes=\"auto, (max-width: 800px) 100vw, 800px\" \/><\/figure>\n\n\n\n<h3 class=\"wp-block-heading\" id=\"h-power-consumption-and-energy-regeneration\"><span class=\"ez-toc-section\" id=\"Power-consumption-and-energy-regeneration\"><\/span>Power consumption and energy regeneration<span class=\"ez-toc-section-end\"><\/span><\/h3>\n\n\n\n<p>Energy recovery can be illustrated even more clearly when plotting the evolution of the motor electrical power, as in the figure below. When the motor power becomes negative, the power flow is inverted and the power excess is transferred back towards the DC bus of the converter. This is the case when the drag force is not sufficient to slow down the car and the speed controller has to brake (i.e. impose a negative torque) to be able to follow the speed reference. This corresponds to regenerative braking.<\/p>\n\n\n\n<p>In real terms, the speed controller of this testbench is similar to the behavior of the car driver that uses one-pedal driving.<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"800\" height=\"300\" src=\"https:\/\/imperix.com\/doc\/wp-content\/uploads\/2021\/03\/image-270.png\" alt=\"Electric car measured power\" class=\"wp-image-1303\" title=\"Application notes &gt; AN011: Motor control of an Electric Vehicle &gt; electrical_power.png\" srcset=\"https:\/\/imperix.com\/doc\/wp-content\/uploads\/2021\/03\/image-270.png 800w, https:\/\/imperix.com\/doc\/wp-content\/uploads\/2021\/03\/image-270-300x113.png 300w, https:\/\/imperix.com\/doc\/wp-content\/uploads\/2021\/03\/image-270-768x288.png 768w\" sizes=\"auto, (max-width: 800px) 100vw, 800px\" \/><\/figure>\n\n\n\n<p>In terms of energy consumption during the test, the integration of the electrical power gives the following energetic figures:<\/p>\n\n\n\n<figure class=\"wp-block-table\"><table><tbody><tr><td>Consumed energy [Wh]<\/td><td>71.3<\/td><\/tr><tr><td>Regenerated energy [Wh]<\/td><td>5.2<\/td><\/tr><tr><td>Energy balance [Wh]<\/td><td>66.1<\/td><\/tr><tr><td>Recovered energy ratio&nbsp;[%]<\/td><td>7.3<\/td><\/tr><\/tbody><\/table><\/figure>\n","protected":false},"excerpt":{"rendered":"<p>The note introduces an electric car motor control strategy. The system is tested on a back-to-back motor testbench with car emulation.<\/p>\n","protected":false},"author":2,"featured_media":45224,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_acf_changed":false,"_kad_post_transparent":"","_kad_post_title":"","_kad_post_layout":"","_kad_post_sidebar_id":"","_kad_post_content_style":"","_kad_post_vertical_padding":"","_kad_post_feature":"","_kad_post_feature_position":"","_kad_post_header":false,"_kad_post_footer":false,"_kad_post_classname":"","footnotes":""},"categories":[2],"tags":[18],"software-environments":[103],"provided-results":[108],"related-products":[50,32,166,114,111],"guidedreadings":[60],"tutorials":[],"user-manuals":[],"coauthors":[63],"class_list":["post-1291","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-example","tag-motor-drives","software-environments-matlab","provided-results-experimental","related-products-acg-sdk","related-products-b-box-rcp","related-products-b-box-rcp-3-0","related-products-motor","related-products-pm","guidedreadings-electric-car-motor-control"],"acf":[],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v27.4 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\n<title>Electric Car Motor Control - imperix<\/title>\n<meta name=\"description\" content=\"The note introduces an electric car motor control strategy. The system is tested on a back-to-back motor testbench with car emulation.\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/imperix.com\/doc\/example\/electric-car-motor-control\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Electric Car Motor Control - imperix\" \/>\n<meta property=\"og:description\" content=\"The note introduces an electric car motor control strategy. The system is tested on a back-to-back motor testbench with car emulation.\" \/>\n<meta property=\"og:url\" content=\"https:\/\/imperix.com\/doc\/example\/electric-car-motor-control\" \/>\n<meta property=\"og:site_name\" content=\"imperix\" \/>\n<meta property=\"article:published_time\" content=\"2021-03-30T14:36:31+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2026-04-14T09:28:21+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/imperix.com\/doc\/wp-content\/uploads\/2021\/03\/electric-car-motor-control.png\" \/>\n\t<meta property=\"og:image:width\" content=\"500\" \/>\n\t<meta property=\"og:image:height\" content=\"334\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/png\" \/>\n<meta name=\"author\" content=\"Julien Orsinger\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"Julien Orsinger\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"8 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\\\/\\\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\\\/\\\/imperix.com\\\/doc\\\/example\\\/electric-car-motor-control#article\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/imperix.com\\\/doc\\\/example\\\/electric-car-motor-control\"},\"author\":{\"name\":\"Julien Orsinger\",\"@id\":\"https:\\\/\\\/imperix.com\\\/doc\\\/#\\\/schema\\\/person\\\/65ef663818eab76f53cc627ab80e0a51\"},\"headline\":\"Electric Car Motor Control\",\"datePublished\":\"2021-03-30T14:36:31+00:00\",\"dateModified\":\"2026-04-14T09:28:21+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\\\/\\\/imperix.com\\\/doc\\\/example\\\/electric-car-motor-control\"},\"wordCount\":1200,\"commentCount\":0,\"publisher\":{\"@id\":\"https:\\\/\\\/imperix.com\\\/doc\\\/#organization\"},\"image\":{\"@id\":\"https:\\\/\\\/imperix.com\\\/doc\\\/example\\\/electric-car-motor-control#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/imperix.com\\\/doc\\\/wp-content\\\/uploads\\\/2021\\\/03\\\/electric-car-motor-control.png\",\"keywords\":[\"Motor drives\"],\"articleSection\":[\"Application notes\"],\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\\\/\\\/imperix.com\\\/doc\\\/example\\\/electric-car-motor-control#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/imperix.com\\\/doc\\\/example\\\/electric-car-motor-control\",\"url\":\"https:\\\/\\\/imperix.com\\\/doc\\\/example\\\/electric-car-motor-control\",\"name\":\"Electric Car Motor Control - imperix\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/imperix.com\\\/doc\\\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\\\/\\\/imperix.com\\\/doc\\\/example\\\/electric-car-motor-control#primaryimage\"},\"image\":{\"@id\":\"https:\\\/\\\/imperix.com\\\/doc\\\/example\\\/electric-car-motor-control#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/imperix.com\\\/doc\\\/wp-content\\\/uploads\\\/2021\\\/03\\\/electric-car-motor-control.png\",\"datePublished\":\"2021-03-30T14:36:31+00:00\",\"dateModified\":\"2026-04-14T09:28:21+00:00\",\"description\":\"The note introduces an electric car motor control strategy. The system is tested on a back-to-back motor testbench with car emulation.\",\"breadcrumb\":{\"@id\":\"https:\\\/\\\/imperix.com\\\/doc\\\/example\\\/electric-car-motor-control#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\\\/\\\/imperix.com\\\/doc\\\/example\\\/electric-car-motor-control\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/imperix.com\\\/doc\\\/example\\\/electric-car-motor-control#primaryimage\",\"url\":\"https:\\\/\\\/imperix.com\\\/doc\\\/wp-content\\\/uploads\\\/2021\\\/03\\\/electric-car-motor-control.png\",\"contentUrl\":\"https:\\\/\\\/imperix.com\\\/doc\\\/wp-content\\\/uploads\\\/2021\\\/03\\\/electric-car-motor-control.png\",\"width\":500,\"height\":334},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/imperix.com\\\/doc\\\/example\\\/electric-car-motor-control#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Knowledge base\",\"item\":\"https:\\\/\\\/imperix.com\\\/doc\\\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Application notes\",\"item\":\"https:\\\/\\\/imperix.com\\\/doc\\\/category\\\/example\"},{\"@type\":\"ListItem\",\"position\":3,\"name\":\"Electric Car Motor Control\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\\\/\\\/imperix.com\\\/doc\\\/#website\",\"url\":\"https:\\\/\\\/imperix.com\\\/doc\\\/\",\"name\":\"imperix\",\"description\":\"power electronics\",\"publisher\":{\"@id\":\"https:\\\/\\\/imperix.com\\\/doc\\\/#organization\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\\\/\\\/imperix.com\\\/doc\\\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":\"Organization\",\"@id\":\"https:\\\/\\\/imperix.com\\\/doc\\\/#organization\",\"name\":\"imperix\",\"url\":\"https:\\\/\\\/imperix.com\\\/doc\\\/\",\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/imperix.com\\\/doc\\\/#\\\/schema\\\/logo\\\/image\\\/\",\"url\":\"https:\\\/\\\/imperix.com\\\/doc\\\/wp-content\\\/uploads\\\/2021\\\/03\\\/imperix_logo.png\",\"contentUrl\":\"https:\\\/\\\/imperix.com\\\/doc\\\/wp-content\\\/uploads\\\/2021\\\/03\\\/imperix_logo.png\",\"width\":350,\"height\":120,\"caption\":\"imperix\"},\"image\":{\"@id\":\"https:\\\/\\\/imperix.com\\\/doc\\\/#\\\/schema\\\/logo\\\/image\\\/\"}},{\"@type\":\"Person\",\"@id\":\"https:\\\/\\\/imperix.com\\\/doc\\\/#\\\/schema\\\/person\\\/65ef663818eab76f53cc627ab80e0a51\",\"name\":\"Julien Orsinger\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/0a0328b09c6abe61fa1e263a1066dcb26ea8f3b9e8b1d78056047620947bb388?s=96&d=mm&r=g6545a7220411572e799ad58574cce259\",\"url\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/0a0328b09c6abe61fa1e263a1066dcb26ea8f3b9e8b1d78056047620947bb388?s=96&d=mm&r=g\",\"contentUrl\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/0a0328b09c6abe61fa1e263a1066dcb26ea8f3b9e8b1d78056047620947bb388?s=96&d=mm&r=g\",\"caption\":\"Julien Orsinger\"},\"description\":\"Julien is a senior power electronics engineer. On the knowledge base, he is acting as the editorial manager and is therefore the co-author of numerous articles on a broad variety of topics.\",\"sameAs\":[\"https:\\\/\\\/www.linkedin.com\\\/in\\\/julien-orsinger-640ab2129\\\/\"],\"url\":\"https:\\\/\\\/imperix.com\\\/doc\\\/author\\\/orsinger\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"Electric Car Motor Control - imperix","description":"The note introduces an electric car motor control strategy. The system is tested on a back-to-back motor testbench with car emulation.","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/imperix.com\/doc\/example\/electric-car-motor-control","og_locale":"en_US","og_type":"article","og_title":"Electric Car Motor Control - imperix","og_description":"The note introduces an electric car motor control strategy. The system is tested on a back-to-back motor testbench with car emulation.","og_url":"https:\/\/imperix.com\/doc\/example\/electric-car-motor-control","og_site_name":"imperix","article_published_time":"2021-03-30T14:36:31+00:00","article_modified_time":"2026-04-14T09:28:21+00:00","og_image":[{"width":500,"height":334,"url":"https:\/\/imperix.com\/doc\/wp-content\/uploads\/2021\/03\/electric-car-motor-control.png","type":"image\/png"}],"author":"Julien Orsinger","twitter_card":"summary_large_image","twitter_misc":{"Written by":"Julien Orsinger","Est. reading time":"8 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/imperix.com\/doc\/example\/electric-car-motor-control#article","isPartOf":{"@id":"https:\/\/imperix.com\/doc\/example\/electric-car-motor-control"},"author":{"name":"Julien Orsinger","@id":"https:\/\/imperix.com\/doc\/#\/schema\/person\/65ef663818eab76f53cc627ab80e0a51"},"headline":"Electric Car Motor Control","datePublished":"2021-03-30T14:36:31+00:00","dateModified":"2026-04-14T09:28:21+00:00","mainEntityOfPage":{"@id":"https:\/\/imperix.com\/doc\/example\/electric-car-motor-control"},"wordCount":1200,"commentCount":0,"publisher":{"@id":"https:\/\/imperix.com\/doc\/#organization"},"image":{"@id":"https:\/\/imperix.com\/doc\/example\/electric-car-motor-control#primaryimage"},"thumbnailUrl":"https:\/\/imperix.com\/doc\/wp-content\/uploads\/2021\/03\/electric-car-motor-control.png","keywords":["Motor drives"],"articleSection":["Application notes"],"inLanguage":"en-US","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/imperix.com\/doc\/example\/electric-car-motor-control#respond"]}]},{"@type":"WebPage","@id":"https:\/\/imperix.com\/doc\/example\/electric-car-motor-control","url":"https:\/\/imperix.com\/doc\/example\/electric-car-motor-control","name":"Electric Car Motor Control - imperix","isPartOf":{"@id":"https:\/\/imperix.com\/doc\/#website"},"primaryImageOfPage":{"@id":"https:\/\/imperix.com\/doc\/example\/electric-car-motor-control#primaryimage"},"image":{"@id":"https:\/\/imperix.com\/doc\/example\/electric-car-motor-control#primaryimage"},"thumbnailUrl":"https:\/\/imperix.com\/doc\/wp-content\/uploads\/2021\/03\/electric-car-motor-control.png","datePublished":"2021-03-30T14:36:31+00:00","dateModified":"2026-04-14T09:28:21+00:00","description":"The note introduces an electric car motor control strategy. The system is tested on a back-to-back motor testbench with car emulation.","breadcrumb":{"@id":"https:\/\/imperix.com\/doc\/example\/electric-car-motor-control#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/imperix.com\/doc\/example\/electric-car-motor-control"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/imperix.com\/doc\/example\/electric-car-motor-control#primaryimage","url":"https:\/\/imperix.com\/doc\/wp-content\/uploads\/2021\/03\/electric-car-motor-control.png","contentUrl":"https:\/\/imperix.com\/doc\/wp-content\/uploads\/2021\/03\/electric-car-motor-control.png","width":500,"height":334},{"@type":"BreadcrumbList","@id":"https:\/\/imperix.com\/doc\/example\/electric-car-motor-control#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Knowledge base","item":"https:\/\/imperix.com\/doc\/"},{"@type":"ListItem","position":2,"name":"Application notes","item":"https:\/\/imperix.com\/doc\/category\/example"},{"@type":"ListItem","position":3,"name":"Electric Car Motor Control"}]},{"@type":"WebSite","@id":"https:\/\/imperix.com\/doc\/#website","url":"https:\/\/imperix.com\/doc\/","name":"imperix","description":"power electronics","publisher":{"@id":"https:\/\/imperix.com\/doc\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/imperix.com\/doc\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Organization","@id":"https:\/\/imperix.com\/doc\/#organization","name":"imperix","url":"https:\/\/imperix.com\/doc\/","logo":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/imperix.com\/doc\/#\/schema\/logo\/image\/","url":"https:\/\/imperix.com\/doc\/wp-content\/uploads\/2021\/03\/imperix_logo.png","contentUrl":"https:\/\/imperix.com\/doc\/wp-content\/uploads\/2021\/03\/imperix_logo.png","width":350,"height":120,"caption":"imperix"},"image":{"@id":"https:\/\/imperix.com\/doc\/#\/schema\/logo\/image\/"}},{"@type":"Person","@id":"https:\/\/imperix.com\/doc\/#\/schema\/person\/65ef663818eab76f53cc627ab80e0a51","name":"Julien Orsinger","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/secure.gravatar.com\/avatar\/0a0328b09c6abe61fa1e263a1066dcb26ea8f3b9e8b1d78056047620947bb388?s=96&d=mm&r=g6545a7220411572e799ad58574cce259","url":"https:\/\/secure.gravatar.com\/avatar\/0a0328b09c6abe61fa1e263a1066dcb26ea8f3b9e8b1d78056047620947bb388?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/0a0328b09c6abe61fa1e263a1066dcb26ea8f3b9e8b1d78056047620947bb388?s=96&d=mm&r=g","caption":"Julien Orsinger"},"description":"Julien is a senior power electronics engineer. On the knowledge base, he is acting as the editorial manager and is therefore the co-author of numerous articles on a broad variety of topics.","sameAs":["https:\/\/www.linkedin.com\/in\/julien-orsinger-640ab2129\/"],"url":"https:\/\/imperix.com\/doc\/author\/orsinger"}]}},"_links":{"self":[{"href":"https:\/\/imperix.com\/doc\/wp-json\/wp\/v2\/posts\/1291","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/imperix.com\/doc\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/imperix.com\/doc\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/imperix.com\/doc\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/imperix.com\/doc\/wp-json\/wp\/v2\/comments?post=1291"}],"version-history":[{"count":21,"href":"https:\/\/imperix.com\/doc\/wp-json\/wp\/v2\/posts\/1291\/revisions"}],"predecessor-version":[{"id":39134,"href":"https:\/\/imperix.com\/doc\/wp-json\/wp\/v2\/posts\/1291\/revisions\/39134"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/imperix.com\/doc\/wp-json\/wp\/v2\/media\/45224"}],"wp:attachment":[{"href":"https:\/\/imperix.com\/doc\/wp-json\/wp\/v2\/media?parent=1291"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/imperix.com\/doc\/wp-json\/wp\/v2\/categories?post=1291"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/imperix.com\/doc\/wp-json\/wp\/v2\/tags?post=1291"},{"taxonomy":"software-environments","embeddable":true,"href":"https:\/\/imperix.com\/doc\/wp-json\/wp\/v2\/software-environments?post=1291"},{"taxonomy":"provided-results","embeddable":true,"href":"https:\/\/imperix.com\/doc\/wp-json\/wp\/v2\/provided-results?post=1291"},{"taxonomy":"related-products","embeddable":true,"href":"https:\/\/imperix.com\/doc\/wp-json\/wp\/v2\/related-products?post=1291"},{"taxonomy":"guidedreadings","embeddable":true,"href":"https:\/\/imperix.com\/doc\/wp-json\/wp\/v2\/guidedreadings?post=1291"},{"taxonomy":"tutorials","embeddable":true,"href":"https:\/\/imperix.com\/doc\/wp-json\/wp\/v2\/tutorials?post=1291"},{"taxonomy":"user-manuals","embeddable":true,"href":"https:\/\/imperix.com\/doc\/wp-json\/wp\/v2\/user-manuals?post=1291"},{"taxonomy":"author","embeddable":true,"href":"https:\/\/imperix.com\/doc\/wp-json\/wp\/v2\/coauthors?post=1291"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}