## 1. Introduction

Generally, the mobile robots are researched and used in many applications. The fundamental method of navigation is localization, which includes aspects such as sensing, mapping, localization, planning and control. In order to we build the navigation system for mobile robot operating in unmodified environments, we must know the mobile robot’s position in reference frame. Typically reference frame is a Cartesian or we can specify the landmark as reference position. The dead reckoning based on odometry is widely to identify and classify landmarks. Dead reckoning systems estimate the position of the mobile robot with respect to an initial point by measuring linear and angular velocities or accelerations. There are also hybrid models, which have sensor systems of both dead reckoning and landmark recognition. Dead reckoning is the estimate of current position based on a previously determined position or estimated speeds from a known past position over time. This can also determine the future position by projecting an ordered course and speed of advance from a known present position. A disadvantage of dead reckoning is that new positions are calculated solely from previous positions. The errors of the process are cumulative, so the error in the position fix grows with time (Hans-Joachim von der Hardt & Didier Wolf Rene Husson, 1996; Hye Ri Park et al., 2009). Odometry is widely used in mobile robots to estimate their position relative to reference frame. This method estimates the position over time with errors accumulation due to the integration of velocity measurements (Cristina Tar in Sauer and Hermann Brugger, 2001; Houshangi, N. and Azizi, F., 2006; Agostino Martinelli, 2002). The navigation system for mobile robot based on odometry has typically problem with inaccuracy. Because of the odometry problems navigation systems for mobile robot application cannot work solely on dead reckoning. This is the reason that the navigation system needs the addition of sensory information. Additional sensors can be defined as information provided to assist the accomplishment of a task by a system. Practically, sensor fusion refers to the integration process where the different sources of sensory information are combined into one representational format. Typically in navigation systems sensory information can be fused from complementary sensors, redundant sensors or even from a single sensor over a period of time. The advantage of sensory fusion provides uncertainty and noise reduction, failure toleration and extended flexibility of sensor ability.

## 2. Sensor system in navigation application

The navigation system plays very an important role and challenging competence for mobile robot. In navigation application, a mobile robot must interpret its sensors data to extract environment information, with which the mobile robot can determine its position. After mobile robot can localize its position, it must decide how to act to achieve its purpose. Lastly, the mobile robot must control its drive system to achieve the desired path. The localization of mobile robot’s position has significant research,so in this chapter we introduce mainly the navigation system for the successful localization with relative and absolute instruments only. The increment distance of the robot‘s movement sensed with wheel encoders is integrated to calculate position. Because measurement errors from encoders are integrated, the position error is accumulated over time. Using additional sensors can help to reduce the cumulative errors. There are many error sources of differential encoder system from environmental factors, such as misalignment of the wheels, uncertainty of wheel diameter, variation in the contact point between wheel and floor and slipping.

### 2.1. The differential encoder system in navigation application

The basic concept of differential encoder system is the transformation from wheel revolution to linear translation on the floor. This transformation is affected with errors by wheel slippage, unequal wheel diameter, inaccurate wheel base distance, unknown factor and others. The real increment translation of wheel encoder is prone to systematic and some non-systematic error. Optical incremental encoders are widely used in industries for shaft angular displacement measurement. Normally the encoder is mounted on the motor shaft.

We can estimate the position and heading angles of the mobile robot using the feedback information from the two encoders on the left and right wheels of mobile robot shown in Fig.1. The distance and heading increment can be obtained as follows.

Then the position can be estimated as

Where

From equations (1) - (5) hold true when wheel revolutions can be translated accurately into linear displacement relative to the floor. We can calculate the integration of incremental motion information over time using the information from shaft encoders. But since the encoder measurement is based on the wheel shaft, it leads inevitably to unbounded accumulation of errors if wheel slippage occurs. Specifically, orientation errors will cause large lateral position errors, which will increase proportionally with the distance traveled by the robot. The differential encoder as the basic system can read the sensor information from encoders mounted at the left and right wheel shaft. The encoder information will be converted to

For the differential encoder system the position and orientation can be calculated by equation (3), (4) and (5). In Fig.2 shows the simple block diagram of navigation system with two encoders mounted at the wheel shaft.

### 2.2. Complementary sensors for differential encoder system

Although the differential encoder system for mobile robot is practice in navigation application, the mobile robot’s position is estimated over time with unbound errors accumulation due to the integration of sensor information. To construct a reliable navigation system, sensor fusion is considered to improve the position estimation generated by differential encoder system. Many researchers worked on sensor fusion with variety of sensors.

#### 2.2.1. Gyroscope

Gyros measure rotational rate, which can be integrated to yield orientation. Typically, Gyroscope is mounted at the mobile robot. Many researchers work on fusion between encoder and gyroscope (Komoriya, K. and Oyama, E., 1994; Houshangi, N. and Azizi, F., 2006)

#### 2.2.2. Compass

Compass is a navigational instrument for determining direction relative to the Earth's magnetic poles. It can be used to calculate heading and provided a much improved navigational capability. A compass is any magnetically sensitive device capable of indicating the direction of the magnetic north of a planet's magnetosphere. In navigation compass is introduced to capture the navigating direction information including direction angle and angular velocity (Yikang Yang, 2002).

#### 2.2.3. Ultrasonic sensor

Ultrasonic sensor generates an ultrasonic pulse in a particular direction. If there is an object in the range of this pulse, part or all of the pulse will be reflected back to the transmitter as an echo and can be detected through the receiver. By measurement of the difference in time between the transmitted pulse and the received echo, it is possible to determine object’s range. In navigation system, ultrasonic sensors play an important role for automatic guidance (Miao Yu and Li Shu-qin, 2010; Tao Guo and Silamu, W., 2009).

#### 2.2.4. Camera

Camera is used to determine the relationship between the three-dimensional geometric location of one point and its corresponding point in the image. In many applications for navigation system, camera is utilized to detect landmarks and match them to pre-provided map information for localization. They implement matching process using environmental objects such as walls or obstacles. (Zhang, J., et. al, 2010; Chen, Yen-Sheng, et. al, 2010)

#### 2.2.5. Accelerometer

Accelerometer measures static acceleration forces such as gravity, allowing it to be used as a tilt sensor (Surachai, P., 2009).

#### 2.2.6. Light intensity sensor

Light intensity sensor system measures light in analog and convert to digital values. In a Cartesian coordinate system the robot’s current position can be determined using the differences between opposite light intensity sensors in X and Y direction due to reference frame (Surachai, P., 2009).

## 3. Sensor fusion algorithm

Consider an algorithm to comprise of two sensors, which are sensor A and B. The data processing algorithm, which can combine the information from sensor A and B generates the proper estimate. The measurements of sensor A and B are given as

where

The estimate of

where

To fuse information of two sensors corrupted by error, the optimal estimation (Gelb, 1974) can be expressed as follows

where

Generally, the differential encoder system generates incremental distance and heading and with integration of them over time the position and orientation are estimated. In this work the differential encoder is used as basic system in navigation purpose for mobile robot. To improve the accuracy of basic drive system the complementary systems with additional sensors are combined by sensor fusion algorithm. The complementary system can give the information both increment position and orientation and also both absolute position and orientation. This complementary information will be combined with information generated by differential encoder system with fusion algorithm.

### 3.1. Sensor fusion between differential encoder as basic system of mobile robot and gyroscope as relative complementary system with incremental rotation

The creation of relative complementary for differential encoder sytem is the compensation of incremental translation and rotation. With the compensation of additional relative sensor, it can reduce error directly generated by encoders. Gyroscope is widely used to compensate error in many applications. Many researchers on robotic field work on about gyroscope sensor (Komoriya & Oyama, 1994; Karthick Srinivasan and Jason Gu, 2007). The dominant gyroscope random errors are the random bias and the scale factor error. Generally, the gyroscope output signal is not zero even though there is no input and the effect of the earth rotation is neglected.

The bias error of gyroscope is the signal output from the gyroscope when it is not any rotation. The bias error tends to vary with temperature and over time. The scale factor relates the output of the gyroscope to rotation angle of corresponding gyroscope about its input axis. By error of the scale factor in gyroscope it means the deviation between the actual scale factor and the nominal scale factor. The output beat frequency changes with the changing of the scale factor when the input rate is the same, which affects precision of gyro directly. This chapter introduces relative complementary system of incremental rotation

The sensor fusion algorithm in this chapter we use the simple algorithm by equation (9), so the formular of fusion algorithm is given as

where

### 3.2. Sensor fusion between differential encoder as basic system of mobile robot and tilt sensor as relative complementary system with incremental translation

The tilt sensor, an accelerometer or inclinometer is one of the most common inertial sensors, which is dynamic sensor and measures static acceleration forces such as gravity. There are advantages by using of an accelerometer that is opposed by using inclinometer such as inclinometers can only detect when the tilt has exceeded some thresholding angle. This is equivalent to inertial acceleration minus the local gravitational acceleration, where inertial acceleration is understood in the Newtonian sense of acceleration with respect to a fixed reference frame, which the Earth is often considered to approximate. An accelerometer at rest on the Earth's surface will actually indicate 1 g upwards along the vertical axis. To obtain the inertial acceleration, this gravity offset must be subtracted.

Accelerometers are available that can measure acceleration in one, two, or three orthogonal that implement capacitive sensing output a voltage dependent on the distance between two planar surfaces. The accelerometer and inclinometer as shown in Fig.5(a) and Fig.5(b) are capable of measuring both positive and negative tilt. The tilt sensor can generate the information, which can be converted to distance increment in X and Y coordinate

In X coordinate:

In Y coordinate:

where

### 3.3. Sensor fusion between differential encoder as basic system of mobile robot and light intensity sensor system as relative complementary system with incremental translation

The analog light transmitter makes it possible to convert analog light values. The light value can be transmitted in parallel on 8 channels with sensors from Inex-Company, which are independently programmable, and can thereby be compared to 8 different threshold values.

The light intensity system is integrated on the mobile robot as shown in Fig.7. The light intensity system consists of four light intensity sensors and main controller. It is used to measure light intensity in north, south, west and east direction in environment (Surachai, P., et. al, 2009; Surachai, 2010b).

In a Cartesian coordinate system we can determine the robot’s current position using the differences between opposite light intensity sensors shown in Fig.8. The incremental distance by light intensity sensors from position 1 to position 2 and can be calculated by

To eliminate the influence of changes in overall light intensity, we can normalize the readings for

To satify equation (13) and (14), we assume that for all environments the overall intensity of light is constant, so that

The information from encoders and light intensity sensor can be combined by equations in X coordinate as

and in Y coordinate as

where

### 3.4. Sensor fusion between differential encoder as basic system of mobile robot and compass as absolute complementary system of orientation

Absolute positioning systems use the geometry relation between the position and environment map (Byoung-Suk Choi, 2009). Some methods have been proposed for robot position reference. One of them has designed landmarks placed at specified positions with respect to the reference coordinate system. The current position and orientation of the robot can be obtained by geometry transformations between robot sensors and these landmarks. Kabuka and Arenas (1987) researched on absolute positioning by using barcodes. Kim (1996) described the experiments on orientation recovery of mobile robot by using compass. Ojeda, L. (2000) discussed on the use of electronic compasses in mobile robots with different error sources and solutions to correct these errors. From the geometry measurement the Cartesian coordinates (X, Y, θ) can be specified under certain assumption. If the position of the geometry reference is known, the position of mobile robot can be calculated usually with good accuracy. The compass can generate direct the output of absolute orientation

In this chapter the CMPS03 compass module shown in Fig.11 is used, specifically designed for mobile robot as an aid to navigation with resolution ± 0.1 (Surachai, P., 2008).

The information from encoders and compass sensor can be combined by equations (17).

where

### 3.5. Sensor fusion between differential encoder as basic system of mobile robot and trilateration ultrasonic positioning system (TUPS) as absolute complementary system of position

The trilateration ultrasonic system is designed for mobile robot’s absolute positioning. The three ultrasonic bases comprise one triangular area and each base measures the distance between itself and the robot, respectively. From the three distance measurements, the position of the mobile robot is determined as precisely as possible. The three circles are obtained by cutting three spheres whose centers are positions of bases **U1**, **U2** and **U3** and radiuses are **d1**, **d2** and **d3** as shown in Fig.13. If the measurements were ideally precise conducted, the mobile robot would be localized where the three circles intersect each other. However, the three circles do not intersect each other at one unique position since an actual measurement cannot be ideal determined. Therefore, the optimal point needs to be approximated, so the three points do not coincide with each other due to the measurement error, they actually comprise a triangle. The center of gravity of this triangle is used as an optimal point of mobile robot. It uses the principle of distance measurement that needs at least two landmarks with Cartesian’s reference position. We can calculate the object’s absolute position by using of the relation of distance measurement from ultrasonic bases (Surachai Panich and Nitin Afzulpurkar, 2010).

With two ultrasonic distances from **U1O** and **U2O** and triangular relationship of **U1U2O** from Pythagorean Theorem, the robot’s position can be calculated and detailed later. From Fig.14 two ultrasonic bases send two intersection points, which are possible to be right (**O**) and false (**O'**) solution, so the third ultrasonic play an important role to specify the right solution. In work space limited in half area only two ultrasonic bases are required to determine the right solution. The first ultrasonic base is located at point **U1 (Xu1, Yu1)** and another ultrasonic base is placed at point **U2 (Xu2, Yu2)**. Before the object’s position can be calculated, it must be considered that the intersection of two ultrasonic bases occurs or not.

If the distance between point **U1** and point **U2** is more than the summation of distance reading from ultrasonic base 1 and 2, the intersection of two ultrasonic does not occur.

Next, the robot’s position (**O**) can be calculated from Pythagoras. From ultrasonic base 1, the relation is given as

and from ultrasonic base 2 is

From the subtraction of equation (18) and (19) the result is obtain as

, then

The angle (θ) is calculated as

Finally, the robot’s position is

The information from encoders and the trilateration ultrasonic system can be combined by equations (25).

The position with fusion algorithm in X coordinate is

and the position with fusion algorithm in Y coordinate is

where

## 4. Simulation result

To explain the result of sensor fusion between differential encoder system and complementary sensor system, experiment result is simulated by Matlab software with real sensor information. For experiment, we select information from gyroscope to combine with differential encoder system for fusion of incremental rotaion. In experiment, the Pioneer-II mobile robot is used as the basic system driven by differential encoder system and gyroscope CRS03 is integrated on plate of Pioneer-II. The mobile robot is run in square shape and the sensor information both encoders and gyroscope are recorded and then we use the Matlab software to calculate error variance of encoder and gyroscope. From experiment we received good results, which can support our fusion algorithm as shown in Fig.16. Gyroscope information has better accuracy than differential encoder system as same physical parameter, so the accuracy of orientaion from differential encoder system integrated with gyroscope is better than from only differential encoder system.

## 5. Conclusion

In this chapter many complementary sensors for mobile robot driven with differential encoder system. Finally, we propose the idea for selection of complementary sensor system to combine sensor information of differential encoder system for increase of position accuracy. We can use the electric switches to control sensor information stream as shown in Fig.17 depended on task and the environment condition, which mobile robot has encounted. For example, if the mobile robot needs information from compass to combine with the differential encoder system, electric switch E will be enable. Then information from compass sensor will be only combined with differential encoder system as same physical parameter. For further work we can use more complicated algorithm, for example fuzzy logic, neural network or artificial intelligent system to fuse information between two sensors.