Artificial Intelligent Based Electric Vehicle Monitoring System Using IoT
Artificial Intelligent Based Electric Vehicle Monitoring System Using IoT
INTRODUCTION
1
2.1 Benefits of IoT in Monitoring & Management
Let’s take a look at some key features of IoT in electric vehicle
monitoring & management system, and the different ways in which they
increase the overall performance of electric vehicles
2
It helps in monitoring the driver’s performance and the key
parameters like the speed of the vehicle, acceleration, and
temperature, and provides real-time tips to ensure better
performance.
We can prevent the theft of vehicles through real-time tracking, geo-
fencing, and immobilization. Thus, IoT provides better safety and
security and reduces the dependency on insurance.
IoT will monitor the performance data of the vehicle based on which
EV and battery manufacturing companies can improve their
products. The data provided by IoT includes a range for each charge,
battery life cycle, utilization of a vehicle, performance differences
based on geography, weather conditions, age, and change in range
for each charge over a certain period of time.
3
acceleration and angle of the vehicle can be detected easily by IoT, and it
notifies the owner about a fall down or crash. This can also be very useful
to inform about severe accidents.
4
Figure 2.2 Disadvantages of IoT in Electric Vehicle Monitoring
2.2.3Technical complexity
5
In the IoT System, the designing, developing, maintaining, and
enabling the extensive technology is quite complicated thus the overall
design of EVs becomes more complex and not easy to handle.
CHAPTER-II
6
LITERATURE REVIEW
7
decreasing air pollution is implemented. The main cause of increasing air
pollution is using various kinds of vehicles that run on combustion engines
for transportation utilities. The implementation of Electric Vehicle (EVs)
can resolve this air pollution problem and keeps the environment as
pollution-free air and the world can survive in pure air. EVs are like
machines that run on a charging battery. An EV’s condition is depending
on the battery’s performance. The parameters for the battery’s condition
the voltage, current, and temperature. By using these parameters State of
Charge (SOC) is determined. These performances are monitored as Battery
Management System (BMS). In this paper, the EV monitoring system is
implemented using the combination of Artificial Intelligence (AI) and
Internet of Things (IoT) interfacing by the sensors in the vehicle’s battery,
and to the cloud. The performance of the battery is monitored using the
mobile application of the cloud.
8
technology develops an edge computing platform to meet the simultaneous
operation of multiple data applications, processes the massive intelligent
power consumption data of electric vehicles nearby, avoids the
communication channel blockage caused by massive data transmission,
and meets the special requirements of power Internet of things for rapid
response and accurate execution. Experiments show that the proposed
technology can not only provide safe and fast control mode, but also make
the system have stronger power consumption information big data
acquisition ability, and has advantages in low bandwidth and low delay
applications.
9
2.5 Intelligent monitoring system to help ensure efficient EV
performance- August 2022
Delhi-based Vecmocon Technologies has developed a vehicle
intelligence system with critical battery data collection and monitoring,
such as cell voltages, temperature, and the current health of the
battery. The company, incubated at FITT-IIT Delhi, with seed support
from the Department of Science and Technology, said that it also provides
solutions for intelligent vehicles, including keyless entry, preventive and
predictive maintenance, user-adaptive algorithms, remote diagnostics, fleet
management, and so on. The system can help in estimating the accurate
state of health and state of charge of the battery pack, help fleet operators
in their control and facilitate seamless communication.
10
of the secure vault change after every successful communication session.
We have implemented this mechanism on an Arduino device to prove our
algorithm is feasible on IoT devices with memory and computational
power constraints.
11
Topical Summit on Agriculture - Tuscany (IOT Tuscany) Tuscany,
Italy May2021
2.9 Md. Jakaria Islam Mozumder and Surojit Ghosh “IoT Based
Automatic Electricity Monitoring and Remote Load Control System
Using PIC18F4550” 2018 9th International Conference on Computing,
Communication and Networking Technologies (ICCCNT)- 10-12 July
2018, Bangalore, India
12
implementation of IoT in the case of meter reading for electricity can give
customer relief in using electrical energy. In this work a digital energy
meter is connected with cloud server via IoT device. It sends the amount of
consumed energy of connected customer to webserver. There is a feature
for disconnection in the case of unauthorized and unpaid consumption and
also have option for renew the connection by paying bill online. We tried
to build up a consumer and business friendly system.
CHAPTER-III
13
Application of Artificial Intelligence in EV Charging System
14
uncoordinated EV charging will burden the existing power grid. On the
other hand, EVs’ batteries are mobile energy storage systems that can be
used to provide ancillary services for power grids, such as peak-shaving
and valley-filling, voltage and frequency regulations. In addition, EVs’
batteries can be used as flexible load and supply to maximize renewable
energy utilization, if EVs charging and discharging are properly
coordinated to closely match renewable generation profiles
15
Figure 3.1. Schema of V2G development phases and corresponding EV
charging techniques, (a). smart charging, (b). controlled charging, (c).
smart charging, (d). indirectly controlled charging. The solid black arrow
indicates the power flow, the dash red arrow indicates the charging control,
and the blue dash arrow indicates the information flow.
16
The controlled charging-discharging method, also known as
unidirectional V2G, gives system operators more freedom to decide when
EVs will be charged and discharged. However, EV owners have to cede
control to the system operators or aggregators immediately after the EV is
plugged in under the controlled charging-discharging strategy.
The smart charging technique manages EVs’ charging and discharging
based on real-time energy demand, grid requirements, and grid quality .
However, it is not easy to encourage EV owners with different preferences
to participate in smart charging programs without incentives. Smart
charging allows EV owners to charge or discharge their EVs at a certain
time and rate to achieve predefined goals such as minimizing charging
costs or balancing demand and supply. However, smart charging strategies
are usually designed by system operators to maximize their profit. In
addition, EV owners do not clearly understand how smart charging can
benefit them monetarily.
On the other hand, an indirectly controlled charging mechanism uses
more straightforward price signals to incentivize EV owners to provide
17
ancillary services to power grids. Wang and Wang suggested using macro-
incentive policies such as variable electricity tariffs to attract more EV
owners to participate in the V2G system. Dynamic pricing schemes , such
as Time of Use (ToU) and Real-Time Pricing (RTP), have been commonly
used as a special form of power load demand response, which encourages
EV owners to choose charging or discharging time according to financial
incentives. Two empirical studies in Germany to get the public’s opinions
about the dynamic electricity pricing determined by the Time of Use (ToU)
tariff and household load profile. The results indicate that consumers are
open to dynamic pricing but like more straightforward programs with a
smaller price fluctuation range Latinopoulos et al. investigated EV drivers’
responses to the dynamic pricing of parking and charging services. The
results suggest that younger individuals are more likely to exhibit forward-
looking behaviors. Therefore, indirectly controlled charging with dynamic
electricity pricing strategies will influence EV owners’ charging and
discharging behaviors.
18
cycle number, charging rate, and DOD. Therefore, additional cycle
numbers due to the V2G service will accelerate battery degradation. It is
important to quantify the degradation due to V2G service. Thus, adequate
battery monitoring systems are needed to monitor the batteries’ SOC and
state of health (SOH) during the charging and discharging process. Meng et
al. performed a Lithium-Ion battery monitoring and observability analysis
with an extended equivalent circuit model. As a result, the necessary
observability conditions for battery capacity are clearly indicated, which
can be used to aid battery charging control design. Meng et al. [86]
proposed a Kalman filter and Gaussian process regression-based battery
end-of-life (EOL) prediction model. The simulation results show that the
proposed model provides a better battery EOL prediction than the particle
filter, a popular method for battery EOL prediction. The effectiveness of
Gaussian process regression on battery SOH estimation. A recurrent neural
networks(RNNs)-based SOC and SOH estimation model which does not
require battery modeling or knowledge of batter parameters. The
simulation results indicate that the recurrent neural networks-based
estimation model can make good SOC and SOH estimations based on
measured voltage, current, and ambient temperature. The measured data’s
accuracy is vital for empirical models’ performance.
More charging/discharging cycles occur in the V2G service than when
there is no V2G service; thus, battery degradation due to V2G services
might be more severe than without it. Assessed the impact of V2G on two
types of Lithium-ion batteries, nickel cobalt aluminum oxides (NCA) and
lithium ferro-phosphate (LFP). The simulation results indicate that the
effects of V2G on different batteries are different. For example, NCA is
more sensitive to cycle aging compared to LEP cells. In addition, high
SOC can increase battery capacity loss during storage. Also indicated that
the calendar aging process occurs faster for the battery stored at high SOC.
19
The authors found that battery overcharging and over-discharging
degradation happen when the battery operates outside its specified voltage
range. Although battery degradation is inevitable at the moment, it is
possible to minimize the process by avoiding overcharging/over-
discharging and encouraging charging/discharging batteries at an optimal
rate, under the optimal temperature range, and storing the battery at an
optimal SOC. Therefore, battery degradation estimation and modeling need
to be more accurate to support battery charging and discharging control
design.
Charging and discharging efficiency is also one of the primary
concerns of the V2G program. Apostolaki-Iosifidou et al. conducted
experimental measurements to determine power loss during EV charging
and discharging. The measurement results indicate that most power losses
occur in the power electronics used for AC-DC conversion. Usually, the
highest efficiency of the power electronics occurs at the top region of their
rated power . In addition, the efficiency of the power electronics is higher
during charging than discharging. This is due to the higher voltage during
charging than discharging at a given power. The higher charging voltage
results in a lower charging current, thus lowering internal resistance
losses . Therefore, the trade-off between inevitable battery degradation and
power loss during battery discharging and the benefit of V2G needs to be
farther investigated. More research on battery design and management is
required to minimize battery degradation during charging/discharging.
20
components are EV charging/discharging-related forecasting, scheduling,
and dynamic pricing. Accurate forecasting results provide insightful
information on system conditions to scheduling models, which provide
optimal charging/discharging control and pricing signals which are then
used to update the forecasting model to enhance prediction accuracy. Thus,
accurate forecasting results are crucial for making optimal EV
charging/discharging strategies. Commonly used artificial intelligence-
based forecasting models related to EV charging/discharging are discussed
in this section.
21
3.3. Supervised Learning Methods
22
3.69% mean absolute percentage error (MAPE), which is lower than the
8.99% MAPE of the Monte Carlo technique.
23
3.5. Long Short-Term Memory (LSTM)
Long short-term memory (LSTM) is another popular gating
mechanism of RNN. It was first introduced. GRU and LSTM can solve
complex, long-sequence problems better than recurrent neural networks
(RNNs). Additionally, LSTM usually performs better for solving high-
complexity sequences than GRU. Therefore, LSTM has been generally
used to solve problems with long and high-complexity sequence samples.
Kriekinge et al., proposed an LSTM model to predict load demand and
one day ahead of EV charging demand. Schedulers then use the forecasted
load demand to plan EVs’ charging and discharging. LSTM to predict
future charging prices based on the historical charging price. LSTM
networks and deep LSTM have been applied to predict V2G capacity by
compared the V2G capacity forecasting performance of LSTM with the
Nonlinear Autoregressive Neural Network (NAR). The simulation results
indicate that NAR performs slightly better than LSTM. However, both
models can use historical knowledge to correct learned aggregated
available capacity deviations for V2G service.
24
operating cost of the distribution network. Artificial Intelligence-based
hybrid model that consists of K-means clustering, KNN classification, and
LSTM prediction to predict EV driver charging behavior. A CNN-based
ensemble model to forecast traffic flow and EV load demand. The
forecasted load demand can be used to make electricity trading decisions.
Artificial intelligence-based forecasting models are usually supervised
learning-based models which use labeled data to train the models for
predictions. The forecasting models are used to predict electricity price, EV
load demand, driving pattern, and availability of state of charge, which can
then provide EV charging and discharging schedules and pricing.
However, the performance of these charging scheduling models is highly
dependent on the accuracy of the prediction models. Uncertainty is an
inherent property of forecasting models. The stochastic and unpredictable
EV charging, discharging, and driving behaviors make forecasting harder.
Therefore, forecasting results alone will not result in optimal charging
scheduling strategies. Other than the suggested hybrid and ensemble
techniques, online-based prediction models that take the latest available
information to update the prediction models might reduce the forecasting
uncertainty.
Moreover, probabilistic learning algorithms, such as Gaussian
processes (GP) can provide prediction with an uncertainty interval that
could also be applied to EV charging/discharging-related studies.
25
like forecasting EV charging demand and optimizing charging schedules.
Moreover, artificial intelligence models such as neural networks and
reinforcement learning approaches can obtain nonlinear relationships from
historical data and learn via interacting with the environment, respectively.
Therefore, they usually do not require expert knowledge of a complex
system to build a model from system developers due to the ability of
artificial intelligence to learn from the existing dataset. Furthermore,
complex problems like demand forecasting and charging scheduling
optimization are stochastic, requiring the models to be continuously
updated. The online setup of artificial intelligence allows models to learn
the latest available dataset to improve model performance. The following
are some of the artificial intelligence-based scheduling algorithms.
26
performance comparison of these models is lacking. Tested the
performance of four different heuristic algorithms on EV
charging/discharging scheduling. The simulation results show that GA can
provide the lowest EV station operating cost and the most convenience for
EV owners, followed by PSO, DE, and ABC. Although heuristic
algorithms are easy to implement and can provide a fast solution, they do
not always provide optimal solutions because they might be trapped in
local optimal and provide unstable performances. In addition, the
parameters of these algorithms can largely impact their performance. Thus,
the ranking of these algorithms should only be used as guidance.
27
expense. A DP-based model to optimally control PHEVs’ charging time
and power rate based on the forecasted electricity prices in deregulated
electricity markets. The simulation results indicate that the model can
reduce daily electricity costs substantially. Markov chain model to predict
the probability of EVs’ driving patterns. Then a stochastic DP model is
applied to the EVs’ driving pattern and electricity price to provide the
optimal charging policy. The simulation results show that the optimal
charging policy can reduce daily energy costs. However, the environment
of EV charging scheduling tasks is not usually known. DP optimizes its
policy based on a known environment, whereas Q-learning, a model-free
RL, optimizes its policy via interacting with its environment. Watkins
introduced Q-learning in 1989 , which is popular for scheduling problems
with a limited number of state and action spaces.
Artificial neural networks (ANN) forecasting model to predict the next
day’s electricity price. The forecasted results are then used to train the Q-
learning-based charging scheduling model. A Q-learning-based energy
management system that considers the ToU tariff, home appliances, and
energy storage system with charging/discharging functionality. The
simulation results show that the proposed model provides a 14% electricity
bill reduction compared to MILP.
The charging/discharging functionality of the energy storage systems
is similar to that of EVs’ charging and discharging. Therefore, the results
should be similar if the proposed model in is applied for EV charging and
discharging. A Q-learning model to give EVs real-time charging and
discharging schedules. The simulation results indicate that the proposed
model can achieve a cost saving of approximately 68% compared to the
uncontrolled one. However, one of the limitations of Q-learning algorithms
is the curse of dimensionality. Thus, deep reinforcement learning which
28
combines deep neural networks with reinforcement learning, has been
widely used to overcome the issue of the curse of dimensionality.
Deep-Q networks (DQN) combine deep neural networks with Q-
learning to make RL more suitable for high-dimensional and complex
environments DQN has been used in to reduce charging costs and increase
power grid reliability. A DQN-based battery-swapping scheduling strategy
to provide fast frequency regulation services. The simulation results
indicate that the proposed model can maximize the battery swapping
station operators’ revenue by autonomously scheduling the hourly
regulation capacity in real-time. DQN and Dyna Q learning to allow the
model to learn from both real-time experiences and simulated experiences,
which speeds up training. The proposed algorithm can reduce the long-
term charging cost while avoiding battery depletion during trips. Double-
DQN was introduced in to reduce the overestimation of action values of
DQN, and it is applied in to control EVs’ charging/discharging based on
the hourly electricity price. The simulation results indicate that the Double-
DQN algorithm reduces the correlation of the action values with the target
and provides better profit for EV owners than other state-of-the-art models
such as RNN, CDNN, and LSTM. However, the training time of DQN for
problems with complex and large state spaces is usually long due to its
value iteration nature. Asynchronous Advantage Actor Critic (A3C), which
requires less training time than DQN, was introduced in 2016. Although
A3C has not been applied to EV charging and discharging-related studies
in the reviewed literature, it is a good algorithm for a complex problem
with many states like EV charging and discharging and should be used in
the future.
In addition, both Q-learning and DQN are only suitable for discrete
action spaces, significantly reducing the effectiveness of the EV charging
control algorithm due to the limitation of the action space exploration. The
29
deep deterministic policy gradient (DDPG) is suitable for tasks with
continuous state and action spaces. It has been proposed to maximize
system operators’ financial benefit or reduce the charging cost of EV
owners. The simulation results show that the higher pricing frequency can
better reflect power system demand and supply situations and shift EV
charging load. The simulation results is suggest that a DDPG-based EV
charging strategy can strictly guarantee voltage security by scheduling EV
charging and discharging at suitable time periods.DDPG to solve the
voltage control strategy problem to mitigate voltage fluctuation caused by
stochastic EV and load demand. A prioritized deep deterministic policy
gradient (PDDPG), a combination of DDPG and prioritized experience
replay, to optimize EV owners’ and aggregators’ profits. PDDPG can solve
the problem in multi-dimensional continuous state and action spaces,
which is preferable for practical application and requires lower
computational resources than DDPG with uniform sampling. The
simulation results of show that PDDOG can provide 31%, 13%, and 5%
higher profit than Q-learning, DQN, and DDPG, respectively. Another off-
policy algorithm, soft-actor-critic (SAC) is used to balance charging costs
and drivers’ anxiety. The maximum entropy framework of SAC makes the
proposed model more sample efficient and robust. SAC model to provide
dynamic EV charging and discharging pricing to maximize the profits of
multiple EVCSs.
30
CHAPTER 4
4.1 INTRODUCTION
Sensors are mainly used to detect the status of the physical quantity.
Here we are using sensors for measuring irrigation area temperature,
Humidity, Soil moisture and flow of water.DHT11 temperature cum
humidity sensor is used to measure irrigation field temperature and
humidity,Soil moisture sensors are used to measure soil moisture and
Water flow sensor is used to measure water flow in motor output.
Electromagnetic relays are used to interface Motor and solenoid valves.
31
Fig 4.1 Photo Image and Pin Configuration of DHT11.
In this article, we are going to learn how to interface lcd to arduino with 2
examples – one being interfacing a 16×2 LCD module to Arduino and the
other being interfacing a 20×4 LCD module to Arduino.
32
4.4 Interfacing 16×2 LCD to Arduino uno
The JHD162A lcd module has 16 pins and can be operated in 4-bit
mode or 8-bit mode. Here we are using the LCD module in 4-bit mode.
Before going in to the details of the project, let’s have a look at the
JHD162A LCD module.The schematic of a JHD162A LCD pin diagram is
given below.
The name and functions of each pin of the 16×2 LCD module is
given below.
33
Pin1(Vss):Ground pin of the LCD module.
Pin5(R/W): Read/Write modes. This pin is used for selecting between read
and write modes. Logic HIGH at this pin activates read mode and logic
LOW at this pin activates write mode.
Pin6(E): This pin is meant for enabling the LCD module. A HIGH to LOW
signal at this pin will enable the module.
Pin7(DB0) to Pin14(DB7): These are data pins. The commands and data
are fed to the LCD module though these pins.
Pin15(LED+): Anode of the back light LED. When operated on 5V, a 560
ohm resistor should be connected in series to this pin. In arduino based
projects the back light LED can be powered from the 3.3V source on the
arduino board.
34
Pin16(LED-): Cathode of the back light LED.
For knowing more about LCD module JHD162A and its pin functions,
read this article: Interfacing 16×2 LCD and 8051 microcontroller. The
circuit diagram of interfacing LCD to arduino for displaying a text message
is shown below.
35
source on the arduino board. The arduino can be also powered from the PC
through the USB port. The full program for interfacing LCD to arduino is
shown below.
36
stands for Common, NO stands for Normally Open and NC stands for
Normally Closed. When the electromagnet is not energized, the armature
will be connected to NC contact. Thus COM and NC will be connected.
When the electromagnet is energized, the electromagnet attracts the iron
armature and it will be connected to NO contact. Thus COM and NO will
be connected.
37
CHAPTER V
HARDWARE DESCRIPTION
38
CHAPTER-VI
CONCLUSION
39
using the latest available data to update forecasting models and adding
uncertainty intervals are other options to assist decision-making.
Reinforcement learning-based optimization models that can take many
variables as state spaces have been applied by many researchers to make
optimal EV charging and discharging decisions based on the forecasted
results, including charging and discharging prices. DQN, DDPG, and SAC
are some of the most popular reinforcement learning models. Each of them
has its advantages and disadvantages. DQN can overcome the curse of
dimensionality faced by conventional Q-learning. However, overestimation
of action values and long training time requirements are common issues
faced by these methods. Double-DQN and A3C can solve action value
overestimation and reduce training time, respectively. Improving
reinforcement learning performance is also a key field of research.
Scheduling models cannot make effective charging/discharging decisions
to optimize power grids if the information they use to make decisions
cannot accurately reflect the power grid’s real-time conditions. Therefore,
both forecasting results and dynamic pricing signals that can reflect the
real-time conditions of the power grid are important.
40
REFERENCES
1. H. Khayyam, B. Javadi, M. Jalili and R.N Jazar, "Artificial Intelligence
and Internet of Things for Autonomous Vehicles", Nonlinear Approaches
in Engineering Applications, 2019.
2. Z. Wang, M. Ogbodo, H. Huang, C. Qiu, M. Hisada and A. B. Abdallah,
"AEBIS: AI-Enabled Blockchain-Based Electric Vehicle Integration
System for Power Management in Smart Grid Platform", IEEE Access,
vol. 8, pp. 226409-226421, 2020.
3. Shabana Urooj, Fadwa Alrowais, Yuvaraja Teekaraman, Hariprasath
Manoharan and Ramya Kuppusamy, "IoT Based Electric Vehicle
Application Using Boosting Algorithm for Smart Cities", Energies, vol.
1072, pp. 14, 2021.
4. Chitra, P. Sanjeevikumar, Jens Bo Holm-Nielsen and S. Himavathi, "IoT-
Based Battery Management System for Hybrid Electric
Vehicle", Artificial Intelligent Techniques for Electric and Hybrid
Electric Vehicles, 2020.
5. Surendar and P. Pradeepa, "An IOT-based Battery Surveillance System
For E-Vehicles", 2021 Fifth International Conference on I-SMAC, pp.
119-124, 2021.
6. Heba Yahia Youssef, Latifa Alkhaja, Hajar Almazrouei, Ali Bou Nassif,
Chaouki Ghenai and Mohammad Al-Shabi, "A machine learning
approach for state-of-charge estimation of Li-ion batteries", Artificial
Intelligence and Machine Learning for MultiDomain Operations
Applications IV, pp. 1211329, 2022.
7. Moin Ahmed, Yun Zheng, Anna Amine, Hamed Fathiannasab and
Zhongwei Chen, "The role of artificial intelligence in the mass adoption
of electric vehicles", Joule, vol. 5.9, pp. 2296-2322, 2021.
41
8. Phillip Kollmeyer, Carlos Vidal, Mina Naguib and Michael Skells, "LG
18650HG2 Li-ion Battery Data and Example Deep Neural Network xEV
SOC Estimator Script", Mendeley Data V2, 2020.
9. Muhammad Nizam, Hari Maghfiroh, Rizal Abdulrozaq Rosadi and
Kirana DU Kusumaputri, "Battery management system design (BMS) for
lithium-ion batteries", AIP Conference Proceedings, vol. 2217.1, pp.
030157, 2020.
10.Yong Feng, Zhenwei Cao, Weixiang Shen, Xinghuo Yu, Han Fengling,
Rita Chen, et al., "Intelligent battery management for electric and hybrid
electric vehicles: A survey", pp. 1436-1441, 2013.
11.R Ananthraj and Arnab Ghosh, "Battery Management System in Electric
Vehicle", 4th Biennial International Conference on Nascent
Technologies in Engineering (ICNTE), pp. 1-6, 2021.
42