Design and Development of Co ntrol Algorithm of a Prototype Fir e-Fighting Robot to Extinguish a Candle Flame Final Year Project Progress Report Teoh Chieh Loon (081061128) Mechat ron ic Pr ogramme School of Mechatronic EngineeringUniversiti Malaysia Perlis, E-ma il: looni sbest@hotma il.com Abstract Fir e can be useful in human daily life but it can cause disa ster whe n it bec ame big fire. Fir e figh ter has bee n dangerous job as them have to put risk of their life to save other. So this come the role of the fire fighting robot to putout fire and reduce the risk of any human life lost includingfire fighter . A candle used to rep lace the role of fir e. When fire fighting rob ot detects the flame of candle in a mockhouse, it can navigate through a mock house and avoid any ob st acle be for e it rea ch ne ar th e fi r e. By using th e ultrasonic, sharp analogue distance and flame sensor which interface with a suitable control algorithm, it will use the pro gramm ed locomotion to navigate the obstacl e and wall. Pr ogram code to control the fire fighting ro bot is written in PIC1 8F4580 C language . When the flame of candle appeared in the sensing range of the fire fighting robot, then it will put out the flame of candle as it supposed to do. Basedon the experiment conducted, the autonomous navigation showed satisfactor y res ult. The developed firefighting robotwill provide a test bed for advanced path planning andnavigation projects in the future. Keywords Locomotion, c ontr ol algor ithm, fir e fightin g ro bot, obstacle, 1. Introduction 1.1. Background of Research Fire is an unwanted element which often causes loss ofproperties or life. Fire fighting is a dangerous core even forthe experienced fire fighters. Therefore, a fire fighting robot will serve as a substitution to help extinguishing big fires which are dangerous to human beings. Instead of taking the great leap to develop a real fire fighting robot, the properstep is to gather more knowledge and experiences from designing a smaller scale fire fighting robot. 1.2. Motivation of Research Robots assisting fire-fighters are not an often seen sight. However, there are robotic devices that can already be used for such purposes. These include bots that can be thrown into the fire site to inspect the situation, as well as large remote controlled fire extinguishers such as Anna Konnda, Hoya Firefighters' Assistance Robot, DRB Fatec ArchiBots, IZ HOLDI NG Fir o-S eri es fir efi ght ing robots , Ry lan d research limited Firemote, DOK-ING JELKA firefighting robots. 1.3. Research Objectives The objective of this project is to design a fire fighting robot to extinguish a candle flame which is a located in a mock house 1.4. Scope of Research 1. An efficient method to ensure robot to approach and extinguish the candle flame. 2. A well- develo ped algor ithm for the robot navigation , distance control and flame blow off control. 3. A robot which can navigate around the field of operation (mock house). 2. Literature review 2.1 Control Algorithm for Robot Path Algorithm is playing an important role in determine best way to make the fire fighting robot to be more efficient to navigate through the mock house. Then, it searches for the fire source. If it detect fire source from candle, it will use suited algorithm to find the candle position and move until right in front of the candle. 2.1.1 Obstacle-Avoidance Behaviour Algorithm The fi rst impl ementa tio n of the obst ac le-avoida nce behaviour was long and complex and consisted of both proportional and integral control. Each time the behaviouris called, it checks the front hemisphere of sonar sensors (labelled 0-8 in figure 2.1) to see if any of their ranges are less than the minimum tolerated sonar distance. If none ofthe se ran ges are les s tha n the mi nimum, the beh avi ourreturns the commands “full speed ahead” so the robot will continue to move. Otherwise, it checks to see which of the sum of left-front ranges (sensors 0-3) or right-front ranges (sensors 5-8) is smaller, and sends commands to turn the robot in the opposite direction. This is illustrated in Figure 2.1. Currently, the obstacle- avoidance behaviour is keeping the robot traveling from right to left in the centre of the hallway or at least on a sinusoidal path down the centre of the hallway if it is wide. As the robot approaches the corner, the sonar ranges will
This document is posted to help you gain knowledge. Please leave a comment to let me know what you think about it! Share it to your friends and learn new things together.
Fire can be useful in human daily life but it can cause
disaster when it became big fire. Fire fighter has beendangerous job as them have to put risk of their life to save
other. So this come the role of the fire fighting robot to put
out fire and reduce the risk of any human life lost including
fire fighter. A candle used to replace the role of fire. When fire fighting robot detects the flame of candle in a mock
house, it can navigate through a mock house and avoid anyobstacle before it reach near the fire. By using the
ultrasonic, sharp analogue distance and flame sensor whichinterface with a suitable control algorithm, it will use the
programmed locomotion to navigate the obstacle and wall. Program code to control the fire fighting robot is written in
PIC18F4580 C language. When the flame of candleappeared in the sensing range of the fire fighting robot, then
it will put out the flame of candle as it supposed to do. Based on the experiment conducted, the autonomous navigation
showed satisfactory result. The developed firefighting robot
will provide a test bed for advanced path planning and navigation projects in the future.
Keywords Locomotion, control algorithm, fire fighting robot, obstacle,
1. Introduction
1.1. Background of Research
Fire is an unwanted element which often causes loss of
properties or life. Fire fighting is a dangerous core even for
the experienced fire fighters. Therefore, a fire fighting robotwill serve as a substitution to help extinguishing big fireswhich are dangerous to human beings. Instead of taking the
great leap to develop a real fire fighting robot, the proper step is to gather more knowledge and experiences from
designing a smaller scale fire fighting robot.
1.2. Motivation of Research
Robots assisting fire-fighters are not an often seen sight.However, there are robotic devices that can already be used
for such purposes. These include bots that can be throwninto the fire site to inspect the situation, as well as large
remote controlled fire extinguishers such as Anna Konnda,Hoya Firefighters' Assistance Robot, DRB Fatec ArchiBots,IZ HOLDING Firo-Series firefighting robots, Ryland
research limited Firemote, DOK-ING JELKA firefightingrobots.
1.3. Research Objectives
The objective of this project is to design a fire fighting
robot to extinguish a candle flame which is a located in a
mock house
1.4. Scope of Research
1. An efficient method to ensure robot to approach and
extinguish the candle flame.2. A well-developed algorithm for the robot navigation,
distance control and flame blow off control.3. A robot which can navigate around the field of operation
(mock house).
2. Literature review
2.1 Control Algorithm for Robot PathAlgorithm is playing an important role in determine bestway to make the fire fighting robot to be more efficient to
navigate through the mock house. Then, it searches for thefire source. If it detect fire source from candle, it will use
suited algorithm to find the candle position and move untilright in front of the candle.
2.1.1 Obstacle-Avoidance Behaviour Algorithm
The first implementation of the obstacle-avoidance
behaviour was long and complex and consisted of both proportional and integral control. Each time the behaviour
is called, it checks the front hemisphere of sonar sensors(labelled 0-8 in figure 2.1) to see if any of their ranges are
less than the minimum tolerated sonar distance. If none of these ranges are less than the minimum, the behaviour
returns the commands “full speed ahead” so the robot willcontinue to move. Otherwise, it checks to see which of the
sum of left-front ranges (sensors 0-3) or right-front ranges(sensors 5-8) is smaller, and sends commands to turn the
robot in the opposite direction.
This is illustrated in Figure 2.1. Currently, the obstacle-avoidance behaviour is keeping the robot traveling from
right to left in the centre of the hallway or at least on asinusoidal path down the centre of the hallway if it is wide.
As the robot approaches the corner, the sonar ranges will
grow smaller on the robot’s left-front side (sensors 0-3).
Some of the sonar ranges on the right-front side of robot
(sensors 5-8) will grow smaller as well, but the codecompares the sums of these two sets of sensors. When any
sonar range is less than the minimum tolerated sonar distance, the robot will turn right and proceed through the
doorway. If there was no doorway, and the sum of the leftsonar ranges matched the sum of the right sonar ranges, the
robot would turn left by default. So, this will create a dead-lock situation in which the robot gets stuck in a corner
turning back and forth. [2]
Figure 2.1 show how the sonar sensor direction and how thebehaviour will works.
2.1.3 Wall Following Algorithm
Wall following can be accomplish by using four method
which have be contact method, noncontact with active
sensor method, noncontact with passive sensor method, softcontact method. Contact method is where the robot uses a
mechanical switch, or a stiff wire connected to a switch, to
sense contact with the wall. This is the simplest method, but
the switch prone to mechanical damage over time.
Noncontact, active sensor method is the robot uses active
proximity sensors, such as infrared or ultrasonic, todetermine its distance from the wall. No physical contact
with the wall is needed for the uses of this method. In atypical noncontact system, two sensors are used to judge
when the robot is parallel to the wall. (See figure 2.2 robotB)
Noncontact, passive sensor method is the robot uses passive
sensors, such as linear Hall Effect switches, to judgedistance from a specially prepared wall by referring to
figure 2.2 robot C. In the case of Hall Effect switches, the baseboard or wall can be outfitted with an electrical wire
through which a low-voltage3 alternating current is fed.When the robot is in the proximity of the switched the
sensors will pick up the induced magnetic field provided by
the alternating current.
For soft contact method, the robot uses the mechanical
means to detect with the wall, but the contact is softened byusing pliable material. For example, the lightweight foam
wheel is used as wall roller as shown in figure 2.2 robot D.the benefit of soft contact is replace the failure of the
mechanical which may be reduced or eliminated becausethe contact with the wall is made through an elastic or
pliable medium. [3]
Figure 2.2 show four method of wall following algorithm: a,Contact switch; b, noncontact active sensor (such as
infrared); c, noncontact sensor (e.g., Hall Effect sensor and
magnetic, electromagnetic, or ferrous metal wall/baseboard); and d, “soft contact” using pliablematerial such as foam rollers.
For the uses of fire fighting robot which faces the maze of
the mock house, so the suitable method is the noncontact,active sensor method. This because the simple ultrasonic
wall follower can use single headed transmitter and receiver or two ultrasonic transmitter, receiver pair. Open doorways
that lead into other rooms or space can be sensed using alonger-range ultrasonic transducer.
2.1.3 Convergence behaviours path
In the path planning algorithm, there are two immutable
laws that must accept:a) A robot is never exactly where its position estimate says
it is. b) A robot`s position estimate is never exactly where it
wants to be.
In a straight path to a destination, the ends of path segmentsas nodes. In figure 2.2.4.1, the robot supposed to be at Node
A, and was to travel to Node B. When robot move, itrealized that its position was actually some distance from
where it should have been at Node A. The first possible
strategy is to ignore the path and move straight for thedestination Node B. the obvious problem with the strategy,is that the robot will run into an obstacle that maybe stop it
from moving to the Node A.
The second strategy is to play it safe and first move straight
to the correct starting position (node A) before heading for Node B. This strategy may be safer, but still it cause time
consuming for taking this strategy. There a problem occurs
when the robot reach Node A, it had to execute the 90-degree turn to the turn which facing Node B.
The third strategy is called by “wagon tongue” method, as it
works like a child pulling a wagon by its tongue. If thechild stays on the path, the wagon will smoothly converge
onto the path as well. In software, the robot is given a rabbit
to chase that is on the path, the lead distance closer to the
goal than the robot. As robot chases the rabbit, the rabbitcontinues to stay the same distance ahead.
Figure 2.3 show three strategies for getting to destination
2.1.4 Closing behaviours path
There are two methods of deciding how much further todrive. The first method is to continually recalculate thedistance as the robot drive. The problem with this comes
with the fact that as robot approaches the end, and the
destination is to the side or rear, the vector distance is still positive.
The second method involves calculating the distance at beginning of the run, and simply counting down the
distance remaining as a parallel process in the odometry.The problem with this approach is that we may end up
weaving about for any number of reasons, requiring a longdrive distance than calculated. But the figure 2.4 show that
an extreme case of the second law which robot do not get tothe stop at desired point because it maybe had some bad
navigation data and forced to circumnavigate an obstacle before reaching Node B. One answer is to use the parallel
distance to the node to plan the stop, not the vector distance.
As the robot approaches the end of the path, it must switch
out of the wagon tongue behaviour and attempt to close onthe end point.so it is more important that the robot end the
path at the correct heading than at the perfectly correct place. One solution is to limit the angle between the robot
and the path ever more tightly as it approaches the end.Thus, at the end of the path the robot will be consistentlyoriented parallel to the path.
Figure 2.4 shows calculating the distance remaining
2.1.5 Running on path
If the robot expected to run on from one node to the next
node without stopping, as showed figure 2.5, it will be more
complex. In this case, the robots should know ahead of timethat it is not actually running to the node B but is actually
arcing past Node B to get to Node C. The robot should plans to radius the turn and this is the distance away from
node B that it must begin to turn in this case. Once into theturn, it steers at a constant rate until the heading is that of
the B-C, similar to the wagon tongue method. When theheading matches, it can revert to convergence behaviours
and the speed in the turn must be slower as the radius ismade smaller. [4]
Figure 2.5 shows running on past a node.
3. Methodology
3.1 Basic Principle for Control System
This chapter explain the control algorithm that applied inthe fire fighting robot design and navigation process. The
subtopics for this chapter include control algorithm of sensors, servo motor and conclusions. Finally, the output
from the three types of sensors are analysed and defined for
the development of the programming codes so that therobot can make decisions based on the output from sensor.
Control systems are an integral part of modern society. Numerous applications are all around us: the rocket fire,
and the space shuttle lifts off to earth orbit; a self-guidedvehicle delivering material to workstation in an aerospace
assembly plant glided along he floor seeking its destination.These are just a few examples of the automatically
controlled systems that we can create.
A control system consists of subsystem and process (or
plants) assembled for the purpose of controlling the output
of the processes. For example, a fire fighting robot produces wind to blow off candle as a result of appearance
of the flame at the candle. In this process, subsystems,called the flame sensor detect the appearance of the flame
at the candle.
Robot designed by control system principles cancompensate for human disabilities. Control systems are
useful in remote or dangerous location. For example, amicrocontroller-controlled fire fighting robot can be useful
to blow off fire which in dangerous and hot condition.[5]
Explanation of the how does the control system works can be more understand through the figure 3.1 below, it show
the input or stimulus which is desired response will control