Mobile Phone Camera-Based Indoor Visible Light Communications With Rotation Compensation

You might also like

Download as pdf or txt
Download as pdf or txt
You are on page 1of 9

Mobile Phone Camera-Based Indoor

Visible Light Communications With


Rotation Compensation
Volume 8, Number 2, April 2016

Willy Anugrah Cahyadi


Yong Hyeon Kim
Yeon Ho Chung, Member, IEEE
Chang-Jun Ahn, Senior Member, IEEE

DOI: 10.1109/JPHOT.2016.2545643
1943-0655 Ó 2016 IEEE
IEEE Photonics Journal CVLC With Rotation Compensation

Mobile Phone Camera-Based Indoor


Visible Light Communications With
Rotation Compensation
Willy Anugrah Cahyadi,1 Yong Hyeon Kim,1
Yeon Ho Chung,1 Member, IEEE, and
Chang-Jun Ahn,2 Senior Member, IEEE
1
Department of Information and Communications Engineering, Pukyong National University,
Busan 608-737, South Korea
2
Department of Electrical and Electronics Engineering, Chiba University, Chiba 263-0022, Japan

DOI: 10.1109/JPHOT.2016.2545643
1943-0655 Ó 2016 IEEE. Translations and content mining are permitted for academic research only.
Personal use is also permitted, but republication/redistribution requires IEEE permission.
See http://www.ieee.org/publications_standards/publications/rights/index.html for more information.

Manuscript received November 21, 2015; revised March 17, 2016; accepted March 20, 2016. Date
of publication March 23, 2016; date of current version April 12, 2016. This work was supported by the
National Research Foundation of Korea under Grant 2015R1D1A3A01017713, funded by the Ministry
of Education through the Basic Science Research Program. Corresponding author: Y. H. Chung
(email: yhchung@pknu.ac.kr).

Abstract: Downlink visible light communication (VLC) using a mobile phone camera is
presented. The proposed scheme consists of an 8  8 light-emitting diode (LED) array for
data transmission and eight white LEDs for an adequate level of illumination. The white
LEDs are also used to acquire camera focus and light metering. Moreover, an efficient ro-
tation compensation feature is provided in the form of a special header frame called key-
frame to allow multiple users to receive the data simultaneously at 90°, 180°, and 270°
orientations. Unlike conventional LED allocation methods for the rotation compensation,
this keyframe-based method improves the data rate significantly. The experimental results
demonstrate that the data rate achieves up to 1280 bps, whereas the theoretical simula-
tions exhibit a potential data rate of up to 5120 bps using the identical LED array. The pro-
posed scheme can be considered to be an efficient short-range camera-based VLC in an
indoor environment with advanced features such as illumination, relatively high data rate,
and robust camera rotation compensation for multiuser access.

Index Terms: Camera-based visible light communication (CVLC), illumination, keyframe,


visible light communication (VLC).

1. Introduction
Advancement in high intensity light emitting diodes (LEDs) has enabled wider applications such
as lighting indoors and outdoors, traffic lights, automotive lights, and signboard display. A signif-
icant demand on higher bandwidth, especially in last-mile wireless access, has brought about a
new paradigm of wireless transmission, considering already congested radio-frequency (RF)
bands. Visible light communication (VLC) technology exploits vast unregulated visible light
spectrum and is considered an alternative or complementary to RF communications [1].
Meanwhile, over the last two decades, mobile phones have been equipped with a built-in com-
plementary metal-oxide-semiconductor (CMOS) camera. The mobile phones capture videos in
high definition resolution of at least 1280  720 pixels and a smooth motion of at least 30 frames
per second (fps). Reflecting this popularity and inherent advantages, camera-based VLCs (CVLCs)

Vol. 8, No. 2, April 2016 7903308


IEEE Photonics Journal CVLC With Rotation Compensation

have recently emerged [2]. As it implies, the CVLC utilizes a mobile phone CMOS camera as a re-
ceiver instead of photodiodes, in order to capture on-off states from transmitting LEDs [3].
The CVLC offers some inherent advantages over photodiode based VLCs (PVLCs). The
CVLC acquires 2-D data in the form of image sequences and thus can transmit more informa-
tion, compared to the PVLC acquiring only color and intensity [3], [4]. The CVLC, however,
suffers from some drawbacks in which image data requires high speed processing for detection
and recognition [3]. In addition, cameras have a limited capture rate and also need to deal with
focus and light metering to have an optimum identifiable image [2], [5]. Similar to this CVLC,
there is another short range data access scheme called quick response (QR) code. Although
this code is already widely available, it offers very limited applications, due to the fact that it is
confined to a small size data transmission at a data rate of lower than 3 kilobytes. Recently,
studies have focused on a larger data CVLC scheme with a view to expanding its applications
[2], [4], [6], [7].
As an attempt to address the main issues of CVLC, a few studies were reported in the litera-
ture. The limited frame rate of CVLC was compensated by employing both multiple colors and
spatial diversification in an LED array [6], [7]. With respect to ambient light issues in CVLC,
some authors suggested a special differential signaling scheme to counter this adverse effect
[7]. In their work, however, some important issues such as focus and capture rate were not de-
scribed in detail. An approach to addressing rotation compensation was also reported using
color channel marker at an LED array, in order to enable simultaneous multiuser reception with
each user allocated with different angles [6]. Unfortunately, this method would result in data rate
reduction, because one of the color channels needs to be reserved for this rotation marker.
In addressing illumination in CVLC transmission environments, some CVLC schemes have
implemented a single LED for both illumination and data transmission [8]. It transmits the data
by varying the LED intensity without turning LED off completely. This approach would limit the
achievable data rate. Alternatively, the authors increased the data rate by adding more LEDs for
transmission [6], [7]. In principle, they consider illumination as interference.
The proposed scheme addresses the important issues of CVLC, i.e., focus and capture rate.
It provides illumination and also offers rotation compensation without significant reduction in
data rate. The proposed scheme employs eight white LEDs for illumination, as well as more ac-
curate focus. For data transmission, we utilize 64 LEDs and obtain an achievable experimental
data rate of up to 1280 bps. In CVLC, there often exists discrepancy between camera capture
rate (CR) and LED flickering rate (LFR). The CR in CVLC is viewed as a camera sampling rate,
whereas the LFR is a rate at which an LED transmits the data. We present the relationship
between CR and LFR. Moreover, we propose a special frame called keyframe to provide the
rotation compensation at the expense of slight data rate reduction. This keyframe also acts as a
time synchronization marker in the present system. With respect to target applications, it is envi-
sioned that although there would be various applications, the proposed scheme can facilitate
efficient exhibition and display, where visitors can easily access the information on display items
through their smartphone cameras.
Section 2 describes the proposed CVLC system and experimental results, and analysis is
provided in Section 3. Finally, conclusions are drawn in Section 4.

2. Proposed CVLC System

2.1. System Overview


The proposed scheme employs an 8  8 dot matrix LED array transmitter that increases data
rate and performs the rotation compensation for multiple users. Fig. 1(a) shows the dot matrix
LED array and white LEDs. The white LEDs are uniquely placed for illumination and are also
used as a reference for light metering and camera focus. The proposed scheme allows multiple
users through rotated cameras in the form of spatial diversification. The received images are
examined using the differential decision threshold (DDT) [9].

Vol. 8, No. 2, April 2016 7903308


IEEE Photonics Journal CVLC With Rotation Compensation

Fig. 1. Proposed CVLC system. (a) Dot matrix LED array transmitter with illumination LEDs. (b) Ex-
perimental setup.

Fig. 2. Block diagram of the proposed system.

Fig. 1(b) shows the experimental setup of the proposed CVLC system. Binary data is gener-
ated and transmitted via an LED driver. It transmits the data through a red color 8  8 dot matrix
LED array transmitter. In the CVLC, a mobile phone acts as the receiver. The mobile phone
captures the data transmission from the dot matrix LED array transmitter. Finally, the binary
data is compared to the original transmitted data.
The detailed process of the proposed system is illustrated in Fig. 2. The data generation block
produces random data and inserts the keyframe. The mapping block maps the data according
to the LED array addresses. Then, the transmission to the optical channel is carried out by the
dot matrix LED array controlled by the LED driver. Reception is carried out using the mobile
phone camera. The demapping process performs time synchronization based on the detected
keyframe. The demapping also employs spatial synchronization to crop the data LED from the
received frames. The proposed scheme uses the differential detection threshold (DDT) to accu-
rately identify each LED in the array. Then, the rotation compensation is performed to compen-
sate any rotated received frames, according to the rotation marker in the keyframe. Finally, the
data evaluation block compares the received data with the original data.

2.2. Keyframes
The keyframe is a special header frame responsible for time synchronization. Fig. 3(a) shows
the keyframe’s pattern. The pattern consists of rotation marker and alignment marker. The rota-
tion marker is designed to compensate for rotated received images. That is, this marker is used
to fix the received image when the camera is not aligned at an ideal 0° orientation. The align-
ment marker is utilized to help frame cropping spatially.
In positioning the keyframes, two types of the positioning are considered: aperiodic and peri-
odic. These are shown in Fig. 3(b) and (c). N denotes a total number of frames and n indicates

Vol. 8, No. 2, April 2016 7903308


IEEE Photonics Journal CVLC With Rotation Compensation

Fig. 3. Keyframe structure. (a) Keyframe pattern. (b) Aperiodic keyframe. (c) Periodic keyframe.

the number of frame groups for which the keyframes are inserted. Assuming there are k frames
for each frame group, N equals n  k .
The aperiodic keyframe is used for the transmission when the mobile phone is static. For this
static mobile phone, the keyframe is positioned only once at the beginning of the full transmis-
sion frames. In some practical situations, however, the mobile phone can be held by hand, thus
causing some minor lateral movement as well as tremor. These movements would cause dis-
ruption in the CVLC reception. To take into account this phenomenon, the periodic keyframe is
also proposed. This keyframe employs a periodic synchronization, which positions the key-
frames periodically prior to each data frame group. It is worth noting that the period between the
keyframes is chosen to be approximately 100 ms, according to the study conducted for the
tremor frequency of a human hand [10].

2.3. Illumination LED


The mobile phone cameras can focus and determine light metering automatically. It measures
the light intensity value of the whole received image. Since the dot matrix LED array is em-
ployed as a light source and is much brighter than the surrounding environment, it can cause
imbalance in terms of the camera focus. The imbalance causes a circle of confusion in the cap-
tured image also known as blooming effect [11]. Fig. 4(a) shows the blooming effect caused by
the imbalance in the camera focus. It can be seen that the blooming effect causes the LED cir-
cles to overlap each other and thus degrades the reception quality. Moreover, the improper light
metering makes the center of a red color LED appear white. This phenomenon would lead to
communication errors, when multiple colors are used for transmission.
The proposed CVLC employs the illumination LEDs alongside the dot matrix LED array in
such a way that these LEDs provide a light intensity reference for the camera. Therefore, the
camera could focus and determine light metering accordingly. In addition, the white LEDs allevi-
ate focus and light metering problems in the captured image. Fig. 4(b) shows reduced blooming
effect using the proposed illumination LEDs.

2.4. Optimum Capture Rate


According to the sampling theorem, the sampling rate must be twice faster than the transmit rate
in data transmission. It can be noted that the CR in the CVLC is viewed as a camera sampling
rate, whereas the LFR is a rate at which an LED flickers. If the exposure value of the captured im-
age is sufficiently high, the relationship between the CR and the LFR can be defined as [5]
tr k 1
RC ¼  (1)
cr k
where RC is a ratio of the LFR ðtr Þ to the CR ðcr Þ. The unit of tr is pulse per second (pps) while
the unit of cr is frame per second (fps). A variable k represents the number of frames captured.
Supposing that the number of captured frames is 3, the required tr is then 3=2  cr .

Vol. 8, No. 2, April 2016 7903308


IEEE Photonics Journal CVLC With Rotation Compensation

Fig. 4. Illumination LEDs. (a) Blooming effect. (b) Improved focus.

In order to verify the proposed CVLC, we conducted experiments using the dot matrix LED
array and mobile phones. For the completeness of the experiment, we employed two types of
mobile phones: high-end and general mobile phones. The high-end Android-based mobile
phone (Cam 1) is fitted with a rear video camera that supports a Full HD 1920  1080 resolution
at 60 fps. The general iOS-based mobile phone (Cam 2) has a rear video camera that supports
HD 1280  720 resolution at 30 fps. Note that these resolutions are common in most mobile
phones. Although we used rear video cameras, some front cameras have similar resolutions
and can thus be used for the experiment.

3. Result and Analysis


Table 1 shows the experimental parameters. In the experiment, both mobile phones recorded
the video at distances of 5 cm, 10 cm, 20 cm, and 30 cm. The dot matrix LED array transmitted
the data at varying frame periods of 25 ms, 50 ms, 67 ms, and 100 ms. These frame periods
are found to be an LFR of 40 pps, 20 pps, 14 pps, and 10 pps, respectively.
Fig. 5 shows the experiment results that have a maximum data rate of up to 1280 bps with
20 pps LFR. These results were obtained from both Cam 1 and Cam 2.
For the LFRs of 10 pps and 14 pps, the data rates of 640 bps and 896 bps were obtained,
respectively. To achieve these results, Cam 1 used a variable CR of 60 fps, whereas Cam 2
used a constant CR of 30 fps. We also conducted simulations to find a maximum data rate
achievable from a constant 120 fps CR with an LFR of 80 pps. It was found that the maximum
data rate achievable from this 120 fps CR is 5120 bps. Unfortunately, this high-speed video
camera is not yet installed on mobile phones. Based on experimental and simulation results, an
achievable data rate DR of CVLC can be derived as

DR ¼ LN  tr  Fp (2)

where LN denotes the number of LEDs used for data transmission, tr denotes LFR, and Fp de-
notes the reduction of data rate due to the insertion of the keyframe over the transmission pe-
riod. Since the keyframes are inserted in the transmission frames, it would reduce the data rate.
Therefore, the reduction in data rate is dependent upon the keyframe positioning. The Fp value
is different between the aperiodic and the periodic keyframe. Fp can be derived as
(
LN
Fp ¼ ; aperiodic keyframe (3)
T
LN  10; periodic keyframe

where T is the transmission period. It is apparent that Fp value is more significant in the periodic
keyframe than in the aperiodic keyframe, because it is repeated in every frame group. In the
present study, since the hand tremor time is found to be approximately 100 ms, Fp will be ten
times LN . For the aperiodic keyframe, the keyframe is inserted only once for the whole transmis-
sion. Therefore, Fp value will be smaller than the periodic keyframe. As an example, for a CVLC
transmission scenario of 80 pps, 64 LEDs, and aperiodic keyframe, the achievable data rate,
DR , is 5056 bps when T equals 1 second. If we use the periodic keyframe, Fp is equal to
640 bps, regardless of T values. DR is, therefore, equal to 4480 bps.

Vol. 8, No. 2, April 2016 7903308


IEEE Photonics Journal CVLC With Rotation Compensation

TABLE 1
Experimental Parameters

Fig. 5. Simulated and experimented data rates of the CVLC.

It is worth noting that according to (1), Cam 1 using its maximum 60 fps CR could have cap-
tured at most 40 pps and would also have produced a data rate of 2560 bps. However, Fig. 5
shows no experimental result for this 40 pps. This is because Cam 1 does not have a constant
60 fps CR but a variable CR instead. In fact, its CR ranges from 30 fps up to 63 fps, depending
upon light intensity input. Therefore, it is not capable of capturing 40 pps LFR steadily. On the
other hand, Cam 2 uses 30 fps constant CR and can receive 20 pps transmission.
In order to evaluate transmission quality, we also conducted experiments with a total of
25440 frames and 11160 frames captured from both Cam 1 and Cam 2, respectively. Table 2
shows the results of transmission quality experiment. It showed no errors except for the recep-
tion at a maximum distance of 30 cm for Cam 1. The BERs of Cam 1 at the 30 cm distance
were found to be 0.0016, 0.0047, and 0.0813 on 10 pps, 14 pps, and 20 pps CR, respectively.
This is due to some overexposure frames. Meanwhile, Cam 2 failed to receive the data at
30 cm distance, due to its limited resolution. Thus, the Cam 2 maximum distance is only 20 cm.
The farther the transmission distance is, the closer the distance is between the illumination
LEDs and the dot matrix LED array from the camera. Therefore, it disrupts the focus and light
metering of the camera.
In the CVLC, it is important to provide the rotation compensation. Unless the rotation compen-
sation is adequately provided, CVLC cannot detect the transmitted data. For this purpose, we
carried out an experiment to verify the proposed scheme for the rotation compensation. Fig. 6
shows the rotation compensation at the 180° rotation. By making use of the rotation marker
shown in Fig. 6, it detects the images accurately. In other words, the rotation compensation was
performed to rotate the data matrix back to the 0° orientation, prior to the data processing. We

Vol. 8, No. 2, April 2016 7903308


IEEE Photonics Journal CVLC With Rotation Compensation

TABLE 2
Experimental Results (BER)

Fig. 6. Rotation compensation at 180° orientation.

Fig. 7. Proposed CVLC scheme. (a) Identified data area. (b) Detected data in red color channel.
(c) Quantized intensity of the detected data.

evaluated the proposed scheme for the three angles: 90°, 180°, and 270°. The results show
that all orientations are corrected to 0° orientation, which indicates that the rotation compensa-
tion is successfully provided.
Another important aspect of the CVLC is how the CVLC would be affected by ambient light.
Since ambient light intensity can change every time, an appropriate threshold detection is re-
quired to detect the data accurately. For this operation, a differential detection threshold (DDT)
scheme was utilized [9]. Fig. 7 shows the data detection of the proposed CVLC. It can be seen
that the proposed CVLC successfully identifies the data from the red color channel. It is clear
that the illumination LEDs provide better focus; thus, DDT performs well to detect the data, even
in the presence of ambient light.
The proposed CVLC scheme provides the mobile phone based VLC in indoor environments;
therefore it also needs to ensure an adequate level of illumination. Table 3 shows the illumi-
nance levels measured for both the dot matrix LED array and the illumination LEDs. The large
difference of the illuminance levels enables the dot matrix LEDs to transmit data without affect-
ing the illumination LEDs. Even at a short distance of 5 cm, an illuminance ratio of the dot matrix
to the illumination LEDs is found to be 0.125.

Vol. 8, No. 2, April 2016 7903308


IEEE Photonics Journal CVLC With Rotation Compensation

TABLE 3
Illuminance Measurement

It is worth considering the mobility of cameras in the proposed CVLC. For the mobility in
CVLC, a bigger dot matrix can be employed over a longer transmission distance. Clearly, a
bigger dot matrix can easily be visible inside the camera’s field of view, even when the camera
(receiver) is moving. In this way, a small degree of the mobility can be supported in the
proposed scheme. In order for the moving camera to capture the dot matrix accurately, a special
algorithm should be designed.

4. Conclusion
A high-speed downlink CVLC system with illumination was presented. From the experimental
results, we achieved a data rate of up to 1280 bps using mobile phone cameras. Additional
white LEDs along the dot matrix LED array are proposed to provide illumination and, more im-
portantly, better camera focusing and light metering. Under the identical conditions to the exper-
imental setup, the simulations were performed and showed an achievable date rate of up to
5120 bps with a 120 fps camera. The proposed CVLC also offers the rotation compensation in
order to allow multiple users to receive the data separately at different angles of 90°, 180°, and
270° orientations. The proposed CVLC with the illumination feature can be considered a future
candidate for short range camera-based wireless data communications in practical applications.

Acknowledgment
The authors would like to thank the anonymous reviewers for their valuable suggestions.

References
[1] P. Haigh and Z. Ghassemlooy, “Visible light communications using organic light emitting diodes,” IEEE Commun.
Mag., vol. 51, no. 8, pp. 148–154, Aug. 2013.
[2] N. T. Le, T. Nguyen, and Y. M. Jang, “Optical camera communications: Future approach of visible light
communication,” J. Korean Inst. Commun. Inf. Sci., vol. 40, no. 2, pp. 380–384, 2015.
[3] C. Danakis, M. Afgani, G. Povey, I. Underwood, and H. Haas, “Using a CMOS camera sensor for visible light
communication,” in Proc. IEEE OWC, 2012, pp. 1244–1248.
[4] I. Takai et al., “LED and CMOS image sensor based optical wireless communication system for automotive
applications,” IEEE Photon. J., vol. 5, no. 5, Oct. 2013, Art. no. 6801418.
[5] T. Nguyen, N. Le, and Y. M. Jang, “Asynchronous scheme for optical camera communication-based infrastructure-
to-vehicle communication,” Int. J. Distrib. Sens. Netw., vol. 2015, 2015, Art. no. 908139.
[6] S. H. Chen and C. W. Chow, “Hierarchical scheme for detecting the rotating MIMO transmission of the in-door
RGB-LED visible light wireless communications using mobile phone camera,” Opt. Commun., vol. 335, pp. 189–193,
Jan. 2015.
[7] S. H. Chen and C. W. Chow, “Differential signaling spread-spectrum modulation of the LED visible light wireless
communication using a mobile-phone camera,” Opt. Commun., vol. 336, pp. 240–242, Feb. 2015.
[8] “Panasonic showcases visible light ID technology, which only requires an app installed smartphone at CES2015,”
Panasonic Corp., Osaka, Japan, Feb. 3, 2015. [Online]. Available: http://news.panasonic.com/global/stories/2015/
32005.html.
[9] Y. H. Kim and Y. H. Chung, “Experimental outdoor visible light data communication system using differential
decision threshold with optical and color filters,” Opt. Eng., vol. 54, no. 4, pp. 1–3, 2015.
[10] M. Mayston, L. Harrison, J. Stephens, and S. Farmer, “Physiological tremor in human subjects with X-linked
Kallmann’s syndrome and mirror movements,” J. Physiol., vol. 530, pp. 551–563, 2001.
[11] S. Ray, Applied Photographic Optics: Lenses and Optical Systems for Photography, Film, Video, Electronic and
Digital Imaging, 3rd ed. Waltham, MA, USA: Focal, 2002.

Vol. 8, No. 2, April 2016 7903308

You might also like