Fire Fighting Robot
Fire Fighting Robot
Fire Fighting Robot
Introduction
Block Diagram
Circuit Diagram
Material List
Components Description
Resistors
The flow of charge (or current) through any material, encounters an opposing
force similar in many respect to mechanical friction. This opposing force is
called resistance of the material. It is measured in ohms. In some electric
circuits resistance is deliberately introduced in the form of the resistor.
Carbon Resistors:
a. Carbon composition resistors are made by mixing carbon grains with binding
material (glue) and moduled in the form of rods. Wire leads are inserted at
the two ends.
b. After this an insulating material seals the resistor. Resistors are available in
power ratings of 1/10, 1/8, 1/4 , 1/2 , 1.2 watts and values from 1 ohm to 20
ohms.
c. Carbon film resistors are made by deposition carbon film on a ceramic rod.
They are cheaper than carbon composition resistors.
d. Cement film resistors are made of thin carbon coating fired onto a solid
ceramic substrate.
e. The main purpose is to have more precise resistance values and greater
stability with heat. They are made in a small square with leads.
Variable Resistors:
Black 0 0 ×100
White 9 9 ×109
Band 2
Band 3
Band 4
CAPACITORS
A capacitor can store charge, and its capacity to store charge is called
capacitance. Capacitors consist of two conducting plates, separated by an
insulating material (known as dielectric). The two plates are joined with two
leads. The dielectric could be air, mica, paper, ceramic, polyester, polystyrene,
etc. This dielectric gives name to the capacitor. Like paper capacitor, mica
capacitor etc.
Types of Capacitors:- Capacitors are of two Types Fixed and variable capacitor.
Polar Capacitor:- Those capacitor have polarity are known as polar capacitor.
Electrolytic capacitor are the example of polar capacitors.
Non Polar Capacitor:- Those capacitor have no polarity are known as NON-
polar capacitor. Ceramic capacitor are the example of non polar capacitors
Diode:-
a rectifying diode of the 1N4001-07 ( 1A) type or even one of the high power,
high current stud mounting types. You will notice the straight bar end has the
letter "k", this denotes the "cathode" while the "a" denotes anode. Current can
only flow from anode to cathode and not in the reverse direction, hence the
"arrow" appearance. This is one very important property of diodes.
Features
• Diffused Junction
The 1N4148 and 1N4448 are high-speed switching diodes fabricated in planar
technology, and encapsulated in hermetically sealed leaded glass SOD27 (DO-
35) packages.
FEATURES
• General application
• High-speed switching
IC
IC (Integrated Circuit) means that all the components of the circuit are
fabricated on same chip. Digital ICs are a collection of resistors, diodes, and
transistors fabricated on a single piece of semiconductor, usually silicon called a
substrate, which is commonly referred to as ‘wafer’. The chip is enclosed in a
protective plastic or ceramic package from which pins extend out connecting
the IC to other device. Suffix N or P stands for dual-in-line (plastic package
(DIP) while suffix J or I stands for dual-in-lime ceramic package. Also the
suffix for W stands for flat ceramic package.
The pins are numbered counter clockwise when viewed from the top of the
package with respect to an identity notch or dot at one end of the chip.The
manufacturer’s name can usually be guessed from its logo that is printed on the
IC. The IC type number also indicates the manufacturer’s code. For e.g. DM
408 N SN 7404 indicates National Semiconductor and Texas Instruments.
The middle portion i.e. the IC type number tells about the IC function and also
the family, which the particular IC belongs to.IC’s that belongs to standard TTL
series have an identification number that starts with 74; for e.g. 7402, 74LS04,
74S04 etc. IC’s that belongs to standard CMOS family their number starts with
4, like 4000, 451B, 4724B, 1400. The 74C, 74HC, 74AC & 74ACT series are
newer CMOS series.
Also there are various series with CMOS logic family as metal state CMOS 40
or 140.
Transistor:-
same part number. The gain also varies with the collector current and
temperature.
LED:- LED means light emitting diode. Its function is similar to the diode. But
these are not made up from silicon or germanium. These are generally used as a
indicating device. There are variety of LEDs are available in market depending
upon their size and colour.
Polarity of LED:- LED have polarity. We can judge its polarity by watching
flags in its structure. Bigger flag is known as cathode and smaller flag is known
as anode as shown below.
Voltage Regulator The LM78XX 3-terminal positive voltage regulators
employ internal current-limiting, thermal shutdown and safe-area compensation,
making them essentially indestructible. Heat sinking is provided; they can
deliver over 1.0A output current. They are intended as fixed voltage regulators
in a wide range of applications including local (on-card) regulation for
elimination of noise and distribution problems associated with single-point
regulation. In addition to use as fixed voltage regulators.
Features
■ Output current up to 1 A
DC MOTOR
PRINCIPLE OF OPERATION
Arduino
4.2 HARDWARE:
At a conceptual level, when using the Arduino software stack, all boards are
programmed over an RS-232 serial connection, but the way this is implemented
varies by hardware version. Serial Arduino boards contain a simple inverter
circuit to convert between RS-232-level and TTL-level signals. Current Arduino
boards are programmed via USB, implemented adapter chips such as the
FTDI FT232. Some variants, such as the Arduino Mini and the unofficial
Boarduino, use a detachable USB-to-serial adapter board or cable, Bluetooth or
other methods. (When used with traditional microcontroller tools instead of the
Arduino IDE, standard AVR ISP programming is used.) The Arduino board
exposes most of the microcontroller's I/O pins for use by other circuits. The
Diecimila, Duemilanove, and current Uno provide 14 digital I/O pins, six of
which can produce pulse-width modulated signals, and six analog inputs. These
pins are on the top of the board, via female 0.1 inch headers. Several plug-in
application shields are also commercially available. The Arduino Nano, and
Arduino-compatible Bare Bones Board and Boarduino boards may provide
male header pins on the underside of the board to be plugged into solderless
breadboards.
A typical first program for a microcontroller simply blinks an LED on and off.
In the Arduino environment, the user might write a program like this
It is a feature of most Arduino boards that they have an LED and load resistor
connected between pin 13 and ground, a convenient feature for many simple
tests.[29] The above code would not be seen by a standard C++ compiler as a
valid program, so when the user clicks the "Upload to I/O board" button in the
IDE, a copy of the code is written to a temporary file with an extra include
header at the top and a very simple main() function at the bottom, to make it a
valid C++ program. See Cyclic executive
The Arduino IDE uses the GNU toolchain and AVR Libc to compile programs,
and uses avrdude to upload programs to the board.As the Arduino platform uses
Atmel microcontrollers Atmel’s development environment, AVR Studio or the
newer Atmel Studio, may also be used to develop
software for the Arduino. For educational purposes there is third party graphical
development environment called Minibloq available under a different open
source license.
short
/* */ (multi-line array
comment)
#define
#include
Arithmetic Operators
= (assignment operator)
Arduino Overview:
The Uno differs from all preceding boards in that it does not use the FTDI USB-
to-serial driver chip. Instead, it features the Atmega16U2 (Atmega8U2 up to
version R2) programmed as a USB-to-serial converter. Revision 2 of the Uno
board has a resistor pulling the 8U2 HWB line to ground, making it easier to put
into DFU mode. Revision 3 of the board has the following new features:
1.0 pinout: added SDA and SCL pins that are near to the AREF pin and two
other new pins placed near to the RESET pin, the IOREF that allow the shields
to adapt to the voltage provided from the board. In future, shields will be
compatible both with the board that use the AVR,
which operate with 5V and with the Arduino Due that operate with 3.3V. The
second one is a not connected pin, that is reserved for future purposes.
"Uno" means one in Italian and is named to mark the upcoming release of
Arduino 1.0. The Uno and version 1.0 will be the reference versions of Arduino,
moving forward. The Uno is the latest in a series of USB Arduino boards, and
the reference model for the Arduino platform; for a comparison with previous
versions, see the index of Arduino boards.
Operating Voltage 5V
Input Voltage (recommended) 7-12V
SRAM 2 KB (ATmega328)
EEPROM 1 KB (ATmega328)
Servo Motor
Tiny and lightweight with high output power. Servo can rotate approximately
180 degrees (90 in each direction), and works just like the standard kinds but
smaller. You can use any servo code, hardware or library to control these
servos. Good for beginners who want to make stuff move without building a
motor controller with feedback & gear box, especially since it will fit in small
places. It comes with a 3 horns (arms) and hardware.
Specifications
• Weight: 9 g
• Dimension: 22.2 x 11.8 x 31 mm approx.
• Stall torque: 1.8 kgf·cm
• Operating speed: 0.1 s/60 degree
• Operating voltage: 4.8 V (~5V)
• Dead band width: 10 μs
• Temperature range: 0 ºC – 55 ºC
Ultrasonic Modules
Ultrasonic module provides 2cm - 400cm non-contact measurement function,
these modules includes ultrasonic transmitters, receiver and control circuit. The
basic principle of work:
(1) Using IO trigger for at least 10us high level signal,
(2) The Module automatically sends eight 40 kHz and detect whether there is a
pulse signal back.
(3) IF the signal back, through high level, time of high output IO duration is the
time from sending ultrasonic to returning.
Test distance = (high level time × velocity of sound (340M/S) / 2,
Wire connecting direct as following:
5V Supply
Trigger Pulse Input
Echo Pulse Output
0V Ground
Photodiode
Principle of Photodiode
The operating principle of the photodiode is such that when the junction of this
two-terminal semiconductor device is illuminated then the electric current starts
flowing through it. Only minority current flows through the device when the
certain reverse potential is applied to it.
ISOLATORS
RELAYS
STRIP
OUT N/C
OUT N/O
SPRING
230V P
MAGNET
The reason behind using relay for switching loads is to provide complete
electrical isolation. It means that there is no electrical connection between the
driving circuits and the driven circuits. The driving circuit may be low voltage
operated low power circuits that control several kilowatts of power. In our
circuit where a high fan could be switched on or off depending upon the output
from the telephone.
Since the relay circuit operated on a low voltage, the controlling circuit is quite
safe. In an electromagnetic relay the armature is pulled by a magnetic force
only. There is no electrical connection between the coil of a relay and the
switching contacts of the relay. If there are more than one contact they all are
electrically isolated from each other by mounting them on insulating plates and
washers. Hence they can be wired to control different circuits independently.
1. Electromagnetic relay
2. Power Relay.
3. Time Delay Relay.
4. Latching Relay.
5. Crystal Can Relay.
6. Co-axial Relay
1. Electromagnetic relay:
2. Power relays:
Power relays are multi-pole heavy duty lapper type relays that are capable of
switching resistive loads of up to 25amp. These relays are widely used for a
variety of industrial application like control of fractional horse power motors,
solenoids, heating elements and so on. These relays usually have button like
silver alloy contacts and the contact welding due to heavy in rush current is
avoided by wiping action of the contacts to quench the arc during high voltage
DC switching thus avoiding the contact welding.
A time delay relay is the one in which there is a desired amount of time delay
between the application of the actuating signal and operation of the load
switching devices?
4. Latching Relay:
In a Latching Relay, the relay contacts remain in the last energized position
even after removal of signal in the relay control circuit. The contacts are held in
the last relay-energized position after removal of energisation either electrically
or magnetically. The contacts can be released to the normal position electrically
or mechanically.
Program
1. #include <Servo.h>
2. Servo Servo1, Servo2;
3. const int IR = A0;
4. const int Relay = A2;
5. const int Motor1 = 8;
6. const int Motor2 = 9;
7. const int Motor3 = 10;
8. const int Motor4 = 11;
9. const int TRIG_PIN = 3;
10.const int ECHO_PIN = 2;
11.int UDM_Data = 0;
12.void setup()
13.{
14.Serial.begin(9600);
15.Servo1.attach(5); //for UDM
16.Servo2.attach(4); //for Spray
17.pinMode(TRIG_PIN,OUTPUT);
18.pinMode(ECHO_PIN,INPUT);
19.pinMode(IR, INPUT);
20.pinMode(Relay, OUTPUT);
21.pinMode(Motor1, OUTPUT);
22.pinMode(Motor2, OUTPUT);
23.pinMode(Motor3, OUTPUT);
24.pinMode(Motor4, OUTPUT);
25.digitalWrite(Relay, HIGH);
26.digitalWrite(Motor1, HIGH);
27.digitalWrite(Motor2, LOW);
28.digitalWrite(Motor3, HIGH);
29.digitalWrite(Motor4, LOW);
30.Servo1.write(100); //UDM in center position
31.Servo2.write(180);
32.}
33.void loop()
34.{
35.Servo1.write(100); //UDM in center position
36.delay(1000);
37.UDM_Data = UDM();
38.Serial.println(UDM_Data);
39.if(UDM_Data < 30) //if distance is below 30CM stop and change
direction
40.{
41.digitalWrite(Motor1, LOW);
42.digitalWrite(Motor2, LOW);
43.digitalWrite(Motor3, LOW);
44.digitalWrite(Motor4, LOW);
45.delay(1000);
46.Servo1.write(40); //UDM Turn Left
47.delay(1000);
48.for(int i=0; i<5; i++)
49.{
50.UDM_Data = UDM();
51.delay(100);
52.}
53.if(UDM_Data < 30) //if distance is below 30CM then change direction
right
54.{
55.digitalWrite(Motor1, LOW);
56.digitalWrite(Motor2, HIGH);
57.digitalWrite(Motor3, HIGH);
58.digitalWrite(Motor4, LOW);
59.}
60.else //change the direction to the left
61.{
62.digitalWrite(Motor1, HIGH);
63.digitalWrite(Motor2, LOW);
64.digitalWrite(Motor3, LOW);
65.digitalWrite(Motor4, HIGH);
66.}
67.delay(3000);
68.digitalWrite(Motor1, LOW);
69.digitalWrite(Motor2, LOW);
70.digitalWrite(Motor3, LOW);
71.digitalWrite(Motor4, LOW);
72.delay(1000);
73.Servo1.write(100);
74.delay(1000);
75.digitalWrite(Motor1, HIGH);
76.digitalWrite(Motor2, LOW);
77.digitalWrite(Motor3, HIGH);
78.digitalWrite(Motor4, LOW);
79.}
80.if(digitalRead(IR) == 1)
81.{
82.digitalWrite(Motor1, LOW);
83.digitalWrite(Motor2, LOW);
84.digitalWrite(Motor3, LOW);
85.digitalWrite(Motor4, LOW);
86.delay(1000);
87.digitalWrite(Relay,LOW);
88.delay(100);
89.for(int j = 0; j<3; j++)
90.{
91.Servo2.write(120);
92.delay(1000);
93.Servo2.write(180);
94.delay(1000);
95.}
96.delay(1000);
97.digitalWrite(Motor1, HIGH);
98.digitalWrite(Motor2, LOW);
99.digitalWrite(Motor3, HIGH);
100. digitalWrite(Motor4, LOW);
101. }
102. }
103. int UDM()
104. {
105. long duration, distanceCm;
106. digitalWrite(TRIG_PIN, LOW);
107. delayMicroseconds(2);
108. digitalWrite(TRIG_PIN, HIGH);
109. delayMicroseconds(10);
110. digitalWrite(TRIG_PIN, LOW);
111. duration = pulseIn(ECHO_PIN,HIGH);
112. distanceCm = duration / 29.1 / 2 ;
113. return distanceCm;
114. }
Software Used
1. Arduino
2. Proteus