Shreya Pandey ITLAB
Shreya Pandey ITLAB
Session : 2023-24
CANDIDATE DECLARATION
Shreya Pandey
7 EE C
20ESKEE132
I would like to show gratitude towards my teachers and the trainers for the
opportunity given and help to complete my training within the time allotted.
This training would not have been completed without the support of my teachers and
parents. Therefore, I would like to thank Industrial Training Incharge, Mr. Ajay
Bhardwaj, Assistant Professor, Department of Electrical Engineering, Swami
Keshvanand Institute of Technology, Management & Gramothan, Jaipur for
extending his cordial support throughout the training completion. I would also like to
thank Dr. Sarfaraz Nawaz, Head of Department , Electrical Engineering, Swami
Keshvanand Institute of Technology, Management & Gramothan, Jaipur for
giving me enough time to complete the training.
I would like to extend my thanks to Dr. S. L. Surana, Director (Academics) and Dr.
Ramesh Kumar Pachar, Principal, Swami Keshvanand Institute of Technology,
Management & Gramothan, Jaipur for their motivation throughout my college time.
It may not be possible for me to acknowledge the support of all my friends, but I am
thankful to all other trainees for their valuable ideas and support during the training
period.
Shreya Pandey
7 EE C
20ESKEE132
Main Page i
Certificate ii
Acknowledgement iv
Contents v
List of Figures ix
List of Tables x
Abstract xi
Chapter Page
Chapter Name
No. No.
1 Introduction 01
1.1 Introduction to Embedded System 01
1.2 What is Embedded System 02
Uses and Applications of Embedded
1.3 03
System
1.4 Components of Embedded System 04
1.5 Challenges of Embedded System 04
1.6 Future Trends in Embedded System 06
1.7 Importance of Embedded System 09
5 Working On Project 49
5.1 Introduction of Instrument Cluster 49
5.2 Functional Specification of Cluster 50
5.2.1 Speedo Module 50
5.2.2 Odo Module 51
5.2.3 Trip A and B (Distance Counter) 51
5.2.4 Clock 51
5.2.5 Range Indicator 51
5.2.6 SOC ( Battery Level Indicator ) 51
5.2.7 Time To Charge ( TTC ) 52
5.2.8 Voltage 52
5.2.9 Current 52
5.2.10 Forward Mode 52
5.2.11 Reverse Mode 53
5.2.12 Eco Mode 53
5.2.13 Sport Mode 53
5.2.14 Motor Failure 53
5.2.15 Motor Over Temperature 53
5.2.16 Battery Temperature 53
5.2.17 Regeneration 53
5.2.18 Park Brake 53
5.2.19 Helmet 54
5.2.20 Error Code 54
This report delves into the pioneering work conducted at HOP Electric and Mobility,
focusing on the integration of Arduino technology and the Controller Area Network
(CAN) protocol to establish a cutting-edge embedded system for electric vehicle
(EV) infrastructure. By combining these elements, HOP aims to optimize EV
functionality and contribute to the broader advancement of sustainable mobility
solutions. The report meticulously examines the technical aspects and synergies
between Arduino and CAN protocol, shedding light on their collaborative role in
enhancing the efficiency and intelligence of the EV infrastructure. HOP's innovative
approach underscores their commitment to pushing the boundaries of electric
mobility, positioning them at the forefront of technological advancements in the
industry. This exploration provides valuable insights into the potential for creating
interconnected systems that propel the evolution of electric vehicles and foster a more
sustainable future.
This report presents all the technical details and data of equipment that was possible,
it also contains theory and description of the different equipment that I saw there.
This training widened my thinking for learning from unique and out of box solutions
that were being implemented Research & Development Department of Company.
Sound card, CD-Rom Driver, Mouse & so on. Each one of these peripherals as a
microcontroller inside it that performs only one task. For example inside every mouse
there is microcontroller to perform the task of finding the mouse position and sending
it to PC.
Although microcontroller are preferred choice for many Embedded systems, there are
times that a microcontroller is inadequate for the task. For this reason in recent years
many manufactures of general purpose microprocessors such as INTEL, Motorola,
AMD & Cyrix have targeted their microprocessors for the high end of Embedded
market.
Department of Electrical Engineering, SKIT M&G, Jaipur Page 1
While INTEL, AMD, Cyrix push their x86 processors for both the embedded and
desktop pc market, Motorola is determined to keep the 68000 families alive by
targeting it mainly for high end of embedded system.
One of the most critical needs of the embedded system is to decrease power
consumptions and space. This can be achieved by integrating more functions into the
CPU chips. All the embedded processors based on the x86 and 680x0 have low power
consumptions in additions to some forms of I/O, Com port & ROM all on a single
chip. In higher performance Embedded system the trend is to integrate more & more
functions on the CPU chip & let the designer decide which feature he/she wants to
use.
2. Memory: Storage for program code and data, typically divided into
ROM (Read-Only Memory) for firmware and RAM (Random-Access
Memory) for temporary data storage.
The field of embedded systems is continuously evolving to meet the growing demands of
various industries and technological advancements. Here are some future trends in
embedded systems to watch for:
6. 5G and Beyond: The rollout of 5G networks will enable faster and more
reliable connectivity, opening up new possibilities for embedded systems.
Real-time applications, high-definition video streaming, and remote control
will become more feasible.
10. Augmented and Virtual Reality: Embedded systems will play a crucial
role in augmented reality (AR) and virtual reality (VR) applications, enabling
immersive experiences and interactive simulations.
This report delves into the intersection of electric vehicles and embedded systems,
examining the symbiotic relationship between these two technological domains. We
explore how embedded systems are revolutionising the electric vehicle sector,
enhancing their performance, safety, and user experience. Furthermore, we discuss the
potential challenges and opportunities that lie ahead, considering both technological
and societal aspects.
In recent years, the global automotive landscape has witnessed a remarkable shift in
consumer preferences and industry dynamics, driven by a growing awareness of
environmental concerns and a relentless pursuit of sustainable transportation solutions.
This transformation has been epitomised by the rising demand for Electric Vehicles
(EVs). With an increasing emphasis on reducing greenhouse gas emissions,
conserving natural resources, and curbing air pollution, EVs have emerged as a pivotal
and compelling choice for both individuals and policymakers alike. This small
introduction will explore the driving forces behind the surging demand for EVs,
outlining the key factors fueling this significant shift in the automotive paradigm.
5. Over-the-Air Updates:
Embedded systems in EVs allow for remote software updates, ensuring that
vehicles can receive improvements and new features without requiring a visit
to a dealership. This feature enhances vehicle longevity and keeps the software
up-to-date with evolving industry standards and regulations.
As the world transitions toward sustainable transportation, EVs have gained immense
popularity, driven by their eco-friendliness, energy efficiency, and promise of reduced
emissions. Yet, beneath the surface, a series of challenges looms, encompassing a
wide spectrum of technical, operational, and regulatory aspects.
2. Safety and Security Concerns: EVs rely heavily on embedded systems for
functions such as regenerative braking, motor control, and autonomous driving
assistance. Ensuring the safety and security of these systems against cyber
threats, malfunctions, or accidents is a formidable challenge in the quest for
widespread EV adoption.
In the chapters that follow, this report will delve deeper into each of these challenges,
providing insights into the specific issues at play, and exploring potential solutions
and innovations that are on the horizon. The successful alignment of electric vehicles
with embedded systems is a multifaceted endeavour, and addressing these challenges
is essential to realising the full potential of EVs in the pursuit of sustainable and
efficient transportation systems.
There are several types of protocols used in different contexts, but I'll focus on the
types relevant to electric vehicles:
3. Safety: Protocols like CAN and FlexRay help ensure real-time communication
for critical safety functions within an EV, such as traction control and
regenerative braking.
4. Charging: Charging protocols like CCS and CHAdeMO are essential for fast
charging EVs, enabling compatibility with various charging stations and
networks.
5. Remote Connectivity: EVs often have remote connectivity features that rely
on network protocols like TCP/IP for functions such as remote diagnostics,
software updates, and vehicle tracking.
1. Data Framing: Data is divided into frames for transmission. A frame typically
consists of a start bit, the specified number of data bits, an optional parity bit,
and one or more stop bits. The start bit signals the beginning of a frame, and
the stop bit(s) indicate the frame's end.
2. Serial to Parallel Conversion (Transmitter): In the transmitter, parallel data
is converted into a serial format. Each frame is sent sequentially, starting with
the start bit, followed by the data bits (in the specified order), optional parity
bit, and stop bit(s).
3. Transmission: The serial data is transmitted to the receiving device through a
UART interface, which can be a physical wire connection or a virtual UART
over a software interface.
4. Serial to Parallel Conversion (Receiver): In the receiver, the serial data is
converted back into parallel format, aligning it with the specified data bits,
parity bit (if used), and stop bit(s).
5. Error Checking (Optional): If parity is enabled, the receiver checks whether
the number of set bits in the frame matches the specified parity type. If they
don't match, an error is detected.
6. Data Processing: The received data is processed by the receiving device,
which can be a microcontroller, computer, or another digital device.
One of the notable advantages of SPI is its high data transfer rate, making it suitable
for applications requiring rapid data exchange. Additionally, SPI's support for
multiple devices connected to the same bus allows for efficient data sharing among a
wide array of components within a system. However, it's essential to note that SPI
does not inherently provide features for addressing or data packetization, and it
operates mainly in a master-slave configuration. While its simplicity and speed are
advantages, users must carefully design the communication protocol and consider
factors like clock polarity and phase to ensure reliable data transmission in their
specific application.
1. Master Out Slave In (MOSI): This signal carries data from the master to the
slave.
2. Master In Slave Out (MISO): It carries data from the slave to the master.
3. Serial Clock (SCK): SCK is a shared clock signal generated by the master to
synchronise data transfer. Both the master and slaves use this clock to time the
data transmission.
4. Chip Select (CS) or Slave Select (SS): This signal is used to select the
specific slave device with which the master wishes to communicate. Each
slave device typically has its own CS/SS line.
6. Clock Polarity and Phase: SPI allows for flexibility in configuring the clock
polarity (CPOL) and clock phase (CPHA). These settings determine the timing
relationship between the clock signal and the data bits, ensuring compatibility
between the master and slave devices.
8. Data Transmission: The master sends data on the MOSI line while the
selected slave responds by sending data on the MISO line. The timing of the
clock signal (SCK) ensures that both master and slave devices are
synchronised.
9. End of Communication: After transferring the required data, the master may
de-assert the CS/SS line to deselect the slave, indicating the end of the
communication session. This allows the master to communicate with other
slaves or end the communication.
10. Multiple Slave Devices: SPI supports communication with multiple slave
devices by selecting one slave at a time through their respective CS/SS lines.
The master can switch between slaves during the communication session.
SPI communication is known for its simplicity and speed, making it a popular choice for
interfacing microcontrollers, sensors, memory devices, and various integrated circuits
in embedded systems and electronics applications. The flexibility to configure clock
polarity and phase allows SPI to be compatible with a wide range of devices and
communication requirements.
The Controller Area Network (CAN) protocol is a widely used communication standard in
various industries, particularly in automotive and industrial applications. Developed
by Bosch in the 1980s, CAN has become integral to modern vehicles,
3. Arbitration: Nodes on the CAN bus listen to the bus to check for ongoing
transmissions. If a node has a message to transmit, it monitors the bus to
ensure it's idle. Once the bus is idle, the node starts transmitting its message,
including its identifier. During transmission, nodes continually monitor the
bus for conflicts. If two nodes start transmitting simultaneously, the one with
the lower message identifier wins the arbitration and continues transmitting its
message. The other node detects the conflict and backs off, waiting for an
opportunity to retry.
2. Electric Motor Control: CAN is used to control and manage the electric
motor that propels the vehicle. The Electric Motor Control Unit (ECU)
communicates with sensors that monitor motor speed, temperature, and torque,
allowing for precise adjustments to optimise performance, efficiency, and
regenerative braking.
5. User Interface and Infotainment: CAN is used in the vehicle's user interface
and infotainment systems. It allows for real-time display of battery status,
6. Data Logging and Diagnostics: CAN facilitates data logging and diagnostics,
enabling technicians to assess the health of the vehicle and diagnose issues
efficiently. This is essential for maintenance and troubleshooting in EVs.
4.1 INTRODUCTION
A simple real-world example: When used in e-scooter sharing, the VCU establishes
the online connection required for users to rent the vehicle via an app.
A VCU is an electronic device that controls and manages the powertrain system in an
electric vehicle. It receives information from various sensors and modules in the
vehicle, such as the accelerator pedal, brake pedal, and battery management system,
and uses that information to control the electric motor, battery pack, and other
systems in the vehicle. The VCU is the brain of the electric vehicle, controlling all of
its critical systems to ensure a smooth, efficient, and safe driving experience.
The VCU receives signals from various sensors in the vehicle and uses that
information to control the powertrain system. For example, when the driver presses
the accelerator pedal, the VCU receives a signal from the pedal position sensor and
sends a signal to the motor controller to increase the power output to the electric
The VCU also manages the battery pack, ensuring that it is charged and discharged
safely and efficiently. It monitors the battery voltage and temperature and adjusts the
charging and discharging rate to prevent overcharging or overheating. The VCU also
communicates with the onboard charger and external charging station to ensure that
the battery is charged correctly and safely.
The Vehicle Control Unit (VCU) in an electric vehicle (EV) consists of several
components, each with a specific role in controlling and managing various aspects of
the vehicle's operation. Here are the different components typically found in a VCU:
These components work together to ensure the efficient and safe operation of an electric
vehicle. The VCU's role is central to coordinating these components and optimising
the vehicle's overall performance, energy usage, and safety.
Vehicle Control Units (VCUs), also known as Engine Control Modules (ECMs) or Engine
Control Units (ECUs), play a crucial role in modern vehicles by managing various
functions related to the engine, transmission, and other critical systems. The choice of
microcontroller for a VCU depends on the specific vehicle manufacturer, model, and
the complexity of the control system. As of my last knowledge update in September
2021, several microcontroller families were commonly used in VCUs.
Here's a breakdown of what a CAN transceiver does and its key functions:
Tracing of connections in a Printed Circuit Board (PCB) refers to the process of designing
and creating the conductive pathways, often referred to as "traces" or "tracks," that
connect various components on the PCB. These traces serve as electrical pathways for
signals to flow between components, ensuring that the circuit functions as intended.
Tracing connections is a fundamental aspect of PCB layout and design.
Reserve engineering is done and it is observed that we can’t connect CAN High and CAN
Low lines directly to the microcontroller. So we need a CAN Transceiver IC (VP231)
which is responsible for transmission and reception of data from microcontroller to
CAN Lines.
4.7.3 Connections -
● Pin 7 and 6 of VP231 - Connected to TX7 and TX5 respectively. From there, CAN
high and CAN low wires are taken out
The number and arrangement of pins on an Arduino chip can vary depending on the
specific Arduino board or microcontroller model you are using. However, I can
provide you with an overview of the common pin functions found on typical Arduino
boards, such as the Arduino Uno:
● Analog Pins: These pins are used for analog input. On the Arduino Uno, there
are 6 analog pins (labelled A0 to A5), which can also function as digital pins
when needed.
● Power Pins:
● PWM (Pulse Width Modulation) Pins: These pins, usually marked with a "~"
symbol, can generate analog-like signals using PWM. They are often used for
controlling the brightness of LEDs or the speed of motors.
communication.
1. Analog Signal Acquisition: Arduino boards come equipped with analog input
pins (often labelled as A0, A1, etc.) that can be connected to various analog
sensors or signal sources. These pins allow Arduino to sample analog signals,
such as sensor readings or voltage levels, converting them into digital values
using the built-in Analog-to-Digital Converter (ADC).
2. Data Processing: Once the analog signals are converted to digital data,
Arduino can process and analyse this information. This can include data
filtering, scaling, calibration, or mathematical operations to extract meaningful
insights or trigger specific actions based on the received analog data.
5. Control Outputs: Based on the decisions made using the processed analog
data, Arduino can control digital outputs, such as relays, LEDs, motors, or
actuators, using its digital output pins. These outputs can be used to actuate
devices, send commands, or provide feedback to the system.
Arduino's ease of use, extensive library support, and an active community of developers
make it an excellent choice for building A/D communication systems. It offers a
straightforward platform for interfacing with analog sensors, processing data, making
decisions, and facilitating digital communication, making it a versatile "brain" for
such applications.
Using the MCP2515 CAN transceiver with an Arduino is a common and powerful
combination for adding CAN communication capabilities to your Arduino projects.
The MCP2515 acts as the controller for CAN communication, while the Arduino can
interface with it using the SPI (Serial Peripheral Interface) communication protocol.
Here's a basic guide to get you started. Components You'll Need:
If you're connecting to an existing CAN network, make sure to connect the CAN_H
and CAN_L pins from the MCP2515 module to the corresponding CAN lines in your
network. Additionally, consider adding termination resistors at both ends of the CAN
bus for signal integrity.
Make sure to adjust the CS_PIN to match the digital pin you've connected the CS
(Chip Select) pin of the MCP2515 to. Additionally, adapt the baud rate and message
parameters according to your CAN network requirements.
With this setup, you can integrate CAN communication into your Arduino projects,
enabling communication with other CAN devices or networks.
Using the MCP2515 CAN transceiver with an Arduino offers the advantage of
seamlessly integrating Controller Area Network (CAN) communication capabilities
into your Arduino projects. CAN is a robust and reliable protocol widely used in
automotive, industrial, and automation systems, making it ideal for applications
where dependable data exchange is crucial. With the MCP2515, your Arduino gains
the ability to communicate with other CAN devices and networks, enabling you to tap
into a vast ecosystem of compatible hardware and solutions, expand your project's
versatility, and participate in the broader world of CAN-based applications.
Arduino, while an excellent platform for many projects, does come with certain
limitations. One of the primary constraints is the relatively limited processing power
and memory of the microcontrollers used in Arduino boards. This can be a hindrance
for applications demanding complex calculations or multitasking. Additionally,
Arduino may not be suitable for running high-level operating systems, making it less
adaptable for projects that require sophisticated software environments.
The HOP EV Cluster is a Driver Information System (DIS) that offers information
like Vehicle Speed, ODOmeter, Distance to Empty (DTE), Clock, Trip metre A & B,
Service reminder, Low Battery, Side stand, Helmet, Turn Left, Turn Right, SOC
value, Eco Mode, Power Mode, sport Mode, Regeneration, Voltage, Current, Motor
Temperature, Motor failure, Battery Temperature, Forward & Reverse icon, Park
Brake, Malfunction, Push Button (Mode & Set) and so on to the user.
The boundary condition of all the CAN IDs according to bit is measured
Table 5.1 Display Parameters Testing & Boundary Conditions of all CAN IDs
5.2.4 CLOCK
Indication type: 4 digits with 7 segments,"AM" & "PM" with colon “:” which blink at
1 Hz rate in normal operation.
Display Range: 99:99
Format: HH:MM AM PM
Indication Range: 11:59PM →12:00AM........11:59AM → 12:00PM
Crystal oscillator shall be quartz based.
Clock accuracy : ± 2Secs/day @ 25°C and ± 4 Secs/day @ 50°C
5.2.8 VOLTAGE
Indication type:Digital
Indication type: 4 digits to be display using 7 segments with icons “.”,"VOLT",”V”.
Display Range: 00.00 to 99.99. preceding 0’s need to be displayed.
REQ_EES_3.10.3 Voltage value will display, only when the SOC value get <10%.
5.2.9 CURRENT
Indication type:Digital
Indication type: 4 digits to be display using 7 segments with icons “.”,
“CURRENT”,”A”.
Display Range: 00.00 to 99.99. preceding 0’s need to be displayed.
Current value will display, only when the SOC value get ≥10%.
5.2.17 REGENERATION
Indication type: REGEN icon in LCD
In any of the two operating modes, during braking of the vehicle, the back-emf of the
traction motor will be higher than the battery terminal voltage and hence it charges
the battery.
5.2.19 HELMET
Indication type: Helmet icon in LCD
Helmet icon : Internal
For every IGN ON, Helmet icon will blinks at 1hzs for 5 secs.
The successful creation of a test bench for the testing of the display marks a
significant milestone in our project. This accomplishment not only demonstrates our
team's technical progress but also highlights the practicality of the knowledge and
skills acquired during the course of this project.
As we move forward, the knowledge and experience gained from this project will
undoubtedly serve as a solid foundation for future endeavours in the field of
embedded systems, communications protocols, and hardware testing. We believe that
our findings and the development of the test bench will contribute to the advancement
of technology and innovation in this domain.
We would like to express our gratitude to all those who supported and guided us
throughout this project. Their expertise and encouragement were instrumental in our
success. With this project, we look forward to a future where the CAN protocol and
display testing continue to play a pivotal role in various applications, driving progress
and innovation in the world of technology.
1. https://www.researchgate.net/publication/312402247_Design_and_implem
entation_of_CAN_bus_protocol_for_monitoring_vehicle_parameters
2. https://hopelectric.in/
3. https://www.kvaser.com/can-protocol-tutorial/
4. https://www.arduino.cc
5. https://www.alldatasheet.com/datasheet-pdf/pdf/185386/TI/VP231.html
6. https://www.renesas.com/document/dst/renesas-ra6m1-group-datasheet
7. https://afdc.energy.gov/vehicles/electric.html