Next Article in Journal
Optimum Design of a Photovoltaic Inverter System Based on Ga, Pso and Gwo Algorithms with a Mppt Sliding Mode Control
Previous Article in Journal
An Analysis of the Characteristics of Internal Flow Losses of Seawater Circulation Pumps in Nuclear Power Plants Based on the Entropy Production Theory
Previous Article in Special Issue
A Novel IGBT-Based Silicone Carbide Rectifier Design for Improved Energy Efficiency in Telco Data Centers
 
 
Font Type:
Arial Georgia Verdana
Font Size:
Aa Aa Aa
Line Spacing:
Column Width:
Background:
Article

Smart Low-Cost On-Board Charger for Electric Vehicles Using Arduino-Based Control †

by
Jose Antonio Ramos-Hernanz
1,
Daniel Teso-Fz-Betoño
1,
Iñigo Aramendia
1,
Markel Erauzquin
1,
Erol Kurt
2 and
Jose Manuel Lopez-Guede
3,*
1
Electrical Engineering Department, University of the Basque Country (UPV/EHU). Nieves Cano 12, 01006 Vitoria-Gasteiz, Spain
2
Department of Electrical and Electronics Engineering, Technology Faculty, Gazi University, 06560 Ankara, Turkey
3
Automatic Control and System Engineering Department, University of the Basque Country (UPV/EHU), Nieves Cano 12, 01006 Vitoria-Gasteiz, Spain
*
Author to whom correspondence should be addressed.
This paper is an extended version of our conference paper ‘Gestión inteligente de recarga del vehículo eléctrico con materiales económicos’.
Energies 2025, 18(8), 1910; https://doi.org/10.3390/en18081910
Submission received: 26 January 2025 / Revised: 3 April 2025 / Accepted: 7 April 2025 / Published: 9 April 2025
(This article belongs to the Special Issue Design and Implementation of Renewable Energy Systems—2nd Edition)

Abstract

:
The increasing adoption of electric vehicles (EVs) needs efficient and cost-effective charging solutions. This study presents a smart on-board charging system using low-cost materials while ensuring safe and optimized battery management. The proposed system is controlled by an Arduino MEGA 2560 microcontroller, integrating Pulse-Width Modulation (PWM) for precise voltage regulation and real-time monitoring of charging parameters, including voltage, current, and state of charge (SoC). The charging process is structured into three states (connection, standby, and charging) and follows a multi-stage strategy to prevent overcharging and prolong battery lifespan. A relay system and safety mechanisms detect disconnections and voltage mismatches, automatically halting charging when unsafe conditions arise. Experimental validation with a 12 V lead-acid battery verifies that the system follows standard charging profiles, ensuring optimal energy management and charging efficiency. The proposed charger demonstrates significant cost savings (~94.82 €) compared to commercial alternatives (1200 €–2000 €), making it a viable low-power solution for EV charging research and a valuable learning tool in academic environments. Future improvements include a printed circuit board (PCB) redesign to enhance system reliability and expand compatibility with higher voltage batteries. This work proves that affordable smart charging solutions can be effectively implemented using embedded control and modulation techniques.

1. Introduction

The use of electric vehicles (EVs) in the last decade marks a significant milestone in the evolution of the automotive industry and represents a fundamental advance towards more sustainable transportation solutions [1]. Over the last years, EVs have captured the attention of both the vehicle manufacturers and consumers, with a notable increase in the deployment of EVs in all markets. According to the report of the International Energy Agency (IEA), nearly one in five cars sold in 2023 was electric. The sales of electric vehicles neared 14 million in 2023, 95% of which were in China, Europe, and the United States [2]. This surge in popularity is driven by a confluence of technological advancements, environmental concerns, and supportive government policies.
Regarding the technological innovations, research on battery systems have played a crucial role in propelling the growth of electric vehicles. Liu et al. [3] made a thorough review of the batteries and battery management technologies for hybrid and pure EVs. A quick, simple, and safe battery recharge ensures a positive user experience, facilitating a swift transition to sustainable mobility. In this context, advances in lithium-ion batteries have led to substantial improvements in energy density, charging times, and overall vehicle range, making EVs more practical and appealing to a broader audience. Jaime-Barquero et al. [4] analyzed the existing methodologies to detect degradation modes in lithium batteries. Estimation models of the state of charge (SoC) and state of health (SoH) of lithium-ion batteries, as the one presented by Huang et al. [5] becomes also very important for safe and reliable EVs.
Environmental considerations are also a major driving force behind the rise of electric vehicles. With the increasing urgency to combat climate change and reduce greenhouse gas emissions, EVs offer a cleaner alternative to traditional internal combustion engine vehicles. By running on electricity, which can be sourced from renewable energy, electric vehicles significantly cut down on air pollution and help mitigate the impact of fossil fuels on the environment [6]. This becomes crucial for urban areas plagued by pollution and for global efforts to meet climate targets set by international agreements. In this regard, the study of Guo et al. [7] showed a positive correlation between the air pollution and the sales of EVs. Government policies and incentives have further accelerated the adoption of electric vehicles. Many countries and regions are implementing measures such as tax rebates, subsidies, and stringent emission regulations to encourage both consumers and manufacturers to embrace electric mobility [8,9,10].
However, in order to achieve sustainable growth in the deployment of EVs, it is essential for all nations to increase the development of the charging infrastructure. This issue addresses one of the primary concerns for potential EV consumers to enable them to recharge their vehicles efficiently. For that reason, establishing a widespread network of EV charging points is indispensable to support the continued growth and integration of EVs [11]. In addition, it should be noted that public access to these facilities is particularly important, as many users do not have access to private garage spaces. To that end, optimizing the location and capacity of electric vehicle charging stations (EVCSs) and renewable energy sources (RESs) within direct current (DC) microgrids is essential, addressing multiple objectives such as operational reliability, cost-effectiveness, power loss minimization, and voltage stability [12]. A modified version of the teaching–learning-based optimization (TLBO) algorithm is employed to identify optimal system configurations, leading to enhanced voltage regulation and minimized power losses [13]. Additionally, various studies highlight the dual challenge of environmental degradation and fuel shortages, reaching the conclusion that implementing IoT-enabled smart charging systems presents a promising approach to improving battery management efficiency. Wireless integration of IoT functionalities into battery systems also facilitates real-time performance monitoring, improving both operational reliability and safety [14]. Qahtan et al. [15] reviewed the intelligent EV charging networks supported by IoT, analyzing various charging methods and highlighting the role of IoT technologies, particularly mobile applications, in simplifying station location and potentially accelerating the adoption of EVs. Çakir et al. [16] studied the effect of electric vehicle charging stations on power grids, developing a new model to assess the impact of the increasing number of EVs on the power grid in the province of Sivas in Turkey. Moreover, several works offer comprehensive evaluations of EVs, covering aspects such as charging infrastructures and battery technologies, and comparing commercial models with prototypes. The study of Rajole et al. [17] categorizes different types of charging stations and examines their effects on power grid operations, proposing a scalable and economically viable approach for future deployment to accommodate the rising demand for EVs. An alternative approach involves designing an EVCS powered by RESs such as wind turbines and solar photovoltaic systems, in response to the growing need for sustainable transportation. This solution seeks to minimize grid dependency by harnessing the excess energy from these sources and applying an energy management strategy [18]. Another fundamental aspect that must be taken into account for suitable recharging is a proper vehicle and charging point programming. This approach emphasizes Type 2 and Type 3 charging systems, which support both single-phase and three-phase charging stations. In an EV charging station, unlike combustion gas stations, a communication between vehicle and the charging station is required to ensure a safe and reliable charging process [19]. However, there are still charging points that remain unusable due to persistent communication failures.
In that sense, embedded systems emerged as a potential solution to address these communication issues. Edge computing describes a model in which data are processed closer to the source, reducing dependence on centralized cloud servers [20]. Embedded systems are typically developed to execute specific tasks, often within the constraints of real-time operational environments [21]. The software that powers these systems is known for its high efficiency and minimal resource requirements. A widely recognized example is Arduino, an open-source platform that provides user-friendly hardware and software components, making it particularly suitable for educational and prototyping applications [22]. Due to its accessible development kits and strong community support, Arduino has become a popular choice in embedded system design [23]. Its integrated development environment (IDE) has greatly simplified the code compilation process, contributing to its widespread adoption.
Several initiatives aim to design electrical energy monitoring devices for battery-powered EVs, focusing on the precise measurement of key parameters such as power, voltage, current, and battery temperature. In this context, the review of Malele et al. [24] provides a comprehensive analysis of microcontroller-based BMS advancements, highlighting control strategies, efficiency techniques, and challenges in hybrid energy systems. The study of Garg et al. [25] showed an Arduino-driven monitoring system equipped with sensors to assess EV battery parameters. The system featured real-time data visualization on an LCD screen, contributing to improved operational safety and efficiency in EV applications. Selvabharathi et al. [26] used an Arduino Uno microcontroller to develop an IoT-enabled battery management system (BMS) for real-time monitoring of EVs batteries and to process and transmit battery health data. According to Insia et al. [27], the integration of Arduino, sensors, and wireless communication makes the BMS cost-effective and scalable for various EV applications. The work of Calvinus et al. [28] also proposed a BMS using an Arduino microcontroller to improve the charging of EV batteries. Their results showed that the current measurement was more accurate than the voltage measurement, while the temperature measurement achieved 97% accuracy. The study of Rusli et al. [29] demonstrated how an ESP32 microcontroller can efficiently manage and transmit real-time energy data for EVs. The system significantly enhanced energy monitoring, optimization, and decision-making, proving valuable for energy-efficient vehicle competitions and broader EV applications. The ATmega328P microcontroller was used as the core-processing unit by Sasirekha et al. [30], handling sensor data acquisition, power management, and IoT communication. Their proposed system ensured a better battery performance, extended lifespan, and reduced environmental impact by optimizing EV battery health monitoring. The recent work of Gozuoglu [31] also presents a low-cost IoT-enabled BMS, using a ESP32 microcontroller, for monitoring the state of charge and state of health of lithium-ion and lithium-polymer batteries.
This paper delves into the analysis of the installation and control of an internal charger, initially described by Ramos-Hernanz et al. [32] and Aramendia et al. [33]. Beyond verifying its functionality, the system’s code has been refined with minor enhancements to ensure stable operational margins. This work aims to develop a control strategy for the on-board charger within the EV. This study introduces an intelligent EV charging management approach implemented through a cost-effective solution. The key contributions and novelties of this work include the implementation of a cost-effective charging control system using an Arduino MEGA 2560 microcontroller (Elegoo, Inc., Shenzhen, China), reducing hardware expenses while maintaining performance. Moreover, it includes the integration of a multi-stage charging strategy, regulating current flow to prevent overcharging and to improve battery longevity, as well as a real-time monitoring and safety mechanisms, ensuring controlled charging by detecting voltage differences and stopping the process if unsafe conditions arise. To support this, the implementation will include charge modulation alongside accurate and controlled charging mechanisms. However, certain limitations arise from the initial design choices, including a maximum charging current of 3 A. Moreover, the use of a 12 V battery restricts its role solely to the charging process, as dictated by the specifications of the selected power regulator. This paper is organized as follows: Section 2 outlines the components used in the project, whereas Section 3 provides a detailed explanation of the battery charging process. The performance of the recharge curve and the limitations and improvement proposals are discussed in Section 4 and Section 5, respectively. Lastly, Section 6 summarizes the key conclusions drawn from this study.

2. Materials and Methods

Developing the internal charger for the vehicle requires the implementation of custom programming. To facilitate this, a hardware platform that offers both ease of use and sufficient processing capability is essential. The Arduino MEGA 2560 board, shown in Figure 1, was selected for this role due to its versatility. It handles all control operations, including executing commands, monitoring voltage levels from both the battery and charger, and adjusting the charging process accordingly.
The charging point receives the alternating current delivered through the Mennekes connector. As the charging process operates under modes 2 and 3, an AC/DC power converter is used to convert the delivered alternating current to the direct current. At this point, through the LM2596 power regulator (Elegoo, Inc., Shenzhen, China) illustrated in Figure 2a, the direct current obtained from the conversion stage is subsequently regulated using pulse-width modulation (PWM) to deliver a precise voltage level to each charging phase. The LM2596 power regulator facilitates this process by offering an adjustable output between 1.25 and 30 V DC, compatible with input voltages ranging from 4.5 to 35 V DC, and capable of handling currents up to 3 A. Therefore, a 3A fuse has been installed as an overcurrent protection system. In addition, a MAX471 current sensor (Elegoo, Inc., Shenzhen, China) has been used, as shown in Figure 2b. This sensor offers high-precision voltage and current measurement capabilities, enabling real-time monitoring across various circuit types. It is particularly well-suited for accurate control of the battery charging, with a measurement range spanning from 3 to 36 V and −3 to 3 A, making it responsible for assessing the charging current delivered to the battery. At the same time, the voltage divider measures the voltage in the battery and the charge. An amperimeter has also been used to monitor the current in the battery. A PWM output signal regulates the current going to the battery, while the relay shuts down the charging process when required.
A DC/Arduino power regulator has also been incorporated to supply power to the Arduino board directly from the battery, enabling autonomous operation of the system. The experimental setup also includes a 12 V lead-acid battery, which is the battery that simulates the proposed internal EV charger learning module. It is important to note that this low-voltage battery has been chosen for security reasons, since it is intended for educational use with students. In addition, the setup includes a voltage divider, the LM2596 regulator used to supply power to the Arduino, and a protoboard designated for mounting the required resistors and transistors. Finally, the LCD display shows all the data available from the charging station. All the components used are listed in Table 1.
The scheme presented in Figure 3 shows all the components utilized in the experimental setup and all the connections.

3. Charging Process

This section details the control process carried out with the Arduino Mega 2560 controller board. The charging method chosen regulates the charging voltage dynamically based on the battery’s state. The implemented code defines variables for PWM control, relay states, menu options, and voltage readings, utilizing an LCD display to show charging status and system messages. It reads voltage and current from the battery and PWM circuit via analog pins and implements a connection sequence to detect and validate the vehicle’s presence. PWM modulation is used to regulate the charging voltage based on the battery state, while MENU logic manages multiple charge states, including charging, standby, and disconnection. The system reads the proximity pilot (PP) signal to determine connection status and uses PWM and duty cycle calculations to set charge current limits. Safety checks prevent overcharging and voltage mismatches, with a relay system enabling or disabling charging based on conditions. If the voltage difference between PWM and the battery exceeds a threshold, charging is stopped, and the parameters are dynamically adjusted based on battery voltage. Once charging is complete, the system disconnects the vehicle, and a reconnect function allows charging to resume if the vehicle is reconnected.
After defining all variables within the code, the system was structured to operate in three distinct states: connection, standby, and charging, each of which is explained in detail in the subsequent subsections.

3.1. Connection

The connection phase begins with the EV in standby mode, awaiting linkage to the charging station. In the current work, a Mennekes connector, also known as the Type 2 connector, has been used since it became the European standard for charging EVs. This connector has a seven-pin configuration, as illustrated in Figure 4, allowing for both single-phase and three-phase AC charging. The proximity pilot (PP), which communicates the presence of the cable and its current-carrying capacity, is used to carry out the connection.
The PP terminal is utilized to determine if the EV is disconnected from the charging station. A signal below 4.25 V indicates that the EV is connected. When this occurs, the vehicle transmits a high-level pulse to the charging station, which influences the CP signal. The CP manages the charging process by communicating between the vehicle and the charging point. If this condition continues, the EV sends a command to the charging station to engage both contactors by transmitting a high-level pulse corresponding to states A (connection) and B (standby), while simultaneously lowering the CP signal.

3.2. Pulse-Width Modulation (PWM)

Once the charging point is activated to deliver power, the electrical current flows through an AC/DC power converter upon entering the vehicle, as the battery requires DC for charging. From this point, it passes to the LM2596 power regulator, where the process of adjusting the battery charging voltage begins, which is controlled by a PWM voltage. The PWM control board consists of a printed circuit board with two resistors and a capacitor, as shown in Figure 5. These components regulate the PWM signal that comes out of the controller, Arduino MEGA, and goes to the LM2596 power regulator. In this way, a clean, noise-free pulse is achieved, which in turn has voltage levels appropriate to the type of signal. The pulse value is regulated internally in the Arduino. In this case, according to the battery voltage, the PWM value is calculated. This value has a range of 0–255 which would be a range of 0 to 5 V.
A contactor is positioned between the LM2596 voltage regulator and the battery on the positive terminal, as the negative terminals share a common connection. Its activation depends on specific conditions being met. To protect both the battery and the LM2596 regulator from potential damage or overload, their voltages are monitored through a voltage divider. Based on the measured battery voltage, the PWM signal is adjusted in accordance with Equation (1). This expression is derived through an interpolation obtained from a series of 150 values for the PWM and its corresponding voltage. The points obtained yield a linear relation that allows for the derivation of Equation (1). When the voltage levels are equalized, the contactor closes, initiating the charging process.
PWM = 36.232 · U b a t 566.56
where Ubat represents the battery voltage.

3.3. Charging

Regarding the charging process, it should be emphasized that charging the battery at high current values, particularly when it is near full charge or deeply discharged, can significantly shorten its lifespan. For this reason, it is essential to implement a modulation process during recharging. Through this process, the battery is charged up to its maximum capacity to achieve the highest possible charging speed, while always considering the battery’s lifespan. In the experimental setup performed in the current work, once the contactors are closed, the voltage on both sides becomes equal, leading to zero current flow between the LM2596 power regulator and the 12 V battery. Consequently, since the battery may require different charging conditions depending on its voltage level, the process has been divided into six distinct stages.
Initially, a recharge test has been performed on a discharged lead-acid battery for assessing its performance and to ensure that it can deliver its rated capacity without significant degradation. This initial test allows evaluating charging system efficiency, confirming that the charger properly follows the bulk, absorption, and floating phases while applying the correct voltage and current. The current applied based on the battery’s voltage, representing the EVs charging profile, is illustrated in Figure 6. The charging process has three areas. The first one occurs when the battery voltage is low, requiring a low current to protect the cells. In this step, the battery quickly increases its voltage until it reaches its nominal value. Then, once the nominal voltage is reached, the battery’s ability to handle a higher current allows for an increase in current. Finally, the current will decrease until the battery is fully charged. It is important to note that due to the requirements of the batteries, the current curves are not constant in order to prolong their lifespan. Thus, the charger determines the stage based on the battery voltage and, consequently, the applicable current. The stage that best withstands high currents is the one closest to the nominal voltage of the battery, while voltages either above or below this nominal voltage require lower current values. When the battery reaches its maximum value, 14.8 V in this case, the charging process is terminated. The contactor is then opened and the user is informed that the EV can be safely disconnected. It is important to note that the current does not drop to zero due to the vehicle’s residual consumption to avoid draining the main battery.
A second recharge test has been carried out with a battery in an optimal state. In this case, the 12 V lead-acid battery charging profile follows a structured process with distinct stages, as shown in Figure 7. In the Voltage–Time curve, the bulk charge phase shows a rapid voltage increase from 12 to 14.4 V approximately, followed by the absorption charge phase where the voltage remains constant at around 14.4 V, while the current gradually decreases. Finally, in the float charge phase, the voltage stabilizes at around 14.4 V to maintain battery health, as illustrated in Figure 8. In the Current–Time curve, during bulk charge, the current remains high (~0.9 A) and constant, then progressively decreases in the absorption phase, and finally drops to a low maintenance level (~0.05 A) in float charge to compensate for self-discharge. It can be noted how, at low voltages, the current is at its peak, but as the voltages increases toward 14.4 V, the current declines. Once the battery reaches float charge, the current stabilizes at a minimum level, ensuring efficient energy management while preventing overcharging.
Figure 9 shows the SoC estimation curve obtained, calculated by integrating the charging current over time, as described in Equation (2).
SoC ( t ) = SoC ( t     1 ) + 0 t I c h a r g e C b a t t e r y · d t
where SoC(t) represents the battery state of charge at time t, SoC(t − 1) the battery initial state of charge, Icharge is the charge current, Cbattery indicates the battery capacity in Ah, and t is the time interval in hours.

3.4. Safety Measures

In order to guarantee a secure charging process, multiple safety mechanisms have been integrated into the code. One such measure ensures that if the vehicle is disconnected from the charging station, the charging operation is immediately halted. Moreover, if the voltage disparity between the DC/DC converter and the battery becomes too large, the charging process is halted to prevent the current from surpassing the 3 A threshold. In addition, a fuse is added at the input of the LM2596 converter to protect the system against current spikes.

3.5. Summary of the Charging Process

The diagram represented in Figure 10 shows the whole operation of the internal charger control. This structured approach ensures a controlled and safe charging process of a battery system, ensuring secure and efficient battery charging while monitoring key parameters such as voltage, state of charge, and charger connection status. The process begins with an initialization state, where the system sets up parameters and shows relevant charging information. Then, it collects a sample of measured parameters to evaluate battery conditions. A key decision point checks if the charger is connected. If not, the system enters into stand-by state, waiting for a connection. If the charger is connected, it proceeds to take voltage measurements, where the system verifies whether the battery voltage matches the expected values. If the voltage differs, the PWM adjustment is triggered to regulate the charging voltage. If the voltage is correct, the relay is closed, allowing power to flow into the battery. With the relay closed, the system continuously monitors whether the charger becomes disconnected. If the charger is removed at any stage, the process stops and the recharge is considered completed. If the connection state remains, the system checks whether the battery has reached its maximum charge voltage. If the battery is fully charged, the recharge is considered completed. Otherwise, the system calculates the recharge curve, further PWM adjustments are made, and continues charging until full capacity is reached. Summarizing, the charging process involves the next steps:
  • Monitoring battery voltage and charge state continuously.
  • Adjusting PWM dynamically to optimize the charging process.
  • Implementing safety checks to prevent overcharging.
  • Handling disconnection scenarios, ensuring that charging stops when necessary.
  • Automatically completing the recharge cycle when the battery reaches full charge.

4. Final Test

Once the complete internal charger has been assembled according to the previously detailed experimental setup, a test is conducted in order to check its operation. The first two steps to be performed are a 15 s charger connection process. Following this, the voltage leveling is performed, initiating the charging process. A 4 min charge was achieved with a 2.5 A load. Figure 11 shows the recharge curve obtained.
After this period elapses, the Mennekes connector is disconnected and the charger halts the charging process due to a variation in the PP value. Then, the connector is reconnected, starting the charging process again. Consequently, the test outcome has been considered satisfactory.

5. Limitations and Improvement Proposal

Despite the vehicle’s internal charger performing well and functioning effectively with the charging station, numerous limitations have been noted in the execution of the installation. For instance, due to security limitations, only a 12 V has been used for testing. Additionally, the wiring used could be improved to ensure good connections. With the aim of overcoming the limitations identified in the current study, the proposal is to develop a printed circuit board (PCB) for making all connections and to use SMD repair techniques, see Figure 12. This ensures the reliability of the connections and the proper sequence of the installation.
Figure 13 illustrates the pins used for connecting the controller to the different components of the charger, as well as the voltage measurement of the charger and battery.
In Figure 14, the connectors required by the board to connect the auxiliary devices of the charger can be seen. Additionally, there is a signal conditioning circuit for the CP signals to obtain logical values within the operating range of the Arduino.
Figure 15 shows the voltage variation system for the battery power supply, along with the relay that allows charging when the appropriate conditions are met.
In Figure 16, the integrated charging current measurement sensor is shown, along with the signal conditioning circuit for the PP signals to obtain logical values within the operating range of the Arduino.
On the other hand, the Arduino modules used for testing are suitable, but for a successful project, all existing modules must be modified to operate with greater precision and wider margins. Table 2 lists the solutions that can be implemented to modify the modules. The LM317 is a voltage regulator that, at a lower price than the LM2596, allows for a wider voltage range (1.2 to 37 V) and a current output of 1.5 A. This provides greater adaptability to different batteries, along with a wider operating range. The HO 100-P-0100 is a current sensor that, despite being more expensive than the one currently used, offers greater accuracy and a wider measurement range that the MAX471 does not achieve. The TSR 0.5-24120 is an isolated DC/DC converter that allows for the power supply of all control systems with a single component in a very compact package.
The main contribution of this study is to demonstrate the possibility of controlling an on-board charger using low-cost materials. Table 3 details an estimated cost of all the components used to develop the proposed on-board charger.
For an academic environment, the internal charger proposed in this work offers two main advantages over a commercial one. Firstly, it provides greater safety for the students by operating with a 12 V battery instead of a 400 V one. This result in a significantly lower working power; however, it offers a training platform solution without the additional cost associated with a commercial charger. The total cost of the experimental on-board charger developed in the current work is significantly lower than the cost of commercial on-board charger replacements, which typically range around 1200 € and 2000 € in a standard vehicle. This much lower price than the commercial ones offers more opportunities to the academic institutions to integrate the study and operation of this type of chargers into their training practices. In addition, it offers greater adjustability to each vehicle and the ability to monitor the entire process in real-time.

6. Conclusions

The growing adoption of EVs and the development of supporting charging infrastructure are becoming increasingly critical. Specifically, low-power charging stations intended for installation along public streets and in large commercial parking areas have gained notable relevance. The main motivation of this study is to develop a cost-effective and efficient on-board charging system for electric vehicles (EVs) using low-cost materials while ensuring safe, controlled, and optimized charging. As the adoption of EVs increases, the need for affordable and scalable charging solutions becomes crucial, especially for users and academic environments where high-cost commercial chargers are impractical. The current study presents an on-board electric vehicle (EV) charger using low-cost materials, reducing hardware expenses without compromising performance. It implements a smart charging strategy with real-time monitoring and safety mechanisms, ensuring controlled charging. This study demonstrates that smart charging for EVs can be achieved using low-cost materials while maintaining efficiency and safety. Moreover, the developed on-board charger costs significantly less (~94.82 €) than commercial alternatives (ranging 1200 € to 2000 €). Therefore, the developed system provides an affordable alternative to commercial chargers and serves as a valuable educational tool. This research offers a scalable and cost-effective solution for on-board EV charging, proving that low-cost components can effectively manage and optimize battery-charging processes.
Numerous automotive manufacturers continue to experience considerable difficulties in incorporating these systems into their electric vehicles, often facing persistent charging-related challenges. A notable case is the collaboration between the Volkswagen Group and the Chinese company Geely to leverage its technological solutions. As such, undertaking a project of this kind is particularly valuable, as it enables in-depth exploration of areas such as programming, electronics, and electrical systems.
Although the internal charger was programmed, installed, and tested, several issues were found during the assembly and verification process that must be discussed.
  • Firstly, inaccuracies were found in the initial voltage measurement when the meter contained in the MAX471 module was used. This lack of precision was corrected by switching to a voltage divider. However, even though this correction improved the accuracy, the use of a DC/DC converter to power the Arduino caused these measurements to become erratic once more.
  • Secondly, the current measurement has been quite problematic due to the lack of repeated calibration in the MAX471 sensor. Consequently, future improvement proposals will explore alternative methods to enhance this current measurement.
  • Finally, there were issues with the PWM control during initial calibration. However, once it is calibrated properly, its control has been precise.
Even though all these issues have been resolved, addressing these challenges encountered during testing would be beneficial for enhancing the project.

Author Contributions

Conceptualization, J.A.R.-H., D.T.-F.-B. and I.A.; methodology, D.T.-F.-B., I.A. and M.E.; software, J.A.R.-H.; validation, J.A.R.-H., D.T.-F.-B. and I.A.; formal analysis, J.A.R.-H. and M.E.; investigation, D.T.-F.-B. and I.A.; resources, J.M.L.-G. and E.K.; data curation, M.E. and J.M.L.-G.; writing—original draft preparation, I.A. and M.E.; writing—review and editing, D.T.-F.-B. and M.E.; visualization, J.A.R.-H. and E.K.; supervision, J.A.R.-H., D.T.-F.-B. and I.A.; project administration, E.K. and J.M.L.-G.; funding acquisition, J.M.L.-G. All authors have read and agreed to the published version of the manuscript.

Funding

This research has been supported by the Vitoria-Gasteiz Mobility Lab Foundation, a governmental organization of the Provincial Council of Araba and the local council of Vitoria-Gasteiz under the following project grant: “Optimización dinámica de semáforos mediante técnicas de Inteligencia Computacional”.

Data Availability Statement

The original contributions presented in the study are included in the article, further inquiries can be directed to the corresponding author.

Acknowledgments

The authors would like to thank the support provided by the Vice-Rectorate of Undergraduate Studies and Educational Innovation of the UPV/EHU through the Educational Advisory Service (SAE-HELAZ), with the project ”Formula Student UPV/EHU Vitoria-Gasteiz” of the 4th call for educational innovation projects, HBP/PIE i3lab.

Conflicts of Interest

The authors declare no conflicts of interest. The funders had no role in the design of this study; in the collection, analyzes, or interpretation of the data; in the writing of this manuscript; or in the decision to publish the results.

Abbreviations

The following list contains the abbreviations that can be found in this manuscript.
EVElectric Vehicle
SoCState of Charge
SoHState of Health
EVCSElectric Vehicle Charging Station
RESRenewable Energy Sources
TLBOTeaching–Learning-Based Optimization
PWMPulse-Width Modulation
PPProximity Pilot
CPControl Pilot
PCBPrinted Circuit Board

References

  1. Kovačić, M.; Mutavdžija, M.; Buntak, K. New Paradigm of Sustainable Urban Mobility: Electric and Autonomous Vehicles—A Review and Bibliometric Analysis. Sustainability 2022, 14, 9525. [Google Scholar] [CrossRef]
  2. International Energy Agency. Global EV Outlook 2024. Moving Towards Increased Affordability. 2024. Available online: https://www.iea.org/reports/global-ev-outlook-2024 (accessed on 19 December 2024).
  3. Liu, W.; Placke, T.; Chau, K.T. Overview of Batteries and Battery Management for Electric Vehicles. Energy Rep. 2022, 8, 4058–4084. [Google Scholar] [CrossRef]
  4. Jaime-Barquero, E.; Bekaert, E.; Olarte, J.; Zulueta, E.; Lopez-Guede, J.M. Artificial Intelligence Opportunities to Diagnose Degradation Modes for Safety Operation in Lithium Batteries. Batteries 2023, 9, 388. [Google Scholar] [CrossRef]
  5. Huang, S.-C.; Tseng, K.-H.; Liang, J.-W.; Chang, C.-L.; Pecht, M. An Online SOC and SOH Estimation Model for Lithium-Ion Batteries. Energies 2017, 10, 512. [Google Scholar] [CrossRef]
  6. Ercan, T.; Onat, N.C.; Keya, N.; Tatari, O.; Eluru, N.; Kucukvar, M. Autonomous Electric Vehicles Can Reduce Carbon Emissions and Air Pollution in Cities. Transp. Res. Part D Transp. Environ. 2022, 112, 103472. [Google Scholar] [CrossRef]
  7. Guo, J.; Zhang, X.; Gu, F.; Zhang, H.; Fan, Y. Does Air Pollution Stimulate Electric Vehicle Sales? Empirical Evidence from Twenty Major Cities in China. J. Clean. Prod. 2020, 249, 119372. [Google Scholar] [CrossRef]
  8. Mersky, A.C.; Sprei, F.; Samaras, C.; Qian, Z. (Sean) Effectiveness of Incentives on Electric Vehicle Adoption in Norway. Transp. Res. Part D Transp. Environ. 2016, 46, 56–68. [Google Scholar] [CrossRef]
  9. Jenn, A.; Springel, K.; Gopal, A.R. Effectiveness of Electric Vehicle Incentives in the United States. Energy Policy 2018, 119, 349–356. [Google Scholar] [CrossRef]
  10. Liu, Z. Impact of Vehicle Purchase Tax Exemption on Electric Vehicle Sales: Evidence from China’s Automotive Industry. Energy Strategy Rev. 2023, 49, 101148. [Google Scholar] [CrossRef]
  11. Mastoi, M.S.; Zhuang, S.; Munir, H.M.; Haris, M.; Hassan, M.; Usman, M.; Bukhari, S.S.H.; Ro, J.-S. An In-Depth Analysis of Electric Vehicle Charging Station Infrastructure, Policy Implications, and Future Trends. Energy Rep. 2022, 8, 11504–11529. [Google Scholar] [CrossRef]
  12. Amjad, M.; Ahmad, A.; Rehmani, M.H.; Umer, T. A Review of EVs Charging: From the Perspective of Energy Optimization, Optimization Approaches, and Charging Techniques. Transp. Res. Part D Transp. Environ. 2018, 62, 386–417. [Google Scholar] [CrossRef]
  13. Krishnamurthy, N.K.; Sabhahit, J.N.; Jadoun, V.K.; Gaonkar, D.N.; Shrivastava, A.; Rao, V.S.; Kudva, G. Optimal Placement and Sizing of Electric Vehicle Charging Infrastructure in a Grid-Tied DC Microgrid Using Modified TLBO Method. Energies 2023, 16, 1781. [Google Scholar] [CrossRef]
  14. Prasad, P.; Kanagasabai, N.; Kumar, P.S. Design and Implementation of IOT Based Innovative Charging Method For E-Vehicles. Math. Stat. Eng. Appl. 2022, 71, 622–632. [Google Scholar]
  15. Qahtan, M.H.; Mohammed, E.A.; Ali, A.J. Charging Station of Electric Vehicle Based on IoT: A Review. Open Access Libr. J. 2022, 9, 1–22. [Google Scholar] [CrossRef]
  16. Çakir, M.T.; Çakir, M.F. Evaluating the Effect of Electric Vehicle Charging Stations on Power Grids in Sivas Province. Politek. Derg. 2023, 26, 1215–1231. [Google Scholar] [CrossRef]
  17. Rajole, R.; Khot, M.G.; Udas, M.G. IoT Based Electric Vehicle Charging System. 2023, Volume 10. Available online: https://www.ijert.org/research/iot-driven-electric-vehicle-charging-infrastructure-IJERTV13IS020048.pdf (accessed on 21 December 2024).
  18. Vinoth Kumar, K.; Radhakrishnan, P.; Kalaivani, R.; Devadoss, V.; Vijay Anand, L.D.; Vinodha, K. Implementation of Smart Electric Vehicle Charging Station Driven Using Experimental Investigation. In Proceedings of the 2021 2nd Global Conference for Advancement in Technology (GCAT), Bangalore, India, 1–3 October 2021; pp. 1–5. [Google Scholar]
  19. Kohler, S.; Birnbach, S.; Baker, R.; Martinovic, I. On the Security of the Wireless Electric Vehicle Charging Communication. In Proceedings of the 2022 IEEE International Conference on Communications, Control, and Computing Technologies for Smart Grids (SmartGridComm), Singapore, 25–28 October 2022; pp. 393–398. [Google Scholar]
  20. Chougule, S.B.; Chaudhari, B.S.; Ghorpade, S.N.; Zennaro, M. Exploring Computing Paradigms for Electric Vehicles: From Cloud to Edge Intelligence, Challenges and Future Directions. World Electr. Veh. J. 2024, 15, 39. [Google Scholar] [CrossRef]
  21. Quy, N.M.; Ngoc, L.A.; Ban, N.T.; Hau, N.V.; Quy, V.K. Edge Computing for Real-Time Internet of Things Applications: Future Internet Revolution. Wirel. Pers. Commun. 2023, 132, 1423–1452. [Google Scholar] [CrossRef]
  22. Savari, G.F.; Krishnasamy, V.; Sathik, J.; Ali, Z.M.; Abdel Aleem, S.H.E. Internet of Things Based Real-Time Electric Vehicle Load Forecasting and Charging Station Recommendation. ISA Trans. 2020, 97, 431–447. [Google Scholar] [CrossRef]
  23. Ashokkumar, R.; Suresh, M.; Sharmila, B.; Panchal, H.; Gokul, C.; Udhayanatchi, K.V.; Sadasivuni, K.K.; Israr, M. A Novel Method for Arduino Based Electric Vehicle Emulator. Int. J. Ambient Energy 2022, 43, 4299–4304. [Google Scholar] [CrossRef]
  24. Malele, R.H.; Mendu, B.; Monchusi, B.B. Microcontroller-Driven Battery Management in Hybrid Energy Systems: A Systematic Review of Applications, Control Strategies, and Emerging Trends. IEEE Access 2025, 13, 29341–29360. [Google Scholar] [CrossRef]
  25. Garg, P.; Bansal, D.; Khan, S.; Bhattacharya, S. Development of Energy Measurement System for Electrical Vehicle Battery Using Arduino. In Flexible Electronics for Electric Vehicles; Dwivedi, S., Singh, S., Tiwari, M., Shrivastava, A., Eds.; Lecture Notes in Electrical Engineering; Springer: Singapore, 2023; Volume 863, pp. 457–464. ISBN 978-981-19058-7-2. [Google Scholar]
  26. Selvabharathi, D.; Muruganantham, N. Experimental Analysis on Battery Based Health Monitoring System for Electric Vehicle. Mater. Today Proc. 2021, 45, 1552–1558. [Google Scholar] [CrossRef]
  27. Insia, K.; Ahmed, A.; Jahan, E.; Ahmad, S.; Barua, S.; Ali, I.; Hazari, R.; Mannan, M.A. Design and Analysis of IoT-Based Battery Management and Monitoring System for Electric Vehicle. Volume 22. Available online: https://ajse.aiub.edu/index.php/ajse/article/download/731/164/ (accessed on 22 December 2024).
  28. Calvinus, Y.; Wiryanata, F.; Tanujaya, H. Battery Charging Management System Design with Voltage, Current and Temperature Monitoring Features in Electric Vehicles. IOP Conf. Ser. Mater. Sci. Eng. 2020, 1007, 012174. [Google Scholar] [CrossRef]
  29. Rusli, M.R.; Prabowo, G.; Mahendra, L.S.; Qudsi, O.A.; Atma, F.; Budiono, M.; Purwanto, E.; Jaya, A.; Ferdiansyah, I.; Nugraha, S.D. IoT-Based Real-Time Energy Monitoring System for ELVIRO EV. In Proceedings of the 2024 International Electronics Symposium (IES), Denpasar, Indonesia, 6–8 August 2024; pp. 95–99. [Google Scholar]
  30. Sasirekha, P.; Sneka, E.; Velmurugan, B.; Sahul Hameed, M.; Sivasankar, P. A Battery Monitoring System Based on IoT for Electric Vehicles. In Proceedings of the 2023 5th International Conference on Smart Systems and Inventive Technology (ICSSIT), Tirunelveli, India, 23–25 January 2023; pp. 204–210. [Google Scholar]
  31. Gozuoglu, A. IoT-Enhanced Battery Management System for Real-Time SoC and SoH Monitoring Using STM32-Based Programmable Electronic Load. Internet Things 2025, 30, 101509. [Google Scholar] [CrossRef]
  32. Ramos-Hernanz, J.; Teso-Fz, D.; Erauzquin, M.; Orive, I.; Lopez-Guede, J.M. Smart Management of EV Charging Using Low-Cost Materials. In Proceedings of the 12th European Conference on Renewable Energy Systems, Mallorca, Spain, 16–17 May 2024. [Google Scholar]
  33. Aramendia, I.; Ramos-Hernanz, J.A.; Teso-Fz-Betoño, D.; Erauzquin, M.; Irazabal, A.; Lopez-Guede, J.M. Gestión inteligente de recarga del vehículo eléctrico con materiales económicos. Jorn. De Automática 2024, 45, 1–5. [Google Scholar] [CrossRef]
Figure 1. Arduino MEGA 2560 integrated board.
Figure 1. Arduino MEGA 2560 integrated board.
Energies 18 01910 g001
Figure 2. (a) The LM2596 power regulator and (b) MAX471 current sensor.
Figure 2. (a) The LM2596 power regulator and (b) MAX471 current sensor.
Energies 18 01910 g002
Figure 3. Connection diagram between the different components used in the experimental setup.
Figure 3. Connection diagram between the different components used in the experimental setup.
Energies 18 01910 g003
Figure 4. Schematic representation of the Mennekes charging connector.
Figure 4. Schematic representation of the Mennekes charging connector.
Energies 18 01910 g004
Figure 5. PWM modulation hardware schematic.
Figure 5. PWM modulation hardware schematic.
Energies 18 01910 g005
Figure 6. Electric Vehicle Charging Curve.
Figure 6. Electric Vehicle Charging Curve.
Energies 18 01910 g006
Figure 7. Recharge test performed with a battery in an optimal state.
Figure 7. Recharge test performed with a battery in an optimal state.
Energies 18 01910 g007
Figure 8. Float charge phase.
Figure 8. Float charge phase.
Energies 18 01910 g008
Figure 9. State of charge (SoC) estimation.
Figure 9. State of charge (SoC) estimation.
Energies 18 01910 g009
Figure 10. Flowchart of the charging process.
Figure 10. Flowchart of the charging process.
Energies 18 01910 g010
Figure 11. Battery recharging curve.
Figure 11. Battery recharging curve.
Energies 18 01910 g011
Figure 12. (a) Front and (b) back of the PCB.
Figure 12. (a) Front and (b) back of the PCB.
Energies 18 01910 g012
Figure 13. Connections with Arduino, PWM, and Voltage Divider.
Figure 13. Connections with Arduino, PWM, and Voltage Divider.
Energies 18 01910 g013
Figure 14. Control of CP, power supply, and connectors.
Figure 14. Control of CP, power supply, and connectors.
Energies 18 01910 g014
Figure 15. Correction voltage and relay.
Figure 15. Correction voltage and relay.
Energies 18 01910 g015
Figure 16. PP management and current reading.
Figure 16. PP management and current reading.
Energies 18 01910 g016
Table 1. Components used to create the experimental setup.
Table 1. Components used to create the experimental setup.
ComponentFunction
Arduino MEGA 2560Microcontroller board responsible for all of the process control.
LM2596 power regulatorAdjusts the AC/DC output voltage based on the battery’s voltage level.
MAX471 current sensorMeasures the charging intensity reaching the battery.
AC/DC power converterConverts the incoming current from the charging source from AC to DC.
Battery12 V lead-acid vehicle battery.
DC/Arduino power regulatorRegulates the voltage to 5 V for the Arduino power board.
FuseOvercurrent protection mechanism rated at 3A.
CP and PP Status BoardMonitors and modifies the operational states of the charging station.
PWM Control BoardRegulates the voltage supplied during the charging process.
Voltage Divider BoardMonitors the voltage levels of both the battery and the LM2596 voltage regulator.
LCD DisplayDisplays the voltages of the battery and the PWM values.
Table 2. Components of the new solution.
Table 2. Components of the new solution.
ComponentNew Component
LM2596LM317
MAX471HO 100-P-0100
DC/Arduino power converterTSR 0.5-24120
Table 3. Estimated cost of the experimental on-board charger.
Table 3. Estimated cost of the experimental on-board charger.
ComponentEstimated Cost (€)
Arduino MEGA 2560 Rev350.78
LM2596 power regulator2.39
MAX471 current sensor7.12
AC/DC power converter17.34
DC/Arduino power regulator4
Fuse0.2
CP and PP Status Board3
PWM Control Board1.5
Voltage Divider Board1.5
LCD 1602 Module6.99
TOTAL94.82
Disclaimer/Publisher’s Note: The statements, opinions and data contained in all publications are solely those of the individual author(s) and contributor(s) and not of MDPI and/or the editor(s). MDPI and/or the editor(s) disclaim responsibility for any injury to people or property resulting from any ideas, methods, instructions or products referred to in the content.

Share and Cite

MDPI and ACS Style

Ramos-Hernanz, J.A.; Teso-Fz-Betoño, D.; Aramendia, I.; Erauzquin, M.; Kurt, E.; Lopez-Guede, J.M. Smart Low-Cost On-Board Charger for Electric Vehicles Using Arduino-Based Control. Energies 2025, 18, 1910. https://doi.org/10.3390/en18081910

AMA Style

Ramos-Hernanz JA, Teso-Fz-Betoño D, Aramendia I, Erauzquin M, Kurt E, Lopez-Guede JM. Smart Low-Cost On-Board Charger for Electric Vehicles Using Arduino-Based Control. Energies. 2025; 18(8):1910. https://doi.org/10.3390/en18081910

Chicago/Turabian Style

Ramos-Hernanz, Jose Antonio, Daniel Teso-Fz-Betoño, Iñigo Aramendia, Markel Erauzquin, Erol Kurt, and Jose Manuel Lopez-Guede. 2025. "Smart Low-Cost On-Board Charger for Electric Vehicles Using Arduino-Based Control" Energies 18, no. 8: 1910. https://doi.org/10.3390/en18081910

APA Style

Ramos-Hernanz, J. A., Teso-Fz-Betoño, D., Aramendia, I., Erauzquin, M., Kurt, E., & Lopez-Guede, J. M. (2025). Smart Low-Cost On-Board Charger for Electric Vehicles Using Arduino-Based Control. Energies, 18(8), 1910. https://doi.org/10.3390/en18081910

Note that from the first issue of 2016, this journal uses article numbers instead of page numbers. See further details here.

Article Metrics

Back to TopTop