ROBOTIC ARM USING ESP32
A project report submitted in partial fulfillment of the requirement for the award of the
degree of
BACHELOR OF TECHNOLOGY
in
ELECTRONIC COMMUNICATION & ENGINEERING
of
JAWAHARLAL NEHRU TECHNOLOGICAL UNIVERSITY ANANATPUR,
ANANTHAPURAMU.
by
S SAJIDHA BANU 212K1A0436
T PAVAN 212K1A0437
T SADDAM HUSSAIN 212K1A0438
V HARINI 212K1A0439
V K VANITHAMMA 212K1A0440
Under the esteemed guidance of
K SUDHAKAR M. Tech.
Associate Professor
DEPARTMENT OF ELECTRONIC COMMUNICATION & ENGINEERING
BHEEMA INSTITUTE OF TECHNOLOGY AND SCIENCE
Alur Road, Adoni-518301, Kurnool, Andhra Pradesh
(Affiliated to Jawaharlal Nehru Technological University Anantapur, Anantapuramu)2020-202
BHEEMA INSTITUTE OF TECHNOLOGY AND SCIENCE
Alur Road, Adoni – 508301
(Affiliated to Jawaharlal Nehru Technological University Anantapur, Anantapuramu)
DEPARTMENT OF ELECTRONIC COMMUNICATION & ENGINEERING
CERTIFICATE
This is to certify that the project entitled “ROBOTIC ARM USING ESP32” being
submitted by VADABALIJA HARINI (212K1A0439), V K VANITHAMMA
(212K1A0440) , SHAIK SAJIDA BANU (212K1A0436), T PAVAN1 (212K1A0437), T
SADDAM HUSSAIN (212K1A0438) in partial fulfilment of the requirement of the award
of degree of Bachelor of Technology in Electronic Communication & Engineering of
Jawaharlal Nehru Technological University Anantapur, Anantapuramu during the academic
year 2021-2025.
K SUDHAKAR G S SURENDRA BABU
Project Guide Head of the Department
Place: Adoni
Date:
Certified that the candidate was examined by me in the viva-voice examination held
at Bheema Institute of Technology & Science, Alur Road, Adoni on
_____________________.
INTERNAL EXAMINER EXTERNALEXAMINER
STUDENT DECLARATION
VADABALIJA HARINI (212K1A0439), V K VANITHAMMA (212K1A0440) , SHAIK
SAJIDA BANU (212K1A0436), T PAVAN1 (212K1A0437), T SADDAM HUSSAIN
(212K1A0438) student of Bheema Institute of Technology and Science ,Adoni ,hereby
declare that the dissertation entitled “ROBOTIC ARM USING ESP32” embodies the report
of my project work carried out independently by me during final year of Bachelor of
Technology in Electronic Communication & Engineering under the supervision and
guidance Mr. K Sudhakar, Assistant Professor, Department of Electronic communication &
Engineering, Bheema Institute of Technology and Science ,Adoni ,A.P, and this work has
been submitted for the partial fulfillment of the requirements for the award of degree of
Bachelor of Technology.
We have not submitted the matter embodies to any other University or
Institutions forth award of any other degree.
STUDENT NAME REGISTER NUMBER SIGNATURE
S SAJIDA BANU 212K1A0436
T PAVAN 212K1A0437
T SADDAM HUSSAIN 212K1A0438
V HARINI 212K1A0439
V K VANITHAMMA 212K1A0440
ACKNOWLEDGEMENT
We take this opportunity to thank all those magnanimous persons who rendered their full
support to our work the pleasure, the achievement, the glory, the satisfaction, the reward,
appreciation and the construction of this regular schedule spared their valuable time for us.
This acknowledgement is not just a position of words but also an account of indictment. They
have been guiding and source of inspiration towards the completion of this project.
We are very grateful to Sri. VISHNU VARDHAN REDDY garu , Secretary of Bheema
Institute of Technology & Science ,for providing the wonderful learning environment.
We express our gratitude to G. S. SURENDRA BABU, principal and Head of the
Department of Electronic Communication and engineering for his guidance and support
towards the completion of this project. And for giving us an opportunity to do this project
work.
We are thankful to our guide K SUDHAKAR M. Tech, Associate professor, who with his
continuous efforts, unfailing interest, constant support and providing me the right
infrastructure helped me in completing this project work.
We would like to thank all the faculty members of ECE department and our friends for their
valuable suggestions and support which directly or indirectly helped us in mounding this
project in to a comprehensive one.
We wish to express our gratitude to our parents, whose love and encouragement have a great
support throughout our education.
STUDENT NAME REGISTER NUMBER
S SAJIDA BABU 212K1A0436
T PAVAN 212K1A0437
T SADDAM HUSSAIN 212K1A0438
V HARINI 212K1A0439
V K VANITHAMMA 212K1A0440
ABSTRACT
The project aims to revolutionize control and automation by integrating IoT
technology into a smart robotic arm and car system. It addresses the
limitations of traditional manual and semi-automated systems, which often
lack precision, remote control capabilities, and real-time monitoring. By
leveraging Blynk IoT, the system enables seamless remote control of both
the robotic arm and car, enhancing efficiency and adaptability in industrial,
domestic, and educational applications. The hardware includes motors,
motor drivers, and an ESP32 microcontroller, while the software utilizes
Blynk for IoT integration. The expected outcome is a versatile, cost-
effective, and user-friendly system that demonstrates the potential of IoT in
automation. This project has significant real-world implications, paving the
way for smarter automation solutions in various sectors.
CONTENTS PAGES NO
1. INTRODUCTION 1-3
2. HARDWARE COMPONENTS
3. ESP32
3.1.1 INTRODUCTION
3.1.2 PIN CONFIGURATION
3.1.3 ESP32 FEATURES
3.1.4 POWER
3.1.5 ON-BOARD SWITCHES & LED INDICATOR
3.1.6 PERIPHERALS AND I/O
3.1.7 SERIAL COMMUNICATION
3.1.8 SPECIFICATION
3.1.9 ADVANTAGES
[Link] OF DC MOTOR
5. H- BRIDGE
6. OPERATION
7. H- BRIDGE DRIVER
8. DESCRIPTION
9. BLOCK DIAGRAM
10. ABSOLUTE MAXIMUM RATINGS
11. PIN CONNECTIONS
12. BATTERY
13. CHARGING AND DISCHARGING
14. ARDUINO IDE
15. CIRCUIT CONNECTIONS
16. SOFTWARE IMPLEMENTATION
17. HOW TO UPLOAD THE CODE
18. EXISTING SYSTEMS
19. PROPOSED SYSTEM
20. FUTURE SCOPE
21. CONCLUSION
ROBOTIC ARM USING ESP32
[Link]: CHAPTER 1
The rapid advancement of IoT technology has opened new avenues for
automation and control systems. Traditional robotic arms and car control
systems often rely on manual operation or limited automation, which can
be inefficient, error-prone, and lack remote accessibility. This project
seeks to address these challenges by developing a smart system that
integrates IoT for enhanced control and automation.
The motivation behind this project lies in the growing demand for
remote-controlled, efficient, and scalable automation solutions in
industries, homes, and educational institutions. By combining a robotic
arm and a car into a single IoT-enabled system, this project demonstrates
how technology can simplify complex tasks and improve productivity.
The proposed system utilizes Blynk IoT for remote control, allowing
users to operate the robotic arm and car via a smartphone app. The
system’s key features include real-time control, precision, and
adaptability, making it suitable for applications such as material
handling, surveillance, and educational robotics. This project not only
highlights the potential of IoT in automation but also provides a
foundation for future innovations in the field.
Department of ECE (BITS) Page 1
ROBOTIC ARM USING ESP32
. CHAPTER 2
[Link] Components
Controllers
ESP32 Microcontroller
Actuators
4 DC Motors (2 for the robotic arm, 2 for the car)
Motor Drivers
2 L298N Motor Drivers (1 for the robotic arm, 1 for the car)
Power Supply
12V DC Power Supply
3. ESP32
Department of ECE (BITS) Page 2
ROBOTIC ARM USING ESP32
Fig 3.1 ESP32
3.1.1 Introduction
ESP32 is a firmware based on LUA developed for the ESP32 Wi-Fi
chip. This firmware, coupled with the ESP32 chip, is integrated into the
Development board/kit. Being open-source, ESP32 allows for hardware
design modifications. The kit contains the ESP32 Wi-Fi enabled chip, a
low-cost Wi-Fi chip developed by Expressive Systems with TCP/IP
protocol.
A Version 2 (V2) of the ESP32 Dev Kit, known as Development Board
v1.0 (Version 2), is available, often distinguished by its black PCB. It
features Arduino-like Analog (AO) and Digital (D0-D8) pins and
Department of ECE (BITS) Page 3
ROBOTIC ARM USING ESP32
supports serial communication protocols such as UART, SPI, and I2C.
These serial protocols enable connectivity with devices like I2C-enabled
LCD displays, magnetometers (HMC5883), gyro meters (MPU-6050),
real-time clock (RTC) chips, GPS modules, touch screen displays, and
SD cards.
3.1.2 Pin Configuration
The detailed pin configuration of the ESP32 is as follows:
Department of ECE (BITS) Page 4
ROBOTIC ARM USING ESP32
Table 3.2: ESP32 Pin Configuration
3.1.3 ESP32 Features
Cost-effective, compact, and potent Wi-Fi module
Power Supply: +3.3V
Current Consumption: 100mA
I/O Voltage: 3.6V (max)
1/0 source current: 12mA (max)
Built-in low-power 32-bit MCU @ 80MHz
512kB Flash Memory
Can function as Station or Access Point or both combined
Supports Deep sleep (<10uA)
Supports serial communication, making it compatible with various
development platforms like Arduino
Programmable using Arduino IDE, AT commands, or Lua Script
3.1.4 Power
As the operating voltage range of ESP32 is 3V to 3.6V, the board
includes an LDO voltage regulator to maintain a steady voltage at 3.3V.
It can supply up to 600mA reliably, sufficient for the ESP32's needs
during RF transmissions. The regulator output is accessible via the 3V3
pin, which can power external components.
Department of ECE (BITS) Page 5
ROBOTIC ARM USING ESP32
3.1.5 On-board Switches & LED Indicator
The ESP32 features two buttons: RST (Reset) and FLASH (Download).
These buttons facilitate resetting the ESP32 and firmware upgrading,
respectively.
Fig: 3.2: On-board switches & LED indicator
3.1.6 Peripherals and I/O
The ESP32 offers a total of 17 GPIO pins broken out to pin headers on
both sides of the development board. These pins support various
peripheral functions, including:
o ADC channel: 10-bit ADC channel
o UART interface: Used for serial loading of code
Department of ECE (BITS) Page 6
ROBOTIC ARM USING ESP32
o PWM outputs: For dimming LEDs or controlling motors
o SPI, I2C, & I2S interfaces: For connecting sensors and
peripherals
o I2S interface: If sound is to be added to the project
3.1.7 Serial Communication
The board integrates the CP2102 USB-to-UART Bridge Controller from
Silicon Labs, facilitating USB-to-serial conversion for programming and
communication with the ESP32 chip.
USB-TTL
CP2102
-
Fig: 3.3: Serial Communication
Pin Diagram
Department of ECE (BITS) Page 7
ROBOTIC ARM USING ESP32
Fig: 3.4 ESP-32 PINOUT
In this, ESP8266 has been replaced with ESP32, providing an overview
of the ESP32 development board's features, pin configuration, power
requirements, and communication interfaces.
3.1.8 Specifications:
- IDE Used: Arduino IDE
- Developer: ESP32Open Source Community
- Type: Single-board microcontroller
- Operating system: XTOS
Department of ECE (BITS) Page 8
ROBOTIC ARM USING ESP32
- CPU: ESP32
- Memory: 128kBytes
- Storage: 4MBytes
- Power By: USB
- Power Voltage: 3v, 5v (utilizes a 3.3v Regulator built-in on
Board using Pin VIN)
- Code: Arduino App
3.1.9 Advantages
- Low energy consumption
- Integrated support for WIFI network
- Reduced board size
- Cost-effective
Department of ECE (BITS) Page 9
ROBOTIC ARM USING ESP32
[Link] OF DC MOTOR
The speed of a DC motor is directly proportional to the supply voltage,
so if we reduce the supply voltage from 12 Volts to 6 Volts, the motor
will run at half the speed. How can this be achieved when the battery is
fixed at 12 Volts? The speed controller works by varying the average
voltage sent to the motor. It could do this by simply adjusting the
voltage sent to the motor, but this is quite inefficient to do. A better way
is to switch the motor's supply on and off very quickly. If the switching
is fast enough, the motor doesn't notice it, it only notices the average
effect.
When you watch a film in the cinema, or the television, what you
are actually seeing is a series of fixed pictures, which change rapidly
enough that your eyes just see the average effect - movement. Your
brain fills in the gaps to give an average effect.
Now imagine a light bulb with a switch. When you close the switch,
the bulb goes on and is at full brightness, say 100 Watts. When you open
the switch it goes off (0 Watts). Now if you close the switch for a
fraction of a second, then open it for the same amount of time, the
filament won't have time to cool down and heat up, and you will just get
an average glow of 50 Watts. This is how lamp dimmers work, and the
same principle is used by speed controllers to drive a motor. When the
Department of ECE (BITS) Page 10
ROBOTIC ARM USING ESP32
switch is closed, the motor sees 12 Volts, and when it is open it sees 0
Volts. If the switch is open for the same amount of time as it is closed,
the motor will see an average of 6 Volts, and will run more slowly
accordingly. The graph below shows the speed of a motor that is being
turned on and off
5.H-BRIDGE:
An H-bridge is an electronic circuit which enables DC electric motors to
be run forwards or backwards. These circuits are often used in robotics.
H-bridges are available as integrated circuits, or can be built from
discrete components.
The two basic states of a [Link] term "H-bridge" is derived
from the typical graphical representation of such a circuit. An H-bridge
Department of ECE (BITS) Page 11
ROBOTIC ARM USING ESP32
is built with four switches (solid-state or mechanical). When the
switches S1 and S4 (according to the first figure) are closed (and S2 and
S3 are open) a positive voltage will be applied across the motor. By
opening S1 and S4 switches and closing S2 and S3 switches, this voltage
is reversed, allowing reverse operation of the motor.
Using the nomenclature above, the switches S1 and S2 should never
be closed at the same time, as this would cause a short circuit on the
input voltage source. The same applies to the switches S3 and S4. This
condition is known as shoot-through.
[Link]
The H-Bridge arrangement is generally used to reverse the polarity of
the motor, but can also be used to 'brake' the motor, where the motor
comes to a sudden stop, as the motors terminals are shorted, or to let the
motor 'free run' to a stop, as the motor is effectively disconnected from
the circuit. The following table summarizes operation.
S S
S2 S3 Result
1 4
1 0 0 1 Motor
moves
Department of ECE (BITS) Page 12
ROBOTIC ARM USING ESP32
right
Motor
0 1 1 0 moves
left
Motor
0 0 0 0
free runs
Motor
0 1 0 1
brakes
7.H-Bridge Driver:
The switching property of this H-Bridge can be replace by a Transistor
or a Relay or a Mosfet or even by an IC. Here we are replacing this with
an IC named L293D as the driver whose description is as given below.
Features:
600mA OUTPUT CURRENT CAPABILITY
PER CHANNEL
1.2A PEAK OUTPUT CURRENT (non repetitive)
PER CHANNEL
Department of ECE (BITS) Page 13
ROBOTIC ARM USING ESP32
ENABLE FACILITY
OVERTEMPERATURE PROTECTION
LOGICAL "0" INPUT VOLTAGE UP TO 1.5 V
(HIGH NOISE IMMUNITY)
INTERNAL CLAMP DIODES
[Link]
The Device is a monolithic integrated high voltage, high current four
channel driver designed to accept standard DTL or TTL logic levels and
drive inductive loads (such as relays solenoides, DC and stepping
motors) and switching power transistors. To simplify use as two bridges
each pair of channels is equipped with an enable input. A separate
supply input is provided for the logic, allowing operation at a lower
voltage and internal clamp diodes are included. This device is suitable
for use in switching applications at frequencies up to 5 kHz. The L293D
is assembled in a 16 lead plastic packaage which has 4 center pins
connected together and used for heatsinking The L293DD is assembled
in a 20 lead surface mount which has 8 center pins connected together
and used for heatsinking.
[Link] DIAGRAM
Department of ECE (BITS) Page 14
ROBOTIC ARM USING ESP32
[Link] MAXIMUM RATINGS
[Link] CONNECTIONS
Department of ECE (BITS) Page 15
ROBOTIC ARM USING ESP32
[Link]
A Lithium-ion or Li-ion battery is a type of rechargeable battery which
uses the reversible reduction of lithium ions to store energy. It is the
predominant battery type used in portable consumer
electronics and electric vehicles. It also sees significant use for grid-
scale energy storage and military and aerospace applications. Compared
to other rechargeable battery technologies, Li-ion batteries have
high energy densities, low self-discharge, and no memory
effect (although a small memory effect reported in LFP cells has been
traced to poorly made cells).[9]
Chemistry, performance, cost and safety characteristics vary across
Department of ECE (BITS) Page 16
ROBOTIC ARM USING ESP32
types of lithium-ion batteries. Most commercial Li-ion cells
use intercalation compounds as the active materials. The anode or
negative electrode is usually graphite, although silicon-carbon is also
being increasingly used. Cells can be manufactured to prioritize either
energy or power density.[10] Handheld electronics mostly use lithium
polymer batteries (with a polymer gel as electrolyte), a lithium cobalt
oxide (LiCoO
) cathode material, and a graphite anode, which together offer a high
2
energy density.[11][12] Lithium iron phosphate (LiFePO4), lithium
manganese oxide (LiMn
O4 spinel, or Li2MnO3-based lithium rich layered materials, LMR-
2
NMC), and lithium nickel manganese cobalt oxide (LiNiMnCoO
2 or NMC) may offer longer lives and may have better rate capability.
NMC and its derivatives are widely used in the electrification of
transport, one of the main technologies (combined with renewable
energy) for reducing greenhouse gas emissions from vehicles.[13][14]
M. Stanley Whittingham discovered the concept
of intercalation electrodes in the 1970s and created the first rechargeable
lithium-ion battery, which was based on a titanium disulfide cathode and
a lithium-aluminum anode, although it suffered from safety issues and
was never commercialized.[15] John Goodenough expanded on this work
in 1980 by using lithium cobalt oxide as a cathode.[16] The first prototype
Department of ECE (BITS) Page 17
ROBOTIC ARM USING ESP32
of the modern Li-ion battery, which uses a carbonaceous anode rather
than lithium metal, was developed by Akira Yoshino in 1985, which was
commercialized by a Sony and Asahi Kasei team led by Yoshio Nishi in
1991.[17]
Lithium-ion batteries can be a safety hazard if not properly engineered
and manufactured since cells have flammable electrolytes and if
damaged or incorrectly charged, can lead to explosions and fires. Much
development has made progress in manufacturing safe Lithium-ion
batteries batteries.[18] Lithium Ion All Solid State Batteries are being
developed to eliminate the flammable electrolyte. Improperly recycled
batteries can create toxic waste, especially from toxic metals and are at
risk of fire. Moreover, both lithium and other key strategic minerals used
in batteries have significant issues at extraction, with lithium being water
intensive in often arid regions and other minerals often being conflict
minerals such as cobalt. Both environmental issues have encouraged
some researchers to improve mineral efficiency and alternatives such
as iron-air batteries.
Research areas for lithium-ion batteries include extending lifetime,
increasing energy density, improving safety, reducing cost, and
increasing charging speed,[19][20] among others. Research has been under
way in the area of non-flammable electrolytes as a pathway to increased
safety based on the flammability and volatility of the organic solvents
Department of ECE (BITS) Page 18
ROBOTIC ARM USING ESP32
used in the typical electrolyte. Strategies include aqueous lithium-ion
batteries, ceramic solid electrolytes, polymer electrolytes, ionic liquids,
and heavily fluorinated systems
History
Research on rechargeable Li-ion batteries dates to the 1960s; one of the
earliest examples is a CuF
/Li battery developed by NASA in 1965. The breakthrough that
2
produced the earliest form of the modern Li-ion battery was made by
British chemist M. Stanley Whittingham in 1974, who first
used titanium disulfide (TiS
) as a cathode material, which has a layered structure that can take in
2
lithium ions without significant changes to its crystal
structure. Exxon tried to commercialize this battery in the late 1970s, but
found the synthesis expensive and complex, as TiS
2 is sensitive to moisture and releases toxic H
S gas on contact with water. More prohibitively, the batteries were also
2
prone to spontaneously catch fire due to the presence of metallic lithium
in the cells. For this, and other reasons, Exxon discontinued
development of Whittingham's lithium-titanium disulfide battery.[25]
In 1980 working in separate groups Ned A. Godshall et al., [26][27][28] and,
shortly thereafter, Koichi Mizushima and John B. Goodenough, after
Department of ECE (BITS) Page 19
ROBOTIC ARM USING ESP32
testing a range of alternative materials, replaced TiS
2 with lithium cobalt oxide (LiCoO
, or LCO), which has a similar layered structure but offers a higher
2
voltage and is much more stable in air. This material would later be used
in the first commercial Li-ion battery, although it did not, on its own,
resolve the persistent issue of flammability.[25] The same year, Rachid
Yazami demonstrated the reversible electrochemical intercalation of
lithium in graphite,[29][30] and invented the lithium graphite electrode
(anode).[31][32]
These early attempts to develop rechargeable Li-ion batteries used
lithium metal anodes, which were ultimately abandoned due to safety
concerns, as lithium metal is unstable and prone to dendrite formation,
which can cause short-circuiting. The eventual solution was to use an
intercalation anode, similar to that used for the cathode, which prevents
the formation of lithium metal during battery charging. A variety of
anode materials were studied; in 1987, Akira Yoshino patented what
would become the first commercial lithium-ion battery using an anode
of "soft carbon" (a charcoal-like material) along with Goodenough's
previously reported LCO cathode and a carbonate ester-based
electrolyte. In 1991, using Yoshino's design, Sony began producing and
selling the world's first rechargeable lithium-ion batteries. The following
Department of ECE (BITS) Page 20
ROBOTIC ARM USING ESP32
year, a joint venture between Toshiba and Asashi Kasei Co. also
released their lithium-ion battery.[25]
Significant improvements in energy density were achieved in the 1990s
by replacing the soft carbon anode first with hard carbon and later with
graphite, a concept originally proposed by Jürgen Otto Besenhard in
1974 but considered unfeasible due to unresolved incompatibilities with
the electrolytes then in use.[25][33][34]
In 2012 John B. Goodenough, Rachid Yazami and Akira Yoshino
received the 2012 IEEE Medal for Environmental and Safety
Technologies for developing the lithium-ion battery; Goodenough,
Whittingham, and Yoshino were awarded the 2019 Nobel Prize in
Chemistry "for the development of lithium-ion batteries".
In 2010, global lithium-ion battery production capacity was 20 gigawatt-
hours.[35] By 2016, it was 28 GWh, with 16.4 GWh in China. [36] Global
production capacity was 767 GWh in 2020, with China accounting for
75%.[37] Production in 2021 is estimated by various sources to be
between 200 and 600 GWh, and predictions for 2023 range from 400 to
1,100 GWh.[38]
Design
Department of ECE (BITS) Page 21
ROBOTIC ARM USING ESP32
Cylindrical Panasonic 18650 lithium-ion cell before closing.
Lithium-ion battery monitoring electronics (over-charge and deep-
discharge protection)
An 18650 size lithium ion cell, with an alkaline AA for scale. 18650 are
Department of ECE (BITS) Page 22
ROBOTIC ARM USING ESP32
used for example in notebooks or EVs
Generally, the negative electrode of a conventional lithium-ion cell
is graphite made from carbon. The positive electrode is typically a
metal oxide. The electrolyte is a lithium salt in an organic solvent.[39] The
anode and cathode are prevented from shorting by a separator.[40] The
electrochemical roles of the electrodes reverse between anode and
cathode, depending on the direction of current flow through the cell.
The most common commercially used anode (negative electrode)
is graphite, which in its fully lithiated state of LiC 6 correlates to a
maximal capacity of 1339 C/g (372 mAh/g). [41] The positive electrode is
generally one of three materials: a layered oxide (such as lithium cobalt
oxide), a polyanion (such as lithium iron phosphate) or a spinel (such as
lithium manganese oxide).[42] More experimental materials
include graphene-containing electrodes, although these remain far from
commercially viable due to their high cost.[43]
Lithium reacts vigorously with water to form lithium hydroxide (LiOH)
and hydrogen gas. Thus, a non-aqueous electrolyte is typically used, and
a sealed container rigidly excludes moisture from the battery pack. The
non-aqueous electrolyte is typically a mixture of organic carbonates such
as ethylene carbonate and propylene carbonate containing complexes of
lithium ions.[44] Ethylene carbonate is essential for making solid
Department of ECE (BITS) Page 23
ROBOTIC ARM USING ESP32
electrolyte interphase on the negative carbon anode, but since it is solid
at room temperature, a propylene carbonate solvent is added.
The electrolyte salt is almost always lithium hexafluorophosphate (LiPF
), which combines good ionic conductivity with chemical and
6
electrochemical stability. Hexafluorophosphate is essential for
passivating the aluminum current collector, used for the positive
electrode (cathode). Titanium tab is ultrasonically welded to the
aluminum current collector. Other salts like lithium perchlorate (LiClO
), lithium
4 tetrafluoroborate (LiBF
),
4 and lithium bis(trifluoromethanesulfonyl)imide (LiC
F NO4S
2 6
) are frequently used in research in tab-less coin cells, but are not usable
2
in larger format cells.,[45] often because they are not compatible with the
aluminum current collector. Copper current collector (with a spot-
welded nickel tab) is used as the anode (negative) current collector.
Current collector design and surface treatments may take various forms:
foil, mesh, foam(dealloyed), etched(wholly or selectively), and
coated(with various materials)to improve electrical characteristics.[46]
Depending on materials choices, the voltage, energy density, life, and
safety of a lithium-ion cell can change dramatically. Current effort has
been exploring the use of novel architectures using nanotechnology to
Department of ECE (BITS) Page 24
ROBOTIC ARM USING ESP32
improve performance. Areas of interest include nano-scale electrode
materials and alternative electrode structures.[47]
The increasing demand for batteries has led vendors and academics to
focus on improving the energy density, operating temperature, safety,
durability, charging time, output power, elimination of cobalt
requirements,[48][49] and cost of lithium-ion battery technology.
Electrochemistry
The reactants in the electrochemical reactions in a lithium-ion cell are
materials of anode and cathode, both of which are compounds
containing lithium atoms. During discharge, an oxidation half-reaction at
the anode produces positively charged lithium ions and negatively
charged electrons. The oxidation half-reaction may also produce
uncharged material that remains at the anode. Lithium ions move
through the electrolyte, electrons move through the external circuit, and
then they recombine at the cathode (together with the cathode material)
in a reduction half-reaction. The electrolyte and external circuit provide
conductive media for lithium ions and electrons, respectively, but do not
partake in the electrochemical reaction. During discharge, electrons flow
from the negative electrode (anode) towards the positive electrode
(cathode) through the external circuit. The reactions during discharge
lower the chemical potential of the cell, so discharging
transfers energy from the cell to wherever the electric current dissipates
Department of ECE (BITS) Page 25
ROBOTIC ARM USING ESP32
its energy, mostly in the external circuit. During charging these reactions
and transports go in the opposite direction: electrons move from the
positive electrode to the negative electrode through the external circuit.
To charge the cell the external circuit has to provide electric energy.
This energy is then stored as chemical energy in the cell (with some loss,
e. g. due to coulombic efficiency lower than 1).
Both electrodes allow lithium ions to move in and out of their structures
with a process called insertion (intercalation)
or extraction (deintercalation), respectively.
As the lithium ions "rock" back and forth between the two electrodes,
these batteries are also known as "rocking-chair batteries" or "swing
batteries" (a term given by some European industries).
The following equations exemplify the chemistry.
The positive electrode (cathode) half-reaction in the lithium-doped
cobalt oxide substrate is[52][53]
The negative electrode (anode) half-reaction for the graphite is
The full reaction (left to right: discharging, right to left: charging) being
The overall reaction has its limits. Overdischarging
supersaturates lithium cobalt oxide, leading to the production of lithium
oxide,[54] possibly by the following irreversible reaction:Overcharging up
Department of ECE (BITS) Page 26
ROBOTIC ARM USING ESP32
to 5.2 volts leads to the synthesis of cobalt (IV) oxide, as evidenced
by x-ray diffraction:[55]
In a lithium-ion cell, the lithium ions are transported to and from
the positive or negative electrodes by oxidizing the transition metal,
cobalt (Co), in Li
1-xCoO2 from Co3+ to Co4+ during charge, and reducing from Co4+
to Co3+ during discharge. The cobalt electrode reaction is only reversible
for x < 0.5 (x in mole units), limiting the depth of discharge allowable.
This chemistry was used in the Li-ion cells developed by Sony in 1990.
[56]
The cell's energy is equal to the voltage times the charge. Each
gram of lithium represents Faraday's constant/6.941, or 13,901
coulombs. At 3 V, this gives 41.7 kJ per gram of lithium, or 11.6 kWh
per kilogram of lithium. This is a bit more than the heat of combustion
of gasoline but does not consider the other materials that go into a
lithium battery and that make lithium batteries many times heavier per
unit of energy.
The cell voltages given in the Electrochemistry section are larger
than the potential at which aqueous solutions will electrolyze.
Liquid electrolytes in lithium-ion batteries consist of lithium salts,
such as LiPF
Department of ECE (BITS) Page 27
ROBOTIC ARM USING ESP32
, LiBF4 or LiClO4 in
6 an organic solvent, such as ethylene
carbonate, dimethyl carbonate, and diethyl carbonate.[57] A liquid
electrolyte acts as a conductive pathway for the movement of cations
passing from the negative to the positive electrodes during discharge.
Typical conductivities of liquid electrolyte at room temperature (20 °C
(68 °F)) are in the range of 10 mS/cm, increasing by approximately 30–
40% at 40 °C (104 °F) and decreasing slightly at 0 °C (32 °F).[58] The
combination of linear and cyclic carbonates (e.g., ethylene
carbonate (EC) and dimethyl carbonate (DMC)) offers high conductivity
and solid electrolyte interphase (SEI)-forming ability. Organic solvents
easily decompose on the negative electrodes during charge. When
appropriate organic solvents are used as the electrolyte, the solvent
decomposes on initial charging and forms a solid layer called the solid
electrolyte interphase,[59] which is electrically insulating, yet provides
significant ionic conductivity. The interphase prevents further
decomposition of the electrolyte after the second charge. For
example, ethylene carbonate is decomposed at a relatively high voltage,
0.7 V vs. lithium, and forms a dense and stable interface. [60] Composite
electrolytes based on POE (poly(oxyethylene)) provide a relatively
stable interface.[61][62] It can be either solid (high molecular weight) and
be applied in dry Li-polymer cells, or liquid (low molecular weight) and
be applied in regular Li-ion cells. Room-temperature ionic
Department of ECE (BITS) Page 28
ROBOTIC ARM USING ESP32
liquids (RTILs) are another approach to limiting the flammability and
volatility of organic electrolytes.[63]
Recent advances in battery technology involve using a solid as the
electrolyte material. The most promising of these are ceramics. [64] Solid
ceramic electrolytes are mostly lithium metal oxides, which allow
lithium-ion transport through the solid more readily due to the intrinsic
lithium. The main benefit of solid electrolytes is that there is no risk of
leaks, which is a serious safety issue for batteries with liquid
electrolytes.[65] Solid ceramic electrolytes can be further broken down
into two main categories: ceramic and glassy. Ceramic solid electrolytes
are highly ordered compounds with crystal structures that usually have
ion transport channels.[66] Common ceramic electrolytes are
lithium super ion conductors (LISICON) and perovskites. Glassy solid
electrolytes are amorphous atomic structures made up of similar
elements to ceramic solid electrolytes but have
higher conductivities overall due to higher conductivity at grain
boundaries.[67] Both glassy and ceramic electrolytes can be made more
ionically conductive by substituting sulfur for oxygen. The larger radius
of sulfur and its higher ability to be polarized allow higher conductivity
of lithium. This contributes to conductivities of solid electrolytes are
nearing parity with their liquid counterparts, with most on the order of
0.1 mS/cm and the best at 10 mS/cm.[68] An efficient and economic way
Department of ECE (BITS) Page 29
ROBOTIC ARM USING ESP32
to tune targeted electrolytes properties is by adding a third component in
small concentrations, known as an additive.[69] By adding the additive in
small amounts, the bulk properties of the electrolyte system will not be
affected whilst the targeted property can be significantly improved. The
numerous additives that have been tested can be divided into the
following three distinct categories: (1) those used for SEI chemistry
modifications; (2) those used for enhancing the ion conduction
properties; (3) those used for improving the safety of the cell (e.g.
prevent overcharging).[citation needed]
[Link] and discharging
During discharge, lithium ions (Li+
) carry the current within the battery cell from the negative to the
positive electrode, through the non-aqueous electrolyte and separator
diaphragm.[70]
During charging, an external electrical power source (the charging
circuit) applies an over-voltage (a higher voltage than the battery
produces, of the same polarity), forcing a charging current to
flow within each cell from the positive to the negative electrode, i.e., in
the reverse direction of a discharge current under normal conditions. The
lithium ions then migrate from the positive to the negative electrode,
where they become embedded in the porous electrode material in a
process known as intercalation.
Department of ECE (BITS) Page 30
ROBOTIC ARM USING ESP32
Energy losses arising from electrical contact resistance at
interfaces between electrode layers and at contacts with current
collectors can be as high as 20% of the entire energy flow of batteries
under typical operating conditions.[71]
The charging procedures for single Li-ion cells, and complete Li-
ion batteries, are slightly different:
A single Li-ion cell is charged in two stages:[72][73][74][unreliable source?]
Constant current (CC)
Constant voltage (CV)
A Li-ion battery (a set of Li-ion cells in series) is charged in three
stages:
Constant current
Balance (only required when cell groups become unbalanced
during use)
Constant voltage
During the constant current phase, the charger applies a constant
current to the battery at a steadily increasing voltage, until the top-of-
charge voltage limit per cell is reached.
During the balance phase, the charger/battery reduces the charging
current (or cycles the charging on and off to reduce the average current)
while the state of charge of individual cells is brought to the same level
Department of ECE (BITS) Page 31
ROBOTIC ARM USING ESP32
by a balancing circuit, until the battery is balanced. Balancing typically
occurs whenever one or more cells reach their top-of-charge voltage
before the other(s), as it is generally inaccurate to do so at other stages of
the charge cycle. This is most commonly done by passive balancing,
which dissipates excess charge via resistors connected momentarily
across the cell(s) to be balanced. Active balancing is less common, more
expensive, but more efficient, returning excess energy to other cells (or
the entire pack) through the means of a DC-DC converter or other
circuitry. Some fast chargers skip this stage. Some chargers accomplish
the balance by charging each cell independently. This is often performed
by the battery protection circuit/battery management system (BPC or
BMS) and not the charger (which typically provides only the bulk
charge current, and does not interact with the pack at the cell-group
level), e.g., e-bike and hoverboard chargers. In this method, the
BPC/BMS will request a lower charge current (such as EV batteries), or
will shut-off the charging input (typical in portable electronics) through
the use of transistor circuitry while balancing is in effect (to prevent
over-charging cells). Balancing most often occurs during the constant
voltage stage of charging, switching between charge modes until
complete. The pack is usually fully-charged only when balancing is
complete, as even a single cell group lower in charge than the rest will
limit the entire battery's usable capacity to that of its own. Balancing can
Department of ECE (BITS) Page 32
ROBOTIC ARM USING ESP32
last hours or even days, depending on the magnitude of imbalance in the
battery.
During the constant voltage phase, the charger applies a voltage
equal to the maximum cell voltage times the number of cells in series to
the battery, as the current gradually declines towards 0, until the current
is below a set threshold of about 3% of initial constant charge current.
Periodic topping charge about once per 500 hours. Top charging is
recommended to be initiated when voltage goes below 4.05 V/cell.
[dubious – discuss]
Failure to follow current and voltage limitations can result in an
explosion.[75][76]
Charging temperature limits for Li-ion are stricter than the
operating limits. Lithium-ion chemistry performs well at elevated
temperatures but prolonged exposure to heat reduces battery life. Li-ion
batteries offer good charging performance at cooler temperatures and
may even allow "fast-charging" within a temperature range of 5 to 45 °C
(41 to 113 °F).[77][better source needed] Charging should be performed within this
temperature range. At temperatures from 0 to 5 °C charging is possible,
but the charge current should be reduced. During a low-temperature
charge, the slight temperature rise above ambient due to the internal cell
resistance is beneficial. High temperatures during charging may lead to
Department of ECE (BITS) Page 33
ROBOTIC ARM USING ESP32
battery degradation and charging at temperatures above 45 °C will
degrade battery performance, whereas at lower temperatures the internal
resistance of the battery may increase, resulting in slower charging and
thus longer charging times.[77][better source needed] Consumer-grade lithium-ion
batteries should not be charged at temperatures below 0 °C (32 °F).
Although a battery pack[78] may appear to be charging normally,
electroplating of metallic lithium can occur at the negative electrode
during a subfreezing charge, and may not be removable even by
repeated cycling. Most devices equipped with Li-ion batteries do not
allow charging outside of 0–45 °C for safety reasons, except for mobile
phones that may allow some degree of charging when they detect an
emergency call in progress.[79]
A lithium-ion battery from a laptop computer (176 kJ)
Batteries gradually self-discharge even if not connected and
delivering current. Li-ion rechargeable batteries have a self-
discharge rate typically stated by manufacturers to be 1.5–2% per
month.
Department of ECE (BITS) Page 34
ROBOTIC ARM USING ESP32
The rate increases with temperature and state of charge. A 2004
study found that for most cycling conditions self-discharge was
primarily time-dependent; however, after several months of stand on
open circuit or float charge, state-of-charge dependent losses became
significant. The self-discharge rate did not increase monotonically with
state-of-charge, but dropped somewhat at intermediate states of charge.
[82]
Self-discharge rates may increase as batteries age.[83] In 1999, self-
discharge per month was measured at 8% at 21 °C, 15% at 40 °C, 31%
at 60 °C.[84] By 2007, monthly self-discharge rate was estimated at 2% to
3%,[85] and 2[7]–3% by 2016.[86]
By comparison, the self-discharge rate for NiMH
batteries dropped, as of 2017, from up to 30% per month for previously
common cells[87] to about 0.08–0.33% per month for low self-discharge
NiMH batteries,[88] and is about 10% per month in NiCd batteries.[citation
needed]
Cathode
Cathode materials are generally constructed from LiCoO
2 or LiMn2O4. The cobalt-based material develops a pseudo tetrahedral
structure that allows for two-dimensional lithium-ion diffusion. [89] The
cobalt-based cathodes are ideal due to their high theoretical specific heat
capacity, high volumetric capacity, low self-discharge, high discharge
voltage, and good cycling performance. Limitations include the high
Department of ECE (BITS) Page 35
ROBOTIC ARM USING ESP32
cost of the material, and low thermal stability.[90] The manganese-based
materials adopt a cubic crystal lattice system, which allows for three-
dimensional lithium-ion diffusion.[89] Manganese cathodes are attractive
because manganese is cheaper and because it could theoretically be used
to make a more efficient, longer-lasting battery if its limitations could be
overcome. Limitations include the tendency for manganese to dissolve
into the electrolyte during cycling leading to poor cycling stability for
the cathode.[90] Cobalt-based cathodes are the most common, however
other materials are being researched with the goal of lowering costs and
improving cell life.[91]
As of 2017, LiFePO
4 is a candidate for large-scale production of lithium-ion batteries such as
electric vehicle applications due to its low cost, excellent safety, and
high cycle durability. For example, Sony Fortelion batteries have
retained 74% of their capacity after 8000 cycles with 100% discharge.
[92]
A carbon conductive agent is required to overcome its low electrical
conductivity.[93]
It is worth mentioning so-called "lithium-rich" cathodes, that can
be produced from thraditional NCM layered cathode materials upon
cycling them to voltages/charges higher than those corresponding to
Li:M=1. Under such conditions a new semi-reversible redox transition at
a higher voltage with ca. 0.4-0.8 electrons/metal site charge appears.
Department of ECE (BITS) Page 36
ROBOTIC ARM USING ESP32
This transition involves non-binding electron orbitals centered mostly on
O atoms. Despite significant initial interest, this phenomenon did not
result in marketable products because of a fast structural degradation
(O2 evolution and lattice rearrangements) of such "lithium-rich" phases.
Department of ECE (BITS) Page 37
ROBOTIC ARM USING ESP32
[Link] IDE
The Arduino IDE is an open-source software, which is used to write and
upload code to the Arduino boards. The IDE application is suitable for
different operating systems such as Windows, Mac OS X, and Linux.
It supports the programming languages C and C++. Here, IDE stands
for Integrated Development Environment.
The program or code written in the Arduino IDE is often called as
sketching. We need to connect the Genuino and Arduino board with the
IDE to upload the sketch written in the Arduino IDE software. The
sketch is saved with the extension '.ino.'
The Arduino IDE will appear as:
Department of ECE (BITS) Page 38
ROBOTIC ARM USING ESP32
Let's discuss each section of the Arduino IDE display in detail.
Advertisement
Toolbar Button
The icons displayed on the toolbar are New, Open, Save,
Upload, and Verify.
It is shown below:
Department of ECE (BITS) Page 39
ROBOTIC ARM USING ESP32
Upload
The Upload button compiles and runs our code written on the screen. It
further uploads the code to the connected board. Before uploading the
sketch, we need to make sure that the correct board and ports are
selected.
We also need a USB connection to connect the board and the computer.
Once all the above measures are done, click on the Upload button
present on the toolbar.
The latest Arduino boards can be reset automatically before beginning
with Upload. In the older boards, we need to press the Reset button
present on it. As soon as the uploading is done successfully, we can
notice the blink of the Tx and Rx LED.
If the uploading is failed, it will display the message in the error
window.
Advertisement
We do not require any additional hardware to upload our sketch using
the Arduino Bootloader. A Bootloader is defined as a small program,
Department of ECE (BITS) Page 40
ROBOTIC ARM USING ESP32
which is loaded in the microcontroller present on the board. The LED
will blink on PIN 13.
Open
The Open button is used to open the already created file. The selected
file will be opened in the current window.
Save
The save button is used to save the current sketch or code.
New
It is used to create a new sketch or opens a new window.
Verify
The Verify button is used to check the compilation error of the sketch or
the written code.
Serial Monitor
The serial monitor button is present on the right corner of the toolbar. It
opens the serial monitor.
It is shown below:
Advertisement
When we connect the serial monitor, the board will reset on the
operating system Windows, Linux, and Mac OS X. If we want to
process the control characters in our sketch, we need to use an external
Department of ECE (BITS) Page 41
ROBOTIC ARM USING ESP32
terminal program. The terminal program should be connected to the
COM port, which will be assigned when we connect the board to the
computer.
Menu Bar
o File
When we click on the File button on the Menu bar, a drop-down list will
appear. It is shown below:
Let's discuss each option in detail.
Advertisement
New
The New button opens the new window. It does not remove the sketch
which is already present.
Department of ECE (BITS) Page 42
ROBOTIC ARM USING ESP32
Advertisement
Open
It allows opening the sketch, which can be browsed from the folders and
computer drivers.
Open Recent
The Open Recent button contains the list of the recent sketches.
Sketchbook
It stores the current sketches created in the Arduino IDE software. It
opens the selected sketch or code in a new editor at an instance.
Examples
It shows the different examples of small projects for a better
understanding of the IDE and the board. The IDE provides examples of
self-practice.
Close
The Close button closes the window from which the button is clicked.
Save
The save button is used to save the current sketch. It also saves the
changes made to the current sketch. If we have not specified the name of
the file, it will open the 'Save As...' window.
Save As...
Advertisement
Department of ECE (BITS) Page 43
ROBOTIC ARM USING ESP32
We can save the sketch with a different name using the 'Save
As...' button. We can also change the name accordingly.
Page Setup
It allows setting the page margins, orientation, and size for printing. The
'Page Setup' window will appear as:
Print
According to the settings specified in the 'Page Setup', it prepares the
current sketch for printing.
Preferences
It allows the customization settings of the Arduino IDE.
Department of ECE (BITS) Page 44
ROBOTIC ARM USING ESP32
Quit
The Quit button is used to close all the IDE windows. The same closed
sketch will be reopened when we will open the Arduino IDE.
o Edit
When we click on the Edit button on the Menu bar, a drop-down list
appears. It is shown below:
Let's discuss each option in detail.
Undo
The Undo button is used to reverse the last modification done to the
sketch while editing.
Department of ECE (BITS) Page 45
ROBOTIC ARM USING ESP32
Redo
The Redo button is used to repeat the last modification done to the
sketch while editing.
Cut
It allows us to remove the selected text from the written code. The text is
further placed to the clipboard. We can also paste that text anywhere in
our sketch.
Copy
It creates a duplicate copy of the selected text. The text is further placed
on the clipboard.
Copy for Forum
The 'Copy for Forum' button is used to copy the selected text to the
clipboard, which is also suitable for posting to the forum.
Copy as HTML
The 'Copy for Forum' button is used to copy the selected text as HTML
to the clipboard. It is desirable for embedding in web pages.
Paste
The Paste button is used to paste the selected text of the clipboard to the
specified position of the cursor.
Advertisement
Select All
Department of ECE (BITS) Page 46
ROBOTIC ARM USING ESP32
It selects all the text of the sketch.
Go to line...
It moves the cursor to the specified line number.
The window will appear as:
Comment/Decomment
The Comment/ Decomment button is used to put or remove the
comment mark (//) at the beginning of the specified line.
Increase Indent
It is used to add the space at the starting of the specified line. The
spacing moves the text towards the right.
Decrease Indent
It is used to subtract or remove the space at the starting of the specified
line. The spacing moves the text towards the left.
Increase Font Size
It increases the font size of the written text.
Decrease Font Size
It decreases the font size of the written text.
Find...
Department of ECE (BITS) Page 47
ROBOTIC ARM USING ESP32
It is used to find the specified text. We can also replace the text. It
highlights the text in the sketch.
The window will appear as:
Find Next
It highlights the next word, which has specified in the 'Find...' window.
If there is no such word, it will not show any highlighted text.
Find Previous
It highlights the previous word, which has specified in the
'Find...' window. If there is no such word, it will not show any
highlighted text.
o Sketch
When we click on the Sketch button on the Menu bar, a drop-down list
appears. It is shown below:
Department of ECE (BITS) Page 48
ROBOTIC ARM USING ESP32
Let's discuss each option in detail.
Verify/Compile
It will check for the errors in the code while compiling. The memory in
the console area is also reported by the IDE.
Upload
The Upload button is used to configure the code to the specified board
through the port.
Upload Using Programmer
It is used to override the Bootloader that is present on the board. We can
utilize the full capacity of the Flash memory using the 'Upload Using
Programmer' option. To implement this, we need to restore the
Bootloader using the Tools-> Burn Bootloader option to upload it to
the USB serial port.
Export compiled Binary
It allows saving a .hex file and can be kept archived. Using other
tools, .hex file can also be sent to the board.
Department of ECE (BITS) Page 49
ROBOTIC ARM USING ESP32
Show Sketch Folder
It opens the folder of the current code written or sketch.
Include Library
Include Library includes various Arduino libraries. The libraries are
inserted into our code at the beginning of the code starting with the #.
We can also import the libraries from .zip file.
Add File...
The Add File... button is used to add the created file in a new tab on the
existing file.
For example, let's add 'Blink' file to the 'Javatpoint' file. The tab will
now appear as:
We can also delete the corresponding file from the tab by clicking on
the small triangle -> Delete option.
Tools
When we click on the Tools button on the Menu bar, a drop-down list
appears. It is shown below:
Department of ECE (BITS) Page 50
ROBOTIC ARM USING ESP32
Let's discuss each option in detail.
Auto Format
The Auto Format button is used to format the written code. For example,
lining the open and closed curly brackets in the code.
Archive Sketch
The copy of the current sketch or code is archived in the .zip format. The
directory of the archived is same as the sketch.
Fix Encoding and Reload
This button is used to fix the inconsistency between the operating system
char maps and editor char map encoding.
Manage Libraries...
It shows the updated list of all the installed libraries. We can also use
Department of ECE (BITS) Page 51
ROBOTIC ARM USING ESP32
this option to install a new library into the Arduino IDE.
Serial Monitor
It allows the exchange of data with the connected board on the port.
Serial Plotter
The Serial Plotter button is used to display the serial data in a plot. It
comes preinstalled in the Arduino IDE.
WiFi101/WiFiNINA Firmware Updater
It is used to check and update the Wi-Fi Firmware of the connected
board.
Board
We are required to select the board from the list of boards. The selected
board must be similar to the board connected to the computer.
Processor
It displays the processor according to the selected board. It refreshes
every time during the selection of the board.
Port
It consists of the virtual and real serial devices present on our machine.
Get Board Info
It gives the information about the selected board. We need to select the
appropriate port before getting information about the board.
Programmer
Department of ECE (BITS) Page 52
ROBOTIC ARM USING ESP32
We need to select the hardware programmer while programming the
board. It is required when we are not using the onboard USB serial
connection. It is also required during the burning of the Bootloader.
Burn Bootloader
The Bootloader is present on the board onto the microcontroller. The
option is useful when we have purchased the microcontroller without the
bootloader. Before burning the bootloader, we need to make sure about
the correct selected board and port.
Help
When we click on the Help button on the Menu bar, a drop-down list
will appear. It is shown below:
The Help section includes several documents that are easy to access,
which comes along with the Arduino IDE. It consists of the number of
options such as Getting Started, Environment, Troubleshooting,
Reference, etc. We can also consider the image shown above, which
includes all the options under the Help section.
Department of ECE (BITS) Page 53
ROBOTIC ARM USING ESP32
15. Circuit Connections
Wiring Diagram
1. ESP32 to Motor Drivers:
o Connect GPIO pins 14 and 27 to Motor Driver 1 (for robotic
arm).
o Connect GPIO pins 25 and 26 to Motor Driver 2 (for car).
2. Motor Drivers to Motors:
o Connect Motor Driver 1 outputs to the 2 motors of the
robotic arm.
o Connect Motor Driver 2 outputs to the 2 motors of the car.
3. Power Connections:
o Connect the 12V power supply to the motor drivers.
o Use a 5V regulator to power the ESP32.
4. Ground Connections:
o Ensure all components share a common ground.
Pin Configurations
Department of ECE (BITS) Page 54
ROBOTIC ARM USING ESP32
ESP32 Pins:
o Motor 1 (Robotic Arm): GPIO 14 (Pin1), GPIO 27 (Pin2)
o Motor 2 (Car): GPIO 25 (Pin1), GPIO 26 (Pin2)
Power Requirements
Ensure the power supply matches the motor voltage (12V) and the
ESP32 voltage (5V).
Troubleshooting Tips
Check for loose connections or incorrect wiring.
Ensure the power supply is stable and sufficient.
Verify Wi-Fi connectivity for Blynk IoT.
16. Software Implementation
Software Tools
Arduino IDE
Blynk IoT Platform
Libraries Used
Blynk Library
Wire Library
17. How to Upload the Code
Department of ECE (BITS) Page 55
ROBOTIC ARM USING ESP32
1. Install Arduino IDE: Download and install the Arduino IDE from
the official website.
2. Install ESP32 Board Package: Add the ESP32 board package to
the Arduino IDE.
3. Install Blynk Library: Add the Blynk library via the Arduino
Library Manager.
4. Connect ESP32: Connect the ESP32 to your computer via USB.
5. Upload Code:
o Open the Arduino IDE.
o Select the correct board (ESP32) and port.
o Compile and upload the code.
6. Observe Serial Monitor: Open the Serial Monitor to check for
errors or successful connection.
Common Errors
Incorrect board or port selection.
Wi-Fi credentials not matching.
Driver installation issues.
18. Existing System
Department of ECE (BITS) Page 56
ROBOTIC ARM USING ESP32
Traditional robotic arms and car control systems often rely on manual
operation or limited automation. These systems typically use wired
controllers or pre-programmed sequences, which lack flexibility and
remote control capabilities. For example, industrial robotic arms are
often stationary and require manual intervention for reprogramming.
Similarly, remote-controlled cars are limited by range and lack
integration with other systems.
These systems face limitations such as:
Lack of real-time remote control.
Limited adaptability to new tasks.
High costs and complexity.
The need for an improved solution is evident, as industries and
individuals increasingly demand smarter, more efficient automation
tools.
19. Proposed System
The proposed system integrates IoT technology to address the
limitations of traditional methods. Key features include:
Remote Control: Operate the robotic arm and car via the Blynk
app.
Real-Time Monitoring: Monitor system status in real-time.
Department of ECE (BITS) Page 57
ROBOTIC ARM USING ESP32
Cost-Effectiveness: Utilizes affordable components like ESP32
and DC motors.
Scalability: Easily adaptable for various applications.
Comparison with Traditional Methods
Efficiency: Faster and more precise control.
Flexibility: Remote operation eliminates the need for physical
presence.
Cost: Lower implementation costs compared to industrial systems.
Real-World Applications
Industrial automation (material handling, assembly).
Surveillance and security (remote-controlled cars).
Educational tools for robotics and IoT learning.
20. Future Scope
1. Integration with AI: Implement machine learning for autonomous
decision-making.
2. Cloud Integration: Store and analyze data for predictive
maintenance.
3. Enhanced Sensors: Add sensors for obstacle detection and
environmental monitoring.
Department of ECE (BITS) Page 58
ROBOTIC ARM USING ESP32
4. Scalability: Adapt the system for larger-scale industrial
applications.
5. Challenges: Address potential issues like latency and security in
IoT communication.
21. Conclusion
This project successfully demonstrates the integration of IoT technology
into a smart robotic arm and car system, offering a cost-effective and
efficient solution for automation. By leveraging Blynk IoT, the system
provides real-time remote control and monitoring, addressing the
limitations of traditional methods. Challenges such as hardware
compatibility and Wi-Fi connectivity were overcome during
development. The project has significant real-world implications, paving
the way for smarter automation solutions. Future work could focus on
AI integration and scalability, further enhancing the system’s
capabilities. This project serves as a foundation for innovative
applications in industrial, domestic, and educational settings.
Department of ECE (BITS) Page 59