Development of a Localization System Based on VLC Technique for an Indoor Environment
Development of a Localization System Based on VLC Technique for an Indoor Environment
Journal of Electrical Engineering and Technology. 2015. Jan, 10(1): 436-442
Copyright © 2015, The Korean Institute of Electrical Engineers
  • Received : September 05, 2014
  • Accepted : November 20, 2014
  • Published : January 01, 2015
Export by style
Cited by
About the Authors
Keon Young, Yi
Dept. of Electrical Engineering, Kwangwoon University, Korea. (
Dae Young, Kim
Corresponding Author: Dept. of Electrical Engineering, Kwangwoon University, Korea.(
Kwang Moo, Yi
Computer vision laboratory in Ecole Polytechnique Fédérale de Lausanne. (

In this paper, we develop an indoor localization device which embeds localization information into indoor light-emitting-diodes (LED) lighting systems. The key idea of our device is the use of the newly proposed “bit stuffing method”. Through the use of stuff bits, our device is able to measure signal strengths even in transient states, which prohibits interference between lighting signals. The stuff bits also scatter the parts of the signal where the LED is turned on, thus provides quality indoor lighting. Additionally, for the indoor localization system based on RSSI and TDM to be practical, we propose methods for the control of LED lamps and compensation of received signals. The effectiveness of the proposed scheme is validated through experiments with a low-cost implementation including an indoor navigation task.
1. Introduction
Indoor lighting using white LEDs has drawn much attention due to its energy efficiency [1] . Also, due to the advantage of LEDs being able to operate in high frequencies, communication using visible light (VLC) with these LEDs has drawn much interest as well [1 - 4] . Over the past few decades, many indoor localization systems (ILSs) based on IR, Ultrasound, RFID, WLAN, Bluetooth, and UWB have been proposed, but these systems have limitations such as the necessity of additional infrastructure, low accuracy, noises, electromagnetic interference, multi-path effects, low security, and etc [5 , 6] . Naturally, much research has been conducted recently on using these indoor LED lighting and VLC techniques as an alternative indoor localization signal for places where satellite global-positioning-system (GPS) signals are not available [6 - 15] . The biggest advantage of using VLC techniques for indoor localization is that no additional infrastructure is required for the installation since the system uses existing infrastructure of LED ceiling lamps, which reduces the cost of the ILS.
For VLC-based ILSs, to acquire the position of an object, positioning techniques based on angle of arrival (AoA), time of arrival (ToA), time difference of arrival (TDoA), and received signal strength indication (RSSI) are widely used [7 , 8] . AOA [9] , ToA, TDoA [7 , 10] approaches have disadvantage such as deployment of an array of image sensors, synchronization problem of all transmitters and receivers, precise delay control, and sensitivity to the phase noise [8] , [11] . These in turn bring cost and complexity problems when implementing the actual system. RSSIbased localization systems using RF carrier [12] , dual-tone multi-frequency [13] , time allocation [14] , RSSR [11] and wavelength allocation [15] have been reported in the literature. Although RF carrier and dual-tone multifrequency techniques have very good estimation accuracy, they have limitations. RF carrier technique requires additional compensation since frequency response of Tx and Rx is unstable depending on the frequency. Dual-tone multi-frequency technique needs to consider signal-tonoise ratio (SNR) for the actual system to work, since the SNR and the positioning error are inversely proportional. Additionally, these techniques based on the frequency modulation require a high-speed analog-to-digital converter (ADC), a broadband low-noise amplifier (LNA), and more computing power, thus increasing the cost of the system and the overall complexity. In case of time allocation and RSSR techniques based on time division multiplexing (TDM), their drawback is the necessity of synchronization process [6] . In addition, the maximum number of LED lamps could be limited in TDM method to prevent LED flickering. Wavelength allocation technique requires additional devices such as an optical filter, multiple Rx [6] .
Here, we focus on RSSI and TDM based localization technique for VLC-based ILS due to the fact that they do not require precise delay control, additional device, and high-performance hardware. For this type of method, identifications (IDs) are embedded to each LED lamp control signal during a given time slot, and the way they are embedded is critical for the accuracy of localization and the quality of lighting. The embedding should be done such that IDs are easily retrievable and have minimal impact on human visible light perception (i.e., having a repetitive signal of over 50 Hz to reduce eye fatigue). Also, the length of the pulse for ID needs to be kept at minimum in order to maximize the time duration of the LED being on, which prevents LED flickering. However, as the number of LED lamps increase, more bits are required to embed ID. This in turn means more bits require shorter pulse intervals, which brings cost problems when choosing devices for implementation.
Another problem when implementing the RSSI-TDM method is interference between ID pulses. The interference make it difficult to measure the RSSI value accurately because the previous lamp state (ID pulse on or off) affects the RSSI value of the receiver. Moreover, in real world scenarios, the RSSI value at the receiver is affected by the environment such as ambient light, roughness of the floor, measurement error, and so on, unlike simulation.
In this paper, we propose a new method for embedding IDs into LED lighting using the newly proposed “ID stuffing” to avoid lighting flickering and to prevent inter-pulse interference. In addition, we present a column-row lamps driving method, which minimizes the off-state of the lamp and interference between adjacent lamps. To do so, the proposed method activates only one column or row lamps at a given time slot when sending the VLC_Packet. Additionally, for RSSI/TDM-based ILS to be more practical, we embed the compensation functionality for the ambient light and the roughness of the floor. Compared to other VLC-based ILSs, our system has the following advantages; Simplicity of the implementation, low-cost, auto-synchronization of the receiver, scalability for a number of LED lamps, and good accuracy in real world scenarios.
To demonstrate the effectiveness of the proposed system, we implement an indoor localization system using LED lamps and a mobile robot equipped with an optical receiver. The LED lighting system is configured as a 4 × 4 grid with light sources placed 40 cm apart from each other on the ceiling. The receiver mounted on the robot is located on the floor (170 cm from the ceiling). With this system configuration, we have the indoor localization result of position error less than 3 cm. In addition, we show that the mobile robot can move autonomously using the proposed method.
2. System Description
As shown in Fig. 1 , our indoor localization system consists of 16 LED lamps configured as 4 × 4 grids placed 40 cm apart from each other on the ceiling, and a low-cost receiver located on the floor (170 cm from the ceiling). Each lamp is fabricated with 18 white LEDs to ensure an illuminance level of 60 lux. The viewing angle of LED (NBL-R3W) is 30 degree and the typical luminous intensity is 5.0 cd. The 16 lamps are controlled by a single 8-bit microcontroller ATmega128 ( Atmel Co .), and the lamp’s IDs are encoded as rows and columns to reduce the number of bits in representation. In short, the 50 Hz repetitive lamp driving signal is composed of the illuminating interval (which is always 1), the 12-bit signal interval (START_BIT:010, ID_BIT:CcccRrrr, END_BIT:0). The signal interval is referred to as the VLC_Packet. In case of the lamp located at column 1 row 1, the ID_BIT and VLC_Packet will be [10001000] and [010100010000] respectively, whereas in case of column 3 row 2, [00100100] and [010001001000].
PPT Slide
Lager Image
Indoor localization system with LED lamps and optical receiver mounted on the robot.
The receiver uses a low-cost photo-diode (SFH-213) to measure the strength of the light source in the visible light spectrum. The half angle of photo-diode is ±10 degree and the radiant sensitive area is 1 mm 2 . As the START_BIT is detected in the receiver, the receiver decodes the following ID_BIT and measures the signal strength. In this manner, the receiver is able to recognize a start point of VLC_Packet. Thus the proposed system does not require synchronization between the transmitters and the receiver. When decoding, if the pulse width is large, it is easy to obtain the signal strength, but the overall signal interval becomes long, thus resulting in less illuminating interval and poor lighting. This is because, in the VLC_Packet, at least nine of the pulses are ‘0’, and therefore provides poor lighting in the signal interval. Conversely, if the pulse width is short, then the illuminating interval becomes long, providing good lighting, but measuring the strength of the light coming from each lamp becomes hard. Our core contribution is the signal encoding method which overcomes this trade-off. We use short pulse intervals but insert small pieces of illuminating intervals between each pulse in the ID_BIT, which we call “ID stuffing” (borrowing the concept of bit stuffing from the Control Area Network Protocol [16] ). This insertion of stuff bits acts as if we scatter our ID signal interval onto the entire driving signal, which has an important effect. This scattering separates ID signal bits and keeps them from interfering with each other, allowing shorter pulse intervals.
3. Measuring RSSI
To show that a simple straightforward implementation without stuff bits is not feasible, we experimented with two pulse widths, 700 us and 100 us. We will also show how the stuff bits work even though we choose short pulse width.
- 3.1 RSSI without ID stuffing
In Fig. 2 , with pulse interval of 700 us, the strength of each row and column LED lamps can be easily measure by observing their strengths at their steady state. RSSI values of each column lamps are 0.35, 3.80, 1.40, and 0.20 volts, respectively. However, using 700 us gives poor illumination, since the VLC_Packet is too long (9 zeros take out 6,300 us of the 20,000 us, i.e., only 68.5% being the illuminating interval). In case of using pulse interval of 100 us, the signals do not reach their steady states and are in transient states even at the end of each pulse intervals. Thus, we used these final transient values to obtain the RSSI, the values of each column lamps are 0.35, 3.25, 1.55, and 0.35 volts, respectively. However, the quality of the measured RSSI is poor in this case.
PPT Slide
Lager Image
Measured signal strength of lights to driving pulse width of 700 us (left) and 100 us (right).
To figure out the relation between the receiver location and RSSI of the lamp, we measured RSSI of each column and row lamps while the receiver location varies from 0 to 120 cm along the perpendicular direction of the column and row lamps.
We only present the characteristic curves of the column lamps ( Fig. 3 : left) because the row lamps showed almost same characteristics. From these curves, it is possible to obtain the characteristic curves between the receiver location and the RSSI as shown in Fig. 3 (We only denoted the 2 nd column lamps case at right hand side, and we named it RSSI curve of the 2 nd column lamps.).
PPT Slide
Lager Image
Relation between receiver location and RSSI of the column lamps.
In Fig. 3 (left), the measured results of RSSI with pulse interval of 100 us, we can see a peak at 40 cm where the 2 nd column lamps (thick line) are placed. To get the distance from the RSSI, we have to use the right hand side figure, re-plotting the data according to distances. However, as we can see in the case of 2 nd column lamps ( Fig. 3 : right), it is not feasible to get the distance from the RSSI because the displacements of the receiver from the peak point are not symmetric, that is, the RSSI changes in right hand side of the peak and the changes of the other side are different (left hand side signal is strong). This phenomenon results from the interference of the previous ID pulse.
- 3.2 RSSI with ID stuffing
To prevent the interference of the previous ID pulse, we employed bit stuffing method between ID pulses.
In Fig. 4 , stuff bits of duration 500 us (red dashed line) are inserted just before the row id pulses of duration 100 us, which results in a longer VLC_Packet without losing the illumination interval (illumination interval is scattered inside the signal interval). Unlike the results of the straightforward approach in Fig. 2 and Fig. 3 , using stuff bits gives accurate measurements as shown in Fig. 5 .
PPT Slide
Lager Image
LED lamps driving signal with 9 stuff bits (Column-1 and Row-1 turn on).
PPT Slide
Lager Image
Measured signal strength of the lamps with stuff bits.
The measured RSSI values for each row lamps, under peak values of the arrow marked interval, are 0.95, 3.75, 1.85, and 0.70 volts, respectively. The measurement results for the receiver position changes are similar to Fig. 3 but with symmetric results. Thus we can have unique RSSI for a given distance as shown in right hand side figure. This allows accurate estimation of the distance from the measured signal strength.
However, the characteristic curve shown in Fig. 6 varies depending on the location of the receiver or ambient lighting. Specifically, the signal shown in Fig. 5 is shifted up without changing shape in daytime, whereas it shifted down in nighttime. This effect could be minimized with simple addition since we know the RSSI value of the END_BIT interval where all LEDs are turned off, when the characteristic curve was established. We also have to compensate RSSI curve, because the illuminance of the floor is not even everywhere. Simple experiment reveals this problem as shown in Fig. 7 .
PPT Slide
Lager Image
Relation between receiver location and RSSI of 2nd column lamps after normalization.
PPT Slide
Lager Image
RSSI curve of 2nd column lamps for different locations.
In Fig. 7 , the receiver location varies from 0 to 120 cm along perpendicular direction of 1 st row lamps (red line) and the center of two row lamps (blue line). It is obvious that we have to use different RSSI curve to get more exact location. However we cannot decide which RSSI curve is fit for the current measure because the receiver location is unknown. Thus we employed normalization technique to get the unified RSSI curve that is the average curve of shown in Fig. 7 (right), even though averaging errors exist.
The normalization of the signal is performed with the maximum value and the minimum value of the signal measured. The maximum value is obtained by averaging the value of illuminating or stuff pulse intervals, and the minimum value is set with the negative peak value in STOP_BIT interval. The detailed normalization process is as follows:
STEP 1 : Compensate ambient lighting
PPT Slide
Lager Image
STEP 2 : Normalize the compensated signal
PPT Slide
Lager Image
4. Indoor Localization
After the RSSI measurement, we convert the measurement to the distance between the receiver and column or row lamps. For this conversion, we need a function representing the RSSI curves shown in Fig. 7 . Here we state how to obtain the function, and in turn, the location of the receiver from the measured signals.
- 4.1 RSSI function
According to the light diffusion equation [17], this relationship can be approximated as follows:
PPT Slide
Lager Image
where l is the distance between the light sources s and the receiver and s is the signal strength measure. Here, we have two exponential terms since we have multiple lamps contributing to the measurements (one row or column at each time). The number of exponential term should be equal to the number of lamps contributing to the measurement, but we found experimentally that two was sufficient. In our experimental setup, a 1 =1112, b 1 = 0.0341, a 2 = 175.6, b 2 = −4.1E−05.
- 4.2 Measuring receiver location
To obtain the receiver location using the RSSI function, since we use the projected displacement along the ground plane instead of the distance between the lamps and the receiver, we have to use the following trigonometry relation.
PPT Slide
Lager Image
where 170 is the vertical distance between the lamps and the ground plane, l is the distance between the lamps and the receiver, and r is the projected displacement from the column(or row) lamps and the receiver.
Only three projected displacements are chosen for calculating the distance d because the slope of the RSSI curve shown in Fig. 7 is steep where the signal is weak. In other words, the weakest signal has low signal-to-noise ratio, and adding it only harms the overall estimation. Consequently, we can obtain the position of the receiver with this three selected displacements using the following equation.
PPT Slide
Lager Image
where si indicates the selected displacement. For instance, if r 1 is the projected displacement of the weakest signal among them, we set r 2 , r 3 , and r 4 to s 1 , s 2 , and s 3 , respectively. The ‘n’, the number of starting column lightings chosen, serves to add the offset to the strongest lightings from the origin. As we can see in Fig. 8 , it is obvious that we have to add two times of the lighting layout span, 40 cm, to the average of the selected displacements, the 2 nd term of the right hand side (5). If r 4 is discarded when the receiver locates near 2 nd LED lamps, only one lighting layout span should be added.
PPT Slide
Lager Image
Selection method of the displacement d.
As a special case, the receiver located near the edge of the lighting area, any side of the Fig. 8 , only two distances are available if the others are exceeded their limits too much because their signal strengths are weak. For these cases, the position of the receiver is obtained by the following equation.
PPT Slide
Lager Image
The position of the receiver from row lamps is obtained by the same approach, which gives us 2D location of the receiver on the ground plane.
- 4.3 Indoor location example
To demonstrate the usefulness of the proposed method, we implemented the 4 × 4 LED lighting and an optical receiver on the micro-mouse as shown in Fig. 9 . In order to check the position of the receiver, the orthogonal projection of the position of LEDs onto the ground plane was marked on the floor.
PPT Slide
Lager Image
Indoor localization system with LED lighting
We conducted two kinds of experiments. Firstly, we checked the performance of the localization capability. We manually placed the receiver on a 10 cm grid and evaluated the localization error at each grid point. We then performed navigation control of the mobile robot with the position data measured by the receiver
As we can see in Fig. 10 , the error, Euclidean norm of the error of each axis, remains under 3 cm. Although the manual localization of the receiver may contain some error since we located the receiver by hand, we can say that the performance of the proposed system is reasonably accurate for the indoor localization comparing the results in [11] , the maximum and mean values of location errors were 3.89 cm and 1.68 cm, respectively in simulation, whereas, in experiments, they had the error of 10.29 cm and 3.24 cm.
PPT Slide
Lager Image
Distribution of the localization error
For the navigation, we developed a program ( Fig. 11 , we call it host after this) that can communicate with the mobile robot (micro-mouse built with stepping motors) via network. The grid of the screen is set by 5 cm, and the 16 circles denote the projection of LEDs. The five red circles shown in the figure are the target points which the robot has to move through.
PPT Slide
Lager Image
Example of the indoor navigation
The receiver was mounted on the mobile robot to measure the location as shown in Fig. 9 (right). The orientation of the robot was estimated in the host computer based on the changes of the robot location, since the proposed localization system can only measure the position of the robot. The initial orientation of the robot was calculated by moving the robot 5 cm backwards, which is a bit longer than the precision of the receiver, and then the robot was moved forward to the origin P1. Then, the host initiated the rotation command to correct the heading of the robot and the move command to step forward. In this manner, robot passed through the target points marked on the screen. The trajectories of the robot are marked with dark circles around straight lines connecting 5 target points.
The position error ( Fig. 11 : right, small dots stand for error at the target points P1-P5) did not exceed 9 cm, which is different from the measured error of the first experiment. The major reason cause of difference is the changes of the receiving angle of the light, which comes from the vibration of the robot on the uneven floor. However the robot completed its mission with the error less than 3 cm.
Currently, we are conducting a follow-up study on recognizing the direction and compensating the inclination of the receiver to make the proposed system more reliable.
5. Conclusion
We have developed an indoor localization device that embeds localization information into an indoor LED lighting system. The key idea of our scheme was to use “bit stuffing method.” Using stuff bits, our method was able to measure signal strengths independent of the previous signal. This allowed our implementation to use a simple function to measure the location of the receiver. The stuff bits also scattered the parts in the signal where the LED was turned on, enabling our scheme to provides quality indoor lighting as well, which was underconsidered in previous works. The proposed bit stuffing method would be useful for RSSI/TDM-based indoor localization applications. The effectiveness of the proposed scheme was validated through experiments with an actual low-cost implementation and navigation example, showing promising results.
This work was supported by a research year grant 2012 at the Kwangwoon University
Keon Young Yi He received the B.S., M.S., and PhD. degree in Electrical Eng. from Hanyang Univ. in 1982, 1984, and 1993, respectively. He is a Professor in the Dept. of Electrical Eng., Kwangwoon Univ., Korea. His research interests include adaptive control, robotics, real-time system, and microprocessor applications.
Dae Young Kim He received the B.S. degree in Control and Measuring Eng. from Chosun Univ. in 2006, his M.S. degree in Electrical Eng. from Kwangwoon Univ. in 2009. He is a Ph.D. candidate in Electrical Eng., Kwangwoon Univ., currently. His research interests include fuzzy control, LED lightings, and location based system.
Kwang Moo Yi He received his B.S. and Ph.D. degrees from the Department of Electrical Eng. and Computer Science of Seoul National Univ., Seoul, Korea, in 2007 and 2014, respectively. Currently, he is a post-doctoral researcher in the computer vision laboratory in Ecole Polytechnique Fédérale de Lausanne. His research interests include computer vision, visual tracking, augmented reality, motion segmentation, motion detection, unsupervised Bayesian learning, object recognition and so on.
O’brien D. , Zeng L. , Le-Minh H. , Faulkner G. , Walewski J. W. , Randel S. “Visible Light Communications:challenges and possibilities,” Personal, Indoor and Mobile Radio Communications, 2008. IEEE 19th International Symposium on Canes 15-18 Sept. 2008 1 - 5
Komine T. , Nakagawa M. 2004 “Fundamental analysis for visible-light communication system using LED lights,” Consumer Electronics, IEEE Transactions on 50 (1) 100 - 107    DOI : 10.1109/TCE.2004.1277847
Le-Minh H. , O’brien D. , Faulkner G. , Zeng L. , Lee K. , Jung D. , Oh Y. , Won E. T. 2009 “100-Mb/s NRZ visible light communications using a postequalized white LED,” Photonics Technology Letters, IEEE 21 (15) 1063 - 1065    DOI : 10.1109/LPT.2009.2022413
Le Minh H. , O'Brien D. , Faulkner G. , Zeng L. , Lee K. , Jung D. , Oh Y. 2008 “High-Speed Visible Light Communications Using Multiple-Resonant Equalization, ” Photonics Technology Letters, IEEE 20 (14) 1243 - 1245    DOI : 10.1109/LPT.2008.926030
Gu Y. , Lo A. , Niemegeers I. 2009 “A survey of indoor positioning systems for wireless personal networks,” Communications Surveys & Tutorials, IEEE 11 (1) 13 - 32    DOI : 10.1109/SURV.2009.090103
Yang S.-H. , Jung E.-M. , Han S.-K. 2013 “Indoor Location Estimation Based on LED Visible Light Communication Using Multiple Optical Receivers,” Communications Letters, IEEE 17 (9) 1834 - 1837    DOI : 10.1109/LCOMM.2013.070913.131120
Jung S.-Y. , Hann S. , Park C.-S. 2011 “TDOA-based optical wireless indoor localization using LED ceiling lamps,” Consumer Electronics, IEEE Transactions on 57 (4) 1592 - 1597    DOI : 10.1109/TCE.2011.6131130
Do T.-H. , Yoo M. 2014 “TDOA-based indoor positioning using visible light,” Photon Netw Commun 27 (2) 80 - 88    DOI : 10.1007/s11107-014-0428-4
Haruyama S. , Nakagawa M. , Yoshino M. “High-accuracy Positioning System using Visible LED Lights and Image Sensor,” Radio and Wireless Symposium, IEEE 439 - 442
Panta K. , Armstrong J. 2012 “Indoor localisation using white LEDs,” Electronics Letters 48 (4) 228 -    DOI : 10.1049/el.2011.3759
Jung S.-Y. , Park C.-S. “Lighting LEDs based Indoor Positioning System using Received Signal Strength Ratio,” Proceedings of 3DSA2013 Osaka 26-28 June 2013 8 (5)
Kim H.-S. , Kim D.-R. , Yang S.-H. , Son Y.-H. , Han S.-K. 2013 “An Indoor Visible Light Communication Positioning System Using a RF Carrier Allocation Technique,” Lightwave Technology, Journal of 31 (1) 134 - 144    DOI : 10.1109/JLT.2012.2225826
Luo P. , Zhang M. , Zhang X. , Cai G. , Han D. , Li Q. “An indoor visible light communication positioning system using dual-tone multi-frequency technique,” Optical Wireless Communications, 2nd International Workshop on Newcastle 21 Oct. 2013 25 - 29
Yang S.-H. , Kim D.-R. , Kim H.-S. , Son Y.-H. , Han S.-K. 2013 “Visible light based high accuracy indoor localization using the extinction ratio distributions of light signals,” Microwave and Optical Technology Letters 55 (6) 1385 - 1389    DOI : 10.1002/mop.27575
Yang S.-H. , Kim H.-S. , Son Y.-H. , Han S.-K. “Reduction of optical interference by wavelength filtering in RGB-LED based indoor VLC system,” the 16th Opto-Electronics and Communications Conference Taiwan 4-8 July 2011 551 - 552
Hartwich F. 2012 “CAN with flexible data-rate,”
Jacques S. L. , Pogue B. W. 2008 “Tutorial on diffuselight transport,” J. Biomedical Optics 13 (4) 041302 -    DOI : 10.1117/1.2967535