











































Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
This page cannot be seen from the preview
Don't miss anything!












































Cliff main behaviors include navigating through a miniature house, detecting a flame, pinpointing the flame, and extinguishing it.
Cliff’s platform is comprised of a disc with wheels placed in a centerline of the disc, allowing him to be able to turn in place. To navigate through the house, Cliff is equipped with IR emitter / detector pairs and ten micro-switches. By having IR detectors mounted on either side of the platform parrallel to the wheels, Cliff is able to avoid contact with the walls of the miniature house as he navigates through it. In case of contact with the walls, a ring connected to the micro switches found all around the main body help him avoid further contact.
To detect and pinpoint the flame, Cliff uses the UV TRON made by Hamamatsu Photonics. The UV TRON sensor detects UV in a wide range and can detect form over 5 meters away. To help pinpoint the flame, Cliff uses software to help to narrow where the flame actually is.
To extinguish the flame, a 12V water pump activated by the microprocessor with a 5V relay. The pump is shut off when UV is no longer detected.
Once the flame is extinguished, Cliff continues to move randomly throughout the house.
Cliff is an autonomous fire - fighting robot with three main behaviors. The first behavior if navigating through a miniature house using IR and bump detectors. The second behavior is finding a flame and pinpointing it. To do this a UV sensor is used in combination with some software algorithms. The third behavior is extinguishing the flame, which is done using a water pump and a separate 12V power supply. This report is a detailed description of all cliff’s systems, sensors, and behaviors. Included are circuit diagrams, experimental data, and C code for cliff’s main operating program. Also, behavioral successes and failures are also noted and explained.
The core of cliff’s processing system is the Motorola 68HC11 microcontroller running at 2 MHz. This particular processor includes eight analog input ports as well as a variety of output ports and has limited memory. When combined with the ME11 expansion board made by Mekatronix, the HC11’s memory is increased to 32KB and a 40kHz pulse is also now added to the output characteristics. An additional feature of the ME11 board is a motor driver chip, which allows two DC motors to be controlled easily by the microprocessor.
Since the HC11 only provides eight analog inputs, an analog multip lexing circuit is added to the HC11 – ME11 system. This now gives cliff the capability to have 15 input ports, increasing his sensing capabilities. It works by latching the data bus and using three of
The given structure allows cliff many capabilities to accomplish his objectives. The additional memory allows the capability to write complicated software to better enhance his behavioral techniques. Also, the additional input ports give him a better idea of the environment he is in. With the possibility of having 15 sensors, cliff shouldn’t have trouble determining the state of his surroundings.
The above systems (HC11 + ME11 + analog multiplexor) are powered by eight 1.2V NiCd batteries located underneath cliff’s main platform. The water hose located on the side of his main cover is also powered by a separate battery pack to prevent the pump from discharging cliff’s main power supply.
Cliff’s platform is comprised of a wooden disc for the base and a wood cover placed on the base.
One of Cliff’s major objectives is navigate through a miniature house comprised of four rooms. Most of the hallways are just a little over 13” wide, so turning was something that had to be done in place. This meant using a platform similar to an RC car would not be a good idea. A round base was chosen with the wheels aligned along a centerline of the base. This allowed Cliff to be able to turn in place as wheel as preventing him from getting stuck or having his body snag on one of the walls.
Using the base of the Talrick robot, Cliff’s main disc is pictured below:
and slip free of the obstacle. Also, being able to turn in place helps him turn easily without the need of backing up or worrying if there is room to turn or not.
The types of actuation on the cliff system are motor movement and water pump activation. The amount of actuation on the system was kept to a minimum to keep the robot as simple as possible
The motor driving chip located on the ME11 expansion board handles the motor control. The motors are activated using a routine known as “init_motorme()” and are modified by calling the function “motorme(motor, speed in %)”. This makes it easy to interface and control the motors using software. The water pump mounted on the side of cliff is activated using a 5V relay. By writing a “1” to one of the digital outputs, the relay closes and connects the pump to a separate 12V battery pack mounted on the main cover of the body. Activating the pump is accomplished with the following code: “#define HOSE_ON *(unsigned char *)(0x6000) = 0xff” and then “HOSE_ON;”. The pump was connected to a water reservoir (a hamster bottle) on one end and a sprinkler head on the other. The water pump was chosen because of its low input voltage and small size, making it perfect for use on a small robot. The pump does pull a large amount of current thus it has its own battery pack to supply the current required for operation.
The motors gave me no problems, they were easy to install and operate using the ME11. The pump did give me some operating problems throughout the development of cliff. First, the water reservoir seemed to work best with a hole cut out of the top of the bottle to allow air to pass in while the water was being drained. Secondly, the first pump I used had two copper plates as the input voltage terminals. By soldering wire to these I was able to operate the pump with little success. The solder did not bond well to the copper plates and when the pump was activated, the battery would drain in a matter of seconds. The second pump had wires built in as opposed to the copper plates. These wires soldered to a female header worked remarkably better than the original pump.
Cliff’s objectives can only be realized by using the right sensors. Below is a table of all the sensors used in the cliff system and to what behavior they relate to.
Sensor Behavior
Ultra-violet UV TRON sensor Flame detection, pinpoint flame CDS cells (Pyro) Flame detection, pinpoint flame CDS cells (Floor) Recognizing floor markings Bump (micro switches) Object avoidance, collision avoidance Infrared emitter / detector pairs Object avoidanc e Table 1
Specifications
The main element in the UV sensor is a bulb with two terminals that operates at about 350V. By using the photoelectric effect of metal and the gas multiplication effect, the bulb is able to detect a spectrum of 185nm to 260nm while being insensitive to visible light. The UV TRON’s spectral response is illustrated in FIGURE 2.
With such a narrow range of sensitivity, the UV TRON is well suited for detecting even the smallest flame in a room full of other sources of light. The bulb also has a wide range of sensitivity:
with a slit cut vertically helped to accomplish the limiting of the range. Different slit width were tested and the range in degrees was observed. The graph of these results can be found in FIGURE 5. Attaching the sensor to a wooden board and attaching a wooden stick perpendicular to the front of the sensor measured the degrees. This I will refer to as the sensor board. A candle was then lit directly in front of the sensor approx. 21” away. The sensor board could be rotated to the left or to the right until the sensor did not detect the flame.
To measure the angle, a piece of paper was placed under the sensor board. By drawing a line where the perpendicular stick is, the angle at which the flame is no longer detected can be determined by measuring the angle drawn on the paper. Using trigonometry the angle is calculated. Even when limiting the slit to 1/16”, then range was still wide, but is suitable for locating the flame.
UV Sensor Angle Data
0
5
10
15
20
25
30
35
0 0.05 0.1 0.15 0.2 0.25 0. Slit Width (in.)
Angle (degrees)
left pivot right pivot
The second test consisted of actually hooking the output of the sensor to one of the analog ports of the HC11 and writing to the hyper terminal the value of the port. When there was no flame, the value was 1. When a flame was detected 138 was the value. It should have been around 255, but the difference is good enough (it might have to do with the fact that I connected it to 5V instead of 10V). The response was real-time and should give no timing trouble to the HC11 due to the 1 μF capacitor increasing the pulse width to 1s.
Integration to the HC11 Microprocessor Integrating the UV sensor to the HC11 can be done in a few different ways. Since the output is a pulse, the IRQ or Pulse Accumulator systems can be used to detect an edge and can generate interrupts to tell Cliff whether UV was detected or not. Another way is to use the analog input of the HC11 and read either 0V or 5V. This introduces a timing issue, but can be compensated by extending the pulse width to 1s rather than 10ms to ensure the processor detects the pulse successfully. This makes using the sensor in software easy. In testing, when there is no flame, the analog port value is 1. When the flame is detected, the value is now 138. This gives a good range to distinguish between the two cases of there being a flame and of there not being a flame. By reading the port and outputting to the hyper terminal, the response seems almost instantaneous, therefore timing is not a huge issue when using the sensor this way. Software Algorithm Since the sensor works very much like a switch, it is very hard to determine just where in the sensors range the flame actually is. CDS cells were tried to achieve this short-range
Scope The UV sensor does not have the capability to detect how far away the flame is; it can only detect its presence. For this a short-range sensor must be implemented. Cliff uses CDS cells to detect the brightness of the flame. By using two CDS cells, the flame can be pinpointed. Specifications The CDS cell is a photosensitive resistor that changes resistance under different light conditions. By using a voltage divider circuit hooked up to one of the analog ports of the HC11, the CDS cell can be used as a sensor with ease. The following circuit was built for using the CDS cell:
Figure 8
Flame Distance Left CDS cell Reading
Right CDS cell Reading No flame 13 15 6” 14 15 3” 21 22 1” 26 22 Table 2 Software Algorithm The software algorithm was simple; the analog port was read and processed accordingly. Please see Appendix for actual code. Problems Encountered Unfortunately, the Pyro CDS cells had limited success in pinpointing the flame. The readings were too different in different rooms, and the flickering of the candle flame cause problems as well. Perhaps through some intense software these problems can be overcome, but they were not for the cliff system.
Scope Since much of the design of cliff was centered around the Trinity College Fire-Fighting Robot Contest, floor CDS cells are implemented to distinguish between white and black markings on the floor. Specifications