Professional Documents
Culture Documents
Belagavi-590018
An internship report on
Bachelor of Engineering
In
Electronics and Communication Engineering
MANISH MAYANK
1EP19EC025
CERTIFICATE
This is to certify that the internship report entitled “Embedded Systems and IoT in UGV
Technology” is a bonafide work carried out by MANISH MAYANK bearing USN:
1EP19EC025 in partial fulfillment of the requirements for the seventh semester for the award
of degree of Bachelor of Engineering in Electronics and Communication Engineering of
Visvesvaraya Technological University, Belagavi, during the academic year 2022-2023. The
internship report has been approved as it satisfies the academic requirements prescribed by the
university.
Any achievement, be it scholastic or otherwise doesn’t depend solely on the individual efforts
but on the guidance, encouragement and cooperation of the intellectuals, elders and friends. I
would like to take this opportunity to thank them all.
First and foremost, I would like to thank Late Dr. S M Venkatapathi, chairman, East Point
Group of Institution, Bengaluru, for providing necessary infrastructure and creating a good
environment.
I express my gratitude to Dr. Yogesh G S, Principal, EPCET who has always been a great
source of inspiration.
I express our sincere regards and thanks to Dr. Yogesh G S, Head of the department, ECE,
EPCET.
I’m grateful to acknowledge the guidance and encouragement that has been given to me
Dr. Yogesh G S, Head of the department, ECE, EPCET, who has rendered valuable assistance.
I’m obliged to Dr. Sachin Sharma, Professor, and Dr. Harshavardhan Reddy K, Professor,
Department of ECE, Internship Coordinator, who have helped us in several ways to learn and
explore things by guiding us with all the required support.
I extend my sincere thanks to the department of ECE, EPCET, who have encouraged us
throughout the course. I also express my deep sense of obligation to my parents and God for
their consistent blessings and encouragement.
TABLE OF CONTENTS
1.1 History
1.2 Company Strategy
1.3 Company Services
1.4 Domains
1.5 Departments
3.1.5 Ports 13
3.1.7 USART 13
3.1.8 Features 14
3.2 NodeMCU V3 16
3.3 Power Supply 17
3.4 Relay 17
3.5 LM7805C Voltage Regulator 19
3.6 Crystal Oscillator 19
3.7 DC Motor 20
3.8 Bluetooth 21
3.9 Flame Sensor 22
3.10 IR Sensor 22
3.11 Air Quality Sensor 23
3.12 GPS Receiver 24
3.13 DHT11 24
3.14 GSM 25
3.15 16X2 LCD 26
4.3 Embedded C
OVERVIEW.................................................................................................65
—
EMBEDDED SYSTEM AND IOT
CHAPTER 1
ABOUT COMPANY
TAKE IT SMART (OPC) PVT.LTD is an Indian based engineering and Software Company
headquartered in Bangalore, Karnataka, India. It is both product and service oriented software
company. All offices employ an experienced team of professionals, with an outstanding track
record of handling complex web & Apps development projects.
1.1 HISTORY:
The company was legally registered in the year 2021, but it made its
humble beginning in the year 2018 with a team of two members.
TAKE IT SMART (OPC) PVT.LTD have its own services such as,
• Embedded Applications development
• Web design and development
• IT Service
• Android app Development
• Web Bases Software Solutions
• Web Based ERP
• Web Based Ads Mobile Based Services:
a) Mobile Web Apps
b) Android Apps
c) Windows Apps
d) IOS Apps
e) Cross Plate forms Apps
• Native Apps
• Hybrid apps get trained for industry requirements while you pursuing degree.
• The Different verticals that we operate in are:
(1) Internship
(2) Software Training
1.4 DOMAINS:
TAKE IT SMART (OPC) PVT.LTD have working with several domains like-
• IT
• Digital marketing
1.5 DEPARTMENTS:
14, SGN Arcade, 1st Floor, 2nd stage, 1st Main Rd,
Mobile: +91-8050104212
Email: info@takeitsmart.in
Website: www.takeitsmart.in
CHAPTER 2
INTRODUCTION
An IoT ecosystem consists of web-enabled smart devices that use embedded systems,
such as processors, sensors and communication hardware, to collect, send and act on data
they acquire from their environments. IoT devices share the sensor data they collect by
connecting to an IoT gateway or other edge device where data is either sent to the cloud to
be analysed or analyzed locally. Sometimes, these devices communicate with other related
devices and act on the information they get from one another. The devices do most of the
work without human intervention, although people can interact with the devices -- for
instance, to set them up, give them instructions or access the data.
CHAPTER 3
HARDWARE COMPONENTS
The hardware components used in our project is listed below.
1. ATmega48 microcontroller
2. Power Supply
3. Relay
4. LM7805cV (Regulator)
5. GPS
6. BLUETOOTH transceiver.
7. DC motor
8. Flame Sensor
9. GSM
10. MQ135
11. ADXL335
12. IR sensor
13. NodeMCU
combination of parallelism and performance. Thus the CPU uses the Harvard architecture
(separate memories and buses for program and data). The CPU also accommodates a 32
general purpose 8-bit registers.
3.1.1 Architecture:
The ATmega48/8 is a low-power CMOS 8-bit microcontroller based on the AVR enhanced
RISC architecture. By executing powerful instructions in a single clock cycle, the
ATmega88 achieves throughputs approaching 1 MIPS per MHz allowing the system
designer to optimize power consumption versus processing speed. The AVR core combines
a rich instruction set with 32 general purpose working registers. All the 32 registers are
directly connected to the Arithmetic Logic Unit (ALU), allowing two independent registers
to be accessed in one single instruction executed in one clock cycle. The resulting
architecture is more code efficient while achieving throughputs up to ten times faster than
conventional CISC microcontrollers. The architectural block diagram is as shown in fig
3.1.1.
This section discusses the AVR core architecture in general. The main function of the CPU
core is to ensure correct program execution. The CPU must therefore be able to access
memories, perform calculations, control peripherals, and handle interrupts.
3.1.5 Ports:
The ports of the AVR have read-modify-write functionality when used as general digital
I/O ports, as stated in the datasheet of the device. The ports are bi-directional I/O ports with
optional internal pull-ups. Each port pin mainly has three register bits which are DDxn,
PORTxn and PINxn. DDxn is the data direction bit and indicates input or output at a
particular pin of any port .If DDxn is set to one, the pin is used as output pin, else it is an
input pin. If PORTxn is written to a logic one, and if DDxn is set to zero that particular
pin’s internal pull up resistor is activated. The DDxn is accessed at the DDRx register, the
PORTxn is in the PORTx register and the PINxn is at the PINx register. Writing a logic
one to PINxn will toggle PORTxn. The alternate functions of the port pins and the port
registers are explained at the end as part of the datasheets. The pin value can be read at any
time through the PINxn register bit, irrespective of the DDxn pin setting.
3.1.7 USART:
A universal asynchronous receiver/transmitter (usually abbreviated UART and pronounced
is a type of "asynchronous receiver/transmitter", a piece of computer hardware that
translates data between parallel and serial forms. A UART is usually an individual (or part
of an) integrated circuit used for serial communications over a computer or peripheral
device serial port.
Serial transmission of digital information (bits) through a single wire or other medium is
much more cost effective than parallel transmission through multiple wires. A UART is
used to convert the transmitted information between its sequential and parallel form at each
end of the link. Each UART contains a shift register which is the fundamental method of
conversion between serial and parallel forms. The UART usually does not directly generate
or receive the external signals used between different items of equipment. Typically,
separate interface devices are used to convert the logic level signals of the UART to and
from the external signaling levels. Communication may be "full duplex" (both send and
receive at the same time) or "half duplex" (devices take turns transmitting and receiving).
3.1.8 Features:
• Asynchronous or Synchronous Operation
• Full Duplex Operation (Independent Serial Receive and Transmit Registers)
• Master or Slave Clocked Synchronous Operation
• High Resolution Baud Rate Generator
The best way to develop quickly an IoT application with less Integrated circuits to
add is to choose this circuit “NodeMCU”. Today, we will give a detailed Introduction on
NodeMCU V3. It is an open-source firmware and development kit that plays a vital role in
designing a proper IoT product using a few script lines as shown in fig 3.2.
The module is mainly based on ESP8266 that is a low-cost Wi-Fi microchip incorporating
both a full TCP/IP stack and microcontroller capability. It is introduced by manufacturer
Espressif Systems. The ESP8266 NodeMcu is a complex device, which combines some
features of the ordinary Arduino board with the possibility of connecting to the internet.
Arduino Modules and Microcontrollers have always been a great choice to incorporate
automation into the relevant project. But these modules come with a little drawback as they
don’t feature a built-in WiFi capability, subsequently, we need to add external WiFi
protocol into these devices to make them compatible with the internet channel.
This is the famous NodeMCU which is based on ESP8266 WiFi SoC. This is version 3 and
it is based on ESP-12E (An ESP8266 based WiFi module). NodeMCU is also an open-
source firmware and development kit that helps you to prototype your IOT product within
a few LUA script lines, and of course you can always program it with Arduino IDE.
▪ USB to UART converter is added on the module that helps in converting USB data to
UART data which mainly understands the language of serial communication.
▪ Instead of the regular USB port, MicroUSB port is included in the module that connects
it with the computer for dual purposes: programming and powering up the board.
▪ The board incorporates status LED that blinks and turns off immediately, giving you the
current status of the module if it is running properly when connected with the computer.
▪ The ability of module to establish a flawless WiFi connection between two channels
makes it an ideal choice for incorporating it with other embedded devices like Raspberry-
Pi.
There is a candid difference between Vin and VU where former is the regulated voltage
that may stand somewhere between 7 to 12V while later is the power voltage for USB that
must be kept around 5 V.
3.4 Relay :
Relay is an electrically operated switch. Relays allow one circuit to switch a second circuit
which can be completely separate from the first. Relays can switch AC and DC, transistors
can only switch DC. Relays can switch higher voltages than standard transistors. Relays
are often a better choice for switching large currents (> 5A). Relays can switch many
contacts at once as shown in fig 3.4.
A voltage regulator based on an active device (such as a bipolar junction transistor, field
effect transistor or vacuum tube) operating in its "linear region" and passive devices like
zener diodes operated in their breakdown region. The regulating device is made to act like
a variable resistor, continuously adjusting a voltage divider network to maintain a constant
output voltage as shown in fig 3.5.
3.7 DC Motor:
DC Motor – 30RPM – 12Volts geared motors are generally a simple DC motor with a
gearbox attached to it. This can be used in all-terrain robots and variety of robotic
applications. These motors have a 3 mm threaded drill hole in the middle of the shaft thus
making it simple to connect it to the wheels or any other mechanical assembly.
30 RPM 12V DC geared motors widely use for robotics applications. Very easy to use and
available in standard size. Also, you don’t have to spend a lot of money to control motors
with an Arduino or compatible board. The most popular L298N H-bridge module with
onboard voltage regulator motor driver can be used with this motor that has a voltage of
between 5 and 35V DC or you can choose the most precise motor diver module from the
wide range available in our Motor divers category as per your specific requirements as
shown in fig 3.7.
Nut and threads on the shaft to easily connect and internally threaded shaft for easily
connecting it to the wheel. DC Geared motors with robust metal gearbox for heavy-duty
applications, available in the wide RPM range and ideally suited for robotics and industrial
applications. Very easy to use and available in standard size. Nut and threads on the shaft
to easily connect and internally threaded shaft for easily connecting it to the wheel.
A sensor which is most sensitive to a normal light is known as a flame sensor. That’s why
this sensor module is used in flame alarms. This sensor detects flame otherwise wavelength
within the range of 760 nm – 1100 nm from the light source. This sensor can be easily
damaged to high temperature. So, this sensor can be placed at a certain distance from the
flame. The flame detection can be done from a 100cm distance and the detection angle will
be 600. The output of this sensor is an analog signal or digital signal. These sensors are
used in fire fighting robots like as a flame alarm as shown in fig 3.9.
3.10 IR Sensor:
A Passive Infrared sensor (PIR sensor) is an electronic device that measures infrared (IR)
light radiating from objects in its field of view. PIR sensors are often used in the
construction of PIR-based motion detectors. Apparent motion is detected when an infrared
source with one temperature, such as a human, passes in front of an infrared source with
another temperature, such as a wall as shown in fig 3.10.
MQ-2 gas sensor has high sensitivity to LPG, Propane and Hydrogen, also could be used to
Methane and other combustible steam, it is low cost and suitable for various applications. Using
high-quality dual-panel design, with a power indicator and TTL signal output instructions;
With a the DO switch signal (TTL) output, and AO analog signal output, TTL output valid
signal is low level, When the low level output signal lights, it can be connected directly to the
microcontroller or relay module as shown in fig 3.11.
3.13 DHT11:
The requirement of a sensor is to react for input physical property and convert it into an
electrical signal that is suitable with electronic circuits. Sensors are electronic devices that
measure a physical quality such as light or temperature and convert it to a voltage. There
are two types of sensors: digital and analog as shown in fig 3.13.
The output of digital sensor varies between 0 and 1 which can translate to sensors voltage
range. Analog sensor can output any value between its voltage ranges. According to the
reading from the sensor changes its output. Digital sensor output is ON often 5v, or OFF,
0v. Analog sensor is used to measure precise numerical information like temperature or
speed. Analog sensors can output almost an infinite range of values. Output pin of sensor
connected to input pinafore denim show the digital form is obtained by the conversion of
data. Some sensors have analog to digital converter embedded to the sensor so the data is
outputted as digital data. After data is processed to digital form, it can be processed on the
microcontroller.
3.14 GSM:
Full form of GSM is Global System for Mobile communication. GSM modem is a device
that is used for the communication. The GSM idea was firstly developed at Bell
Laboratories in 1970. Now, in the world the most widely used communication system is
GSM as shown in fig 3.14. The frequency bands that are used in open and digital cellular
technologies are 850MHz, 900MHz and 1800MHz
The GSM system was developed as a digital system for communication purpose by using
technique of time division multiple access (tdma). The GSM is used to digitise and reduce
the data then it will send reduced data Don 3 channel which in two different streams of
client data each one has its own particular time slot. The capability of digital system to
CHAPTER 4
SOFTWARE REQUIREMENTS
AVR microcontroller. The AVR microcontroller is based off an 8-bit RISC (Reduced
Instruction Set Computing) microcontroller. An AVR programmer allows the user to place
operating instructions on the microcontroller that tell it to perform a specific task. AVR
microcontrollers are often used in hardware development and robotics. An AVR
programmer is typically expensive compared to the price of the microcontroller itself and
can be purchased by itself or as a kit.
The AVR programmer puts code from the computer onto the AVR microcontroller. The
code is compiled on the computer into binary. This code is typically saved as a HEX file
and can then be uploaded onto the microcontroller. The AVR programmer is usually
plugged into the serial port of the computer, and a special program is required to get the
code from the computer to the microcontroller.
4.3 Embedded C:
Embedded C is extensive and contains many advanced concepts. The range of modules
covers a full introduction to C, real-time and embedded systems concepts through to the
design and implementation of real time embedded or standalone systems based on real-
time operating systems and their device drivers. Real time Linux (RTLinux) is used as an
example of such a system. The modules include an introduction to the development of
Linux device drivers. Embedded C covers all of the important features of the C language
as well as a good grounding in the principles and practices of real-time systems
development including the POSIX threads (pthreads) specification.
The design of the modules is intended to provide an excellent working knowledge of the C
language and its application to serious real time or embedded systems. Those wanting in-
depth training specifically on Linux kernel internals should contact us to discuss their
requirements; this set of modules is geared more towards providing the groundwork for
approaching those domains rather than as in-depth training on a specific approach.
Embedded C contains essential information for anyone developing embedded systems such
as microcontrollers, real-time control systems, mobile device, PDAs and similar
applications. This C course is based on many years of experience of teaching C, extensive
industrial programming experience and also participation in the ANSI X3J11 and BSI
standards bodies that produced the standard for C. We focus on the needs of day-to-day
users of the language with the emphasis being on practical use and delivery of reliable
software.
CHAPTER 5
I was interned at the Embedded Department where I was provided exposure to various
microcontroller boards that were available for development of various IOT application areas
like consumer, home automation, security, surveillance, health care, etc. The main agenda of
the department to bond the gap between the company and the students by providing them with
practical experience by considering the various constraints that comes into effect during the
physical implementation of a project.
The department where I was interned helped me bridge the gap between the industry and
academia by providing the complete experience to on board using the various microcontroller
boards like AVR microcontroller, NodeMCU Microcontroller etc.
The department has an Industry Excellence Experience Center to learn, innovate, and
prototype embedded designs on various Industry standard hardware and microcontroller
platforms. At the same time build a Rewarding Career to students in embedded Engineering
Domain. The Lab setup and training helped me to become a competent and productive Analog
and Digital design Engineers. The training enabled me to acquire knowledge, skills and
practical experience across the entire front end and backend Full Custom Flow (Circuit to tape-
out). The training covers key fundamental concepts of Physical Design methodology which
will enhance the employability of the students.
The Sessions, Lab exercises and Industry Standard Projects enabled me to get through
instills confidence and the analytical abilities required to work on complex industry’s
challenges in various Deep Sub-Micron Technology Process. Exposure to the use of Physical
Design tools familiarity with timing closure and related topics are covered.
PROJECT REPORT
General Introduction:
Our proposed project aims to develop an android controlled fire fighter robot that can be used
to extinguish fires through remote handling. The vehicle consists of a water tank along with a
pump which can throw water when needed. The system uses an 8051 microcontroller for this
purpose. The android device is used as a transmitter to send over controlling commands to the
vehicle. The android device provides a good touch based gui for controlling the robotic
vehicle.The Bluetooth receiver on the vehicle is used to receive those commands sent by the
android device. These are then fed to the motors responsible for controlling the vehicle
movements in front, back, left and right directions.
The Bluetooth receiver is interfaced with an atmega48 microcontroller for this purpose. The
microcontroller after receiving input commands, operates the motors through a driver IC for
vehicle movements.
The use of android has one more advantage in addition to improved GUI. It allows use of
Bluetooth technology for communication allowing the vehicle to operate in a good range from
the device. The system can also be later enhanced through the use of a wireless camera to be
used for monitoring purposes.
Statement of Study:
The purpose of research is to provide the robot’s simple hardware architecture but with
having powerful computational abilities and platforms so that robot’s designer can focus on
their research and tests instead of Bluetooth connection infrastructure. Motivate to work on
robot architecture and work on the Microcontroller chip which is integrated with the various
system on a single chip by the use of modern sensors we can embed the artificial intelligence
into the microcontroller chip to perform the desired operation in their respective fields. This
simple architecture is also useful for educational robotics because students can build their own
robots with low cost and use them as a platform for experiments in several courses. The
objective of our project is to replace complex hardware architecture networks with simpler
connectivity circuits so that designer can give major importance to build multiple, hazard
preventing capabilities on his/her robot.
An enormous amount of loss can be avoided if the fire is perceived at an early stage. Major
deprivation and absence of important assets can be avoided if the fire is detected right in time.
Robotics field has gained publicity due to their multiple adjustment capabilities. The robot
consists of a measuring device and fire extinguisher. The Infrared (heat) sensors will measure
acceptable distance and heat and will make the extinguisher to act according to the environment
it will perceive. We have used a virtual android app to control the movement of the robot. And
in which we use Bluetooth Module to provide communication between controller and android.
The controller can be interfaced to the Bluetooth module through UART protocol. Commands
sent from the android application provide controls to the primary & secondary actions of the
robot.
Review of Literature:
These Robots can be used to perform both automatic and Manual firefighting with the help of
android Bluetooth application and move towards the fire and spray water.
• Author Kristi Kosasih et al. [3] Has developed the intelligent firefighting tank robot.
Materials like acrylic, plastic, aluminium and iron are used to make the robot. The tank
robot is consisting of components like two servo motors, thermal array sensor, two DC
motors, flame detector, ultrasonic sensor, IR and photo transistors, sound activation
circuit and micro switch sensor. The goal of paper is search the prescribed area find the
fire and extinguish it. The robot is activated by using DTMF transmitter and receiver.
• Author Sahil .S.Shah et al. [4] Have developed the firefighting robot. The firefighting
robot is integrated with embedded system. Prototype system is designed to detect and
extinguish fire. It aims to reduce air pollution caused due to fire. The robot is designed
to detect fire in small floor plan. The task of extinguishing fire is divided into smaller
tasks. Each task is carried out in most appropriate way. The robot navigates in every
room step by step, finds the fire in a room, approaches fire from fixed distance and then
extinguishes fire.
• Authors Prof. Dr. S.N. Kini, Rutuja Wadekar, Shweta Khatade, Sayali Dugane and
Rutuja Jadkar [2] proposed a firefighting robot which included a project that aims to
METHODOLOGY
Software Process:
The software process is the set of activities and associated results, which produced a
software product.
Example: Waterfall process model, Spiral model and Evolutionary model.
The “Waterfall” process model has been followed for the development of this project. This
model is the one of the best process models. There are several variations of this model. This
process is best only when all the requirements are known in advance. This process is easy
to understand by system developers as well as users. And this process model is more visible,
as it produces deliverables at the end of end phase. Visibility is one of the process
characteristics that are looked for by project managers while selecting a process model for
any project.
Analysis
Design
Implementati
on
The waterfall process model has five phases. They are as given below.
1. Analysis:
The system’s services, constraints and goals are established by consultation with system
users.
2. Design:
The systems design process partitions the requirements to either hardware or software
systems. It establishes an overall system architecture. Software design involves representing
the software system functions in a form that may be transformed into one or more executable
programs.
3. Implementation:
During this stage, the software design is realized as a set of programs or program units.
4. Testing:
The individual program units or programs are tested. Then they are integrated and tested as
a complete system to ensure that the software requirements have been met. After testing, the
software system is delivered to the customer.
Advantages:
• The development process is more visible, i.e. deliverables are produced after each phase.
This will help to know the status of the project at any time.
• This is best suitable for projects in which all the requirements are known in advance and
projects changes are not required.
Disadvantages:
• It is not possible to go to previous phase to accommodate any changes in it.
Problem statement:
There are many possibilities a fire can start in an industry or in any remote area. For example,
in cotton mills, garments, fuel storages, etc., electric leakages can lead to huge damage. Also,
it’s a worst-case scenario, causing heavy losses not only financially but also destroying areas
surrounding it. Robotics is the emerging solution to protect human lives and their wealth and
surroundings. The aim here is to design a FIRE DETECTOR AND EXTINGUISHER ROBOT
using embedded system. A robot capable of fighting a simulated household fire will be
designed and built. It must be able to autonomously navigate through a modeled floor plan
while actively scanning for a flame. The robot can even act as a path guider in normal case and
as a fire extinguisher in emergency. Robots designed to find a fire, before it rages out of control,
can one day work with fire-fighters greatly reducing the risk of injury to victims. The project
will help generate interests as well as innovations in the fields of robotics while working
towards a practical and obtainable solution to save lives and mitigate the risk of property
damage.
This project will be having co-coordinator module fitted with BLUETOOTH at operator
console and many modules with BLUETOOTH fitted. Wherein we can control the unmanned
ground vehicle through BLUETOOTH wirelessly through. With the microcontroller and that
particular motor is controlled for robot movements.
Actuation of robotic system such as humanoid robots is basically based on two major solutions:
1) Electric.
2) Hydraulic.
Electric actuation is typically used for unmanned ground vehicles. It is worthy to note that
electric actuators have the advantages of reduced cost and their easiness of usage and control.
However, a number of disadvantages appear when using electric motors with mechanical
reduction device. First of all, due to the quasi-rigid connection between the motor and its
payload, without developing a specific control algorithm or adding supplementary mechanical
components, it is difficult to produce the stiffness changes needed for safety.
Feasibility Study:
1. TECHNICAL:
When there is a whole range of desirable new high end features to the scene, the new
features interact in cleverer ways.
The Atmega48 is a low-power CMOS 8-bit microcontroller based on the AVR enhanced
RICS architecture. By executing powerful instructions in a single clock cycle, the
Atmega48 achieves throughputs approaching 1 MIPS per MHz, allowing the system
designer to optimize power consumption versus processing speed. High performance is its
main feature. It operates with a voltage of 4.5-5.5.
2. ECONOMICAL:
The components like Atmega48, Bluetooth, Sensors and flame sensor, dc motor costs low.
From economical point of view the cost of purchasing software is low. Ultimately, the
implementation of this project will reduce the expenditure of power supply board.
3. OPERATIONAL:
The module provides very user friendly interface and does not need extra training for usage.
DESIGN CONSIDERATIONS
1. Purpose of Design:
The main objective of this project is to develop ground vehicle for fire fighting
2. Design Features:
➢ The system makes use of BLUETOOTH technology for the transmission of code
pattern to control the devices.
➢ The system is microcontroller- based.
➢ To switch left, right, back and front a robot, appropriate code needs to be sent by
BLUETOOTH through android phone.
➢ The appropriate code makes the respective robot to act accordingly.
➢ Using this BLUETOOTH technology any number of devices can be controlled.
➢ The system should monitor fire move towards it and extinguish it.
BLOCK DIAGRAM
To practically implement the above features, the arrangement of various devices in our system
is as shown in the following block diagram
HARDWARE COMPONENTS:
1. ATmega48 microcontroller
The microcontroller is at the core of every embedded module. Hence, great care must be
exercised in choosing the right microcontroller without compromising on functionality.
Keeping in view many factors that governed the correct implementation of our project the
Atmega48 microcontroller from Atmel Corporation’s AVR microcontroller family was chosen.
Few crucial reasons may be cited so as to justify our choice of this microcontroller. The first
being, that all AVR microcontrollers are designed to deliver more performance at lesser power
consumption. It is compatible with popular protocols like I2C and SPI. It also has advanced
features like an on chip analog to digital converter, six pulse width modulation channels, and
data retention is supported up to a hundred years at 25º C. Also compilers for the Atmega48
are available free of cost from the manufacturer. An added advantage is that the AVR series
can be programmed using the AVRGCC (GNU C compiler), thus making it an undisputed
choice for even GNU/Linux based programmers. The Atmega48 microcontroller has execution
speeds of up to one MIPS per MHz of clock frequency. Elucidating the specifications of the
CPU of the AVR, it is an 8 bit microcontroller with advanced RISC architecture. The CPU is
designed for the stellar combination of parallelism and performance. Thus the CPU uses the
Harvard architecture (separate memories and buses for program and data). The CPU also
accommodates a 32 general purpose 8-bit registers.
1.1 Architecture
The ATmega48 is a low-power CMOS 8-bit microcontroller based on the AVR enhanced RISC
architecture. By executing powerful instructions in a single clock cycle, the ATmega88
achieves throughputs approaching 1 MIPS per MHz allowing the system designer to optimize
power consumption versus processing speed. The AVR core combines a rich instruction set
with 32 general purpose working registers. All the 32 registers are directly connected to the
Arithmetic Logic Unit (ALU), allowing two independent registers to be accessed in one single
instruction executed in one clock cycle. The resulting architecture is more code efficient while
achieving throughputs up to ten times faster than conventional CISC microcontrollers. The
architectural block diagram is as shown in the next page.
In a typical ALU operation, two operands are output from the Register File, the operation is
executed, and the result is stored back in the Register File – in one clock cycle.
Six of the 32 registers can be used as three 16-bit indirect address register pointers for Data
Space addressing – enabling efficient address calculations. One of the these address pointers
can also be used as an address pointer for look up tables in Flash program memory. These
added function registers are the 16-bit X-, Y-, and Z-register, described later in this section.
Program flow is provided by conditional and unconditional jump and call instructions, able to
directly address the whole address space. Most AVR instructions have a single 16-bit word
format. Every program memory address contains a 16- or 32-bit instruction. The Block
Diagram of the AVR Architecture is as shown in the next page.
1.3.4: Port C (PC6:0)-Port C is a 7-bit bi directional I/O port, with the PC6 pin being used as a
reset pin if the reset disable fuse (RSTDISBL) is not programmed. If PC6 is used as a reset pin,
then a low level lasting for more than 2.5 µs at that pin will generate the required reset
condition. The alternate function for the pins of this port is that they act as ADC input channels
used here with the thermistor to aid in temperature measurements.
3.1.3.5: Port D (PD7:0)- Port D is an 8-bit bi directional I/O port and even its pins, like those
of port B and C have alternate functions. The pins of port D can also serve as transmitter and
receiver pins for the internal USART of the microcontroller, they can also add up as comparator
inputs to the internal comparator circuit of the microcontroller.
1.3.6: AVCC-It is the supply voltage for the ADC, PC3 to PC0 and ADC 7:6. It is externally
connected to VCC and if the ADC is used it is connected to the VCC supply voltage through a
low pass filter.
The Idle mode stops the CPU while the SRAM, Timer/Counters, USART, 2-wire Serial
Interface, SPI port, and interrupt system continue to function. In the Power-down mode, the
register contents are saved but the oscillator is frozen until an interrupt is raised or the hardware
is reset. In the Power-save mode, the asynchronous timer is running while the remaining
peripheral components of the device are sleeping. For reduction of noise with respect to the
ADC, the CPU and all other I/O devices are halted and only the asynchronous timer along with
the ADC is running The standby mode can be useful for quick start-ups. Power-down mode
saves the register contents but freezes the oscillator, disabling all other chip functions until the
next interrupt or hardware reset.
asynchronous timer and ADC, to minimize switching noise during ADC conversions. In
Standby mode, the crystal/resonator Oscillator is running while the rest of the device is
sleeping. This allows very fast start-up combined with low power consumption. Moving ahead,
now a brief discussion of the external interrupts has to be done.
1.5 Ports
The ports of the AVR have read-modify-write functionality when used as general digital I/O
ports, as stated in the datasheet of the device. The ports are bi-directional I/O ports with optional
internal pull-ups. Each port pin mainly has three register bits which are DDxn, PORTxn and
PINxn. DDxn is the data direction bit and indicates input or output at a particular pin of any
port .
If DDxn is set to one, the pin is used as output pin, else it is an input pin. If PORTxn is written
to a logic one, and if DDxn is set to zero that particular pin’s internal pull up resistor is
activated. The DDxn is accessed at the DDRx register, the PORTxn is in the PORTx register
and the PINxn is at the PINx register. Writing a logic one to PINxn will toggle PORTxn. The
alternate functions of the port pins and the port registers are explained at the end as part of the
datasheets. The pin value can be read at any time through the PINxn register bit, irrespective
of the DDxn pin setting.
The Atmega48 is equipped with a successive approximation analog to digital converter with a
resolution of 10 bits. All the input channels of the ADC are connected to a multiplexer.
The ADC channel is selected by selecting the corresponding bits as defined in the ADMUX
register of the microcontroller. The ADC output which is 10 bits long is stored in the ADCH
and ADCL registers of the microcontroller. For eight bit precision, reading ADCH is sufficient.
Further details of the ADC are provided with the datasheets.
1.7 USART
Serial transmission of digital information (bits) through a single wire or other medium
is much more cost effective than parallel transmission through multiple wires. A UART is used
to convert the transmitted information between its sequential and parallel form at each end of
the link. Each UART contains a shift register which is the fundamental method of conversion
between serial and parallel forms.
The UART usually does not directly generate or receive the external signals used
between different items of equipment. Typically, separate interface devices are used to convert
the logic level signals of the UART to and from the external signaling levels. Communication
may be "full duplex" (both send and receive at the same time) or "half duplex" (devices take
turns transmitting and receiving).
2. Power Supply
Power supply is used to energies the equipments such as microcontroller, relay, level
converter, GSM and GPS module. The power supply is used to energies the whole module.
The power supply can be in the form of wired or battery. In our project 12V battery is used
as a power supply.
3. Relay
Relay is an electrically operated switch. Relays allow one circuit to switch a second circuit
which can be completely separate from the first. Relays can switch AC and DC, transistors can
only switch DC. Relays can switch higher voltages than standard transistors. Relays are often
a better choice for switching large currents (> 5A). Relays can switch many contacts at once.
3.1 Advantages
• Relays can switch AC and DC, transistors can only switch DC.
• Relays can switch higher voltages than standard transistors.
• Relays are often a better choice for switching large currents (>5A).
• Relays can switch many contacts at once.
3.2 Disadvantages
ground, making this form even less efficient than the series regulator. It is, however, simpler,
sometimes consisting of just a voltage-reference diode, and is used in very low-powered
circuits where the wasted current is too small to be of concern. This form is very common for
voltage reference circuits.
The "78xx" series (7805, 7812, etc.) regulate positive voltages while the "79xx" series (7905,
7912, etc.) regulate negative voltages. Often, the last two digits of the device number are the
output voltage; eg, a 7805 is a +5 V regulator, while a 7915 is a -15 V regulator. The 78xx
series ICs can supply up to 1.5 Amperes depending on the model.
When the field is removed, the quartz will generate an electric field as it returns to its previous
shape, and this can generate a voltage. The result is that a quartz crystal behaves like a circuit
composed of an inductor, capacitor and resistor, with a precise resonant frequency.
Quartz has the further advantage that its elastic constants and its size change in such a
way that the frequency dependence on temperature can be very low. The specific characteristics
will depend on the mode of vibration and the angle at which the quartz is cut (relative to its
crystallographic axes).Therefore, the resonant frequency of the plate, which depends on its size,
will not change much, either. This means that a quartz clock, filter or oscillator will remain
accurate. For critical applications the quartz oscillator is mounted in a temperature-controlled
container, called a crystal oven, and can also be mounted on shock absorbers to prevent
perturbation by external mechanical vibrations.
Quartz timing crystals are manufactured for frequencies from a few tens of kilohertz to tens of
megahertz. More than two billion (2×109) crystals are manufactured annually. Most are small
devices for consumer devices such as wristwatches, clocks, radios, computers, and cell phones.
Quartz crystals are also found inside test and measurement equipment, such as counters, signal
generators, and oscilloscopes.
This is an output pin. This pin is connected to RxD (Pin 12) of microcontroller. This pin sends the data
received on R1 IN pin to microcontroller.
6. MOTOR:
An electric motor uses electrical energy to produce mechanical energy, very typically through
the interaction of magnetic fields and current-carrying conductors. The reverse process,
producing electrical energy from mechanical energy, is accomplished by a generator or
dynamo. Traction motors used on vehicles often peBLUETOOTHorm both tasks. Many types
of electric motors can be run as generators, and vice versa.
Electric motors are found in applications as diverse as industrial fans, blowers and pumps,
machine tools, household appliances, power tools, and disk drives. They may be powered by
direct current (for example a battery powered portable device or motor vehicle), or by
alternating current from a central electrical distribution grid. The smallest motors may be found
in electric wristwatches. Medium-size motors of highly standardized dimensions and
characteristics provide convenient mechanical power for industrial uses. Electric motors may
be classified by the source of electric power, by their internal construction, by their application,
or by the type of motion they give.
The principle
The conversion of electrical energy into mechanical energy by electromagnetic means was
demonstrated by the British scientist Michael Faraday in 1821. A free-hanging wire was dipped
into a pool of mercury, on which a permanent magnet was placed. When a current was passed
through the wire, the wire rotated around the magnet, showing that the current gave rise to a
circular magnetic field around the wire. This motor is often demonstrated in school physics
classes, but brine (salt water) is sometimes used in place of the toxic mercury. This is the
simplest form of a class of devices called homopolar motors. A later refinement is the Barlow's
Wheel. These were demonstration devices only, unsuited to practical applications due to their
primitive construction.
In 1827, Hungarian Ányos Jedlik started experimenting with electromagnetic rotating devices
he called "lightning-magnetic self-rotors". He used them for instructive purposes in
universities, and in 1828 demonstrated the first device which contained the three main
components of practical direct current motors: the stator, rotor and commutator. Both the
stationary and the revolving parts were electromagnetic, employing no permanent magnets.
Again, the devices had no practical application.
The classic division of electric motors has been that of Alternating Current (AC) types v/s
Direct Current (DC) types. This is more a de facto convention, rather than a rigid
distinction. For example, many classic DC motors run on AC power, these motors
being referred to as universal motors.
Rated output power is also used to categorise motors, those of less than 746 Watts, for example,
are often referred to as fractional horsepower motors (FHP) in reference to the old imperial
measurement.
The ongoing trend toward electronic control further muddles the distinction, as modern drivers
have moved the commutator out of the motor shell. For this new breed of motor, driver circuits
are relied upon to generate sinusoidal AC drive currents, or some approximation thereof. The
two best examples are: the brushless DC motor and the stepping motor, both being poly-phase
AC motors requiring external electronic control, although historically, stepping motors (such
as for maritime and naval gyrocompass repeaters) were driven from DC switched by contacts.
Considering all rotating (or linear) electric motors require synchronism between a moving
magnetic field and a moving current sheet for average torque production, there is a clearer
distinction between an asynchronous motor and synchronous types. An asynchronous motor
requires slip between the moving magnetic field and a winding set to induce current in the
winding set by mutual inductance; the most ubiquitous example being the common AC
induction motor which must slip to generate torque. In the synchronous types, induction (or
slip) is not a requisite for magnetic field or current production (e.g. permanent magnet motors,
synchronous brush-less wound-rotor doubly-fed electric machine).
7. BLUETOOTH (TRANSRECIEVER)
BLUETOOTH was created to address the market need for a cost-effective, standards-
based wireless networking solution that supports low data-rates, low-power consumption-users
expect battery to last months to years, security, and reliability. BLUETOOTH is the only
standards-based technology that addresses the unique needs of most remote monitoring and
control and sensory network applications.
The initial markets for the BLUETOOTH Alliance include Consumer Electronics, Energy
Management and Efficiency, Health Care, Home Automation, Building Automation and
Industrial Automation.
It is wireless networking protocol aimed at automation and remote control applications. The
BLUETOOTH mesh network connects sensors and controllers without being restricted by
distance or range limitations. BLUETOOTH mesh networks let all participating devices
communicate with one another, and act as repeaters transferring data between devices.
These modules use the IEEE 802.15.4 networking protocol for fast point-to-multipoint or peer-
to-peer networking. They are designed for high-throughput applications requiring low latency
and predictable communication timing.
8. Flame Sensor:
A sensor which is most sensitive to a normal light is known as a flame sensor. That’s why
this sensor module is used in flame alarms. This sensor detects flame otherwise wavelength
within the range of 760 nm – 1100 nm from the light source. This sensor can be easily damaged
to high temperature. So this sensor can be placed at a certain distance from the flame. The
flame detection can be done from a 100cm distance and the detection angle will be 600. The
output of this sensor is an analog signal or digital signal. These sensors are used in fire fighting
robots like as a flame alarm.
What is a Flame Sensor?
A flame-sensor is one kind of detector which is mainly designed for detecting as well as
responding to the occurrence of a fire or flame. The flame detection response can depend on
its fitting. It includes an alarm system, a natural gas line, propane & a fire suppression system.
This sensor is used in industrial boilers. The main function of this is to give authentication
whether the boiler is properly working or not. The response of these sensors is faster as well as
more accurate compare with a heat/smoke detector because of its mechanism while detecting
the flame.
SOFTWARE REQUIREMENTS
4. Philips PCF8563, PCF8583, Maxim/Dallas Semiconductor DS1302 and DS1307 Real Time
Clocks
9. SPI
11. Delays
AVR Studio supports the complete range of ATMEL AVR tools and each release will always
contain the latest updates for both the tools and support of new AVR devices.AVR Studio 4
has a modular architecture which allows even more interaction with 3rd party software
vendors. GUI plug-ins and other modules can be written and hooked to the system.
3. Embedded C
Embedded C is extensive and contains many advanced concepts. The range of modules covers
a full introduction to C, real-time and embedded systems concepts through to the design and
implementation of real time embedded or standalone systems based on real-time operating
systems and their device drivers. Real time Linux (RTLinux) is used as an example of such a
system. The modules include an introduction to the development of Linux device drivers.
Embedded C covers all of the important features of the C language as well as a good grounding
in the principles and practices of real-time systems development including the POSIX threads
(pthreads) specification.
The design of the modules is intended to provide an excellent working knowledge of the C
language and its application to serious real time or embedded systems. Those wanting in-depth
training specifically on RTLinux or Linux kernel internals should contact us to discuss their
requirements; this set of modules is geared more towards providing the groundwork for
approaching those domains rather than as in-depth training on a specific approach.
Embedded C contains essential information for anyone developing embedded systems such as
microcontrollers, real-time control systems, mobile device, PDAs and similar applications.
This C course is based on many years experience of teaching C, extensive industrial
programming experience and also participation in the ANSI X3J11 and BSI standards bodies
that produced the standard for C. We focus on the needs of day-to-day users of the language
with the emphasis being on practical use and delivery of reliable software.
APPLICATIONS
➢ Used in Industries.
➢ Used in Backyard garden.
➢ Used in National highways.
➢ Used in Streets.
➢ Used in Home.
FUTURE ENHANCEMENTS
The following modifications can be made to present circuit , which lead to still smarter project.
1. The module can be equipped with a faster and more capable microcontroller to
integrate control of many more devices at the same time.
2. Another further intended development is to introduce time controlled devices for
use in commercial spaces. This, for example could be the control of a large display
CONCLUSION
As the saying goes “Necessity is the mother of all inventions”, a need for software which would
control process and devices was recognized.
The design approach used here has given satisfactory results and the microcontroller is
sufficient for measuring the required parameters. The power consumption has been kept as low
as possible and the measurements made by the device are quite reliable. Accordingly a highly
interactive user friendly module based embedded technology with microcontrollers was
developed to solve the problem. The module which is developed will make the job of process
easier. The user module has resulted in reducing work of human also makes more comfortable.
The module is, therefore functioning as a very good tool. Incorporating the future enhancement
as specified earlier would make the software a perfect tool, which would help the user.
This project gives a detailed mechanism about the robot that continuously monitors, intimates
the respective personnel and extinguishes the fire. In the industry if any fire accident occurs,
there is a need of person to monitor continuously and rectify it. In this process if any time delay
takes place irreparable loss occurs since it is a cotton industry.
REFERENCES
[1.] Sunil Mathew1, Gaikwad Sushanth1, KR Vishnu1, V. Vishnu Nair1, and G. Vinoth
Kumar2, Fabrication of Fire Fighting Robot, International Journal of Innovation and
Scientific Research, ISSN 2351-8014 Vol. 22 No. 2 Apr. 2016, pp. 375-383.
[2.] Prof. Dr. S.N. Kini1, Rutuja Wadekar2 , Shweta Khatade3 , Sayali Dugane4 , Rutuja
Jadkar5, Fire Fighting Robot Controlled Using Android Application, International Journal of
Innovative Research in Science, Engineering and Technology, ISSN(Online): 2319-8753.
[3.] Kristi Kosasih, E. Merry Sartika, M. Jimmy Hasugian, danMuliady, “The Intelligent Fire
Fighting Tank Robot” , Electrical Engineering Journal, Vol. 1, No. 1, October 2010.
[4.] Sahil S.Shah1, Vaibhav K.Shah2, Prithvish Mamtora3 and Mohit Hapani4, FIRE
FIGHTING ROBOT, International Journal of Emerging Trends & Technology in Computer
Science (IJETTCS), ISSN 2278-6856.
[5.] Abhilash Dhumatkar1, Sumit Bhiogade2, Shashank Rajpal3, Datta Renge4, Prof. V.
Kale5, Automatic Fire Fighting Robot, International Journal of Recent Research in
Mathematics Computer Science and Information Technology, ISSN 2350-1022.
KNOWLEDGE GAIN
DAY WORKDONE
1 Introduction of the company and about internship strategy
2 Introduction to C and Basic concepts involved in C-programming.
We learnt to write a program in C using some control statements
3 and defined functions.
4 Introduction to Embedded system and hardware components.
5 We have learnt how to program 8051.
Brief introduction about Internet of Things and Installation of
6 software which we are used.
7 Designing and deploying timers and interrupts.
8 Learn to use IDE like Cvavr, Arduino IDE
9 Understanding ADC and interfacing of sensors.
10 Understanding and Implementing UART Protocol
11 Interfacing external devices LCD, Relay
12 Understanding I2C protocol interfacing ds1307 (Real Time Clock).
13 Learn to develop the hardware/software co-design.
14 Why Internet of Things (IOT).
15 Working on IOT with NodeMCU.
16 Robotics
We learnt to write a basic Embedded C code to interface in AVR
17 Microcontroller.
18 Learnt about the rules involved to write an Embedded C code.
19 Brief explanation about AVR Microcontroller
Interfacing of LED, Relay, IR sensor and DC Motor with AVR
20 microcontroller.
21 Brief introduction of projects.
Writing a code of our own Embedded C code depending upon our
22 project and interfacing using AVR.
23 Completion of project
24 Completion of project
25 Completion of Project
26 Completion of project
Overview: