iBrush: Writing Chinese Characters with Flashlight and Wireless Sensor Grid Andong Zhan† , Shen Li† , Wenchang Zhou† , Tao Li† , Panlong Yang‡ , Xiaobing Wu† and Guihai Chen† †

State Key Laboratory for Novel Software Technology, Nanjing University, Nanjing, China ‡ Institute of Communication Engineering, Nanjing, China

Abstract—Light is the widely available and pervasive resource in our daily life. Existing research shows that light can be used in localization in wireless sensor networks. Meanwhile, our former work also indicates that wireless sensor networks can track light sources. In this paper, we demonstrate iBrush1 , a system which allows users to write Chinese characters with a flashlight and a sensor grid. Index Terms—Tracking, Localization, Light Intensity, Wireless Sensor Networks.

I. I By using RF signals [1][2], ultrasounds [3][4] and even UWB [5], wireless sensor networks have succeeded in many applications of localization and tracking. However, systems using RF signals suffer accuracy fluctuations and systems using ultrasound or UWB need extra hardware. In addition, the iLamp system [6] shows that light, the widely available and pervasive source, can be used in localization. In our pervious work [7], we propose the iTracking system to show how to track lights from a bulb and a flashlight. In this paper, we demonstrate iBrush, a system that allows users to write Chinese characters with flashlight. We obtain the light-intensity-distance mapping with which we can calculate the distance between the sensor and the center of the disk area illuminated by the flashlight. We also draw lines of different widths based on the moving speed of flashlight. In our demonstration, players can use an LED flashlight to shine in different positions of a 5×5 sensor grid, as shown in Fig. 1, so as to write Chinese characters which can be displayed instantly on remote PC where the sink is plugged. Our demonstration bridges modern science and technology with ancient Chinese art. II. S D Our system is composed of four main parts: (1) intensitydistance mapping, (2) central location calculation, (3) width setup, and (4) real-time updating. When a user uses a flashlight facing a sensor grid, the light disk may cover several sensors. The goal of the first part is to obtain the distance from an irradiated sensor to the center of the disk. The second part is to calculate the location of the disk center by analyzing the distances from multiple anchor sensors to the center. In (3), we use the moving speed of flashlight to control the width 1 Video

demonstration is available at http://gps.nju.edu.cn/ibrush/

Fig. 1.

a flashlight shine in a 5 × 5 sensor grid

B

C0

M

C2

C1

A N

Fig. 2.

Draw a line with changing widths

of the displayed stroke. Finally, we need to realize the realtime updates so as to minimize latency and improve user’s experience of writing. A. intensity-Distance Mapping To better estimate the distance from an arbitrary point inside a light disk to the center based on its light intensity, we sample several points inside the light disk for 100 ms per sample and 20 s in all, when an LED flashlight irradiates perpendicularly above a surface at a distance of 1 m. As shown in Fig. 3, the radius of the disk is almost 30 cm and the central light intensity is above 60 LUX (measured by TelosB Motes). Additionally, we use cubic spline interpolation to guarantee monotonicity and smoothness of the intensitydistance mapping. Fig. 3 shows that the curve is almost linear when distance ranges from 5 cm to 25 cm, which means the mapping is well suited to calculate distance based on light intensity. Similar to [7], we neglect the impact of the angle θ between the surface normal CN and the beam of flashlight , as depicted

N

O

Light Intensity (LUX)

60

B

A

H

θ

40

O G

d

C

I

20 E0 1 0 1 0

O’ dS

0 0

Fig. 3.

C

5 10 15 20 25 30 Distance from the center (cm)

Distance mapping for the flashlight

Fig. 4.

B. Central Location Calculation We aim to calculate the central location of a light disk with high accuracy in a simple way. In [7], we utilize the grid cell with the largest sum of light intensities of four sensors to localize the center of the disk. It is enough to write Arabic numerals, but the location we get is not stable when the center is near the borders of neighboring cells. We need higher accuracy and stability to write Chinese characters well. Therefore, we use a novel approach, smallest enclosing disc [8], to rebuild the light disk first, and then find the central location. Experiments show that it provides higher accuracy and stability than the former method in [7]. As shown in Fig. 5, we can calculate the distance from every irradiated sensor to the center based on the intensity-distance mapping mentioned in Section II-A. Assuming that the radius of the disk is 30 cm, we can get the smallest distance from every irradiated sensor to the border of the disk. The area within this distance must be covered by the disk. So, we need to find the smallest enclosing disc to cover all these areas. To simplify the calculation, we use four nodes to approximately replace a circle, e.g., the circle with center E can be replaced by a point set {E0 , E1 , E2 , E3 }. To increase the accuracy, we can use eight nodes or more to replace a circle. So we can use MINIDISC algorithm [8] to find the smallest enclosing disc to cover all these points and then get the central location. Additionally, according to the lower bound on the number of intersection points covered by a disk [9], there are at least k sensors covered by a disk of radius r centered at an arbitrary point: √l )2 2

, (1) l2 where l is the side-length of grid cell. Therefore, l = 20 cm and r = 30 cm ensures at least 2 sensors can be covered by the disk. k≥

Fig. 5.

0 0

C. Draw lines with different widths To imitate writing with a Chinese writing brush, users can draw lines with different widths. In our design, when the flash

2 2

D

11 00 00 E 2 11

Location calculation

3 0

4 1

1111111111 0000000000 7 6 9 8 0000000000 1111111111 0000000000 1111111111 13 12 14 11 0000000000 1111111111 0000000000 1111111111 0000000000 1111111111 19 18 17 16 0000000000 1111111111 0000000000 1111111111 0000000000 1111111111 22 21 24 23 3

4

5

3

4

10 6

7

8

6

7

15 0

1

2

0

1

20 3

4

5

3

4

5

Fig. 6.

1 1

1 0 0 1 0 E1 1

E

Sensor Center

Illuminance on unit area dS

in Fig. 4. Experiences also show that Our intensity-distance mapping for flashlight tracking can be used in the cases of non-perpendicular irradiations.

π(r −

F

dS cos θ

E3 11 00 00 11 00 11

Hash mapping from sensor ID to sequence number

Fig. 7.

Sketch of a unfilled line

light moves fast, the system displays a thin line; otherwise, it displays a thick line. This drawing process has three steps: 1) Calculate the radius of current circle. 2) Use a trapezoid to connect previous circle with current circle. 3) Fill current circle and the trapezoid with black. Fig. 2 shows an unfilled line. C0 , C1 , and C2 are the central locations of moving light disk in three successive samples. We draw the beginning circle with a center at C0 with a default radius, and the following circle with a center at C1

Fig. 8.

Chinese characters which mean “welcome to Beijing”

with a radius r1 which increases in direct proportion to |C0C1 |. Similarly, the radius ri of Ci increases or decreases in direct proportion to |Ci−1Ci |. Then we use a trapezoid to connect neighboring circles. Taking the circle with a center at C0 and the circle with a center at C1 for example, we use the trapezoid ABMN to connect them, where C0C1 ⊥ AB and C0C1 ⊥ MN. At last, we fill all the circles and trapezoids with black color. Fig. 7 shows the sketch of a unfilled line. D. Real-time Updating Real-time updating is crucial to give a good user’s experience of writing. To do so, on the one hand, time synchronization between the sink and irradiated sensors is indispensable; on the other hand, frequent sampling and data transmission are inevitable. In addition, we need to handle interference among different sensors. In [7], the sink broadcasts a “start sampling” packet at the beginning of every round for updating. On receiving the packet, sensors start to sample so as to estimate whether they are covered by the flashlight disk. We ensure that at most 9 sensors in a 3 × 3 grid will be irradiated and we adopt a TDMA-like method to avoid interference by using a hash function. This hash function maps every node ID in a 3 × 3 grid to a unique sequence number corresponding to TDMA time slot ranging from 0 to 8, as shown in Fig. 6. We use i and j to indicate sensor’s row number and column number respectively. According to our sensor deployment, a node NID is in row i = bID / 5c and column j = ID mod 5. We define its sequence number as sn = (3 × i + j mod 3) mod 9 which means a node with sequence number sn will send the packet at the sn-th time slot. In Fig. 6, bold numbers stand for nodes’ IDs and italic numbers represent their sequence numbers. In the worst case, the flashlight disk, shown as a shadowed disk in the figure, may be detected by 9 nodes. However, by using our time slot method, interference can be avoided at the beginning. Based on the strategies in [7], we further improve our system in three aspects: 1) In initialization phase, every sensor can get the environmental light intensity so as to send data to the sink only when sensed intensity is higher than the environmental intensity. It makes our system works in dim light as well as in complete darkness. 2) It is observed that the minimum sampling duration of TelosB Mote required for stable output is about 2 ms. We prolong the sampling duration to 5 ms for

reliable sensing. For higher accuracy, we spend 10 ms to calculate the average of two samples. 3) We set one round time at the sink to 150 ms which is long enough to finish 1 broadcasting by sink to sensors ( 13 ms ), 2 sampling by sensors ( 2 × 5 ms ) and 9 data reporting by sensors to sink ( 9 × 13 ms ) III. D We use a 5×5 sensor grid to track flashlight, which is shown in Fig. 1. We require players to use our LED flashlight in front of the vertical grid board at a distance of 1 m or so. Fig. 8 shows the flashlight trace when we write 5 Chinese characters which mean “welcome to Beijing”. IV. C We demonstrate how to use iBrush to write Chinese character with a flashlight and a sensor grid. In future, we plan to improve the shape at the end of a stroke so that the characters look more beautiful. Additionally, we are considering how to create colorful paintings with flashlights of different colors. A The work is partly supported by China NSF grants (60673154, 60721002, 60825205), Jiangsu High-Tech Research Project of China (BG2007039), and China 973 project (2006CB303004). R [1] P. Bahl and V. N. Padmanabhan, “Radar: An in-building rf-based user location and tracking system,” in Proc. of IEEE INFOCOM, Tel-Aviv, Israel, Mar. 2000. [2] T. He, C. Huang, B. M. Blum, J. A. Stankovic, and T. Abdelzaher, “Range-free localization schemes for large scale sensor networks,” in Proc. of ACM MobiCom, San Diego, California, USA, Sep. 2003. [3] M. Hazas and A. Ward, “A high performance privacy-oriented location system,” in Proc. of IEEE Percom, Fort Worth, Texas, USA, 2003. [4] N. B. Priyantha, A. Chakraborty, and H. Balakrishnan, “The cricket location-support system,” in Proc. of ACM MOBICOM, Boston, MA, Aug. 2000. [5] S. Gezici, Z. Tian, G. B. Giannakis, H. Kobayashi, A. F. Molisch, H. V. Poor, and Z. Sahinoglu, “Localization via ultra-wideband radios: a look at positioning aspects for future sensor networks,” IEEE Signal Processing Magazine, vol. 22, no. 4, pp. 70–84, jul 2005. [6] L.-W. Yeh, C.-Y. Lu, Y.-H. Lin, J.-L. Liao, Y.-C. Tseng, C. Chen, and C.W. Yi, “iLamp: A sensor-enhanced lamp with surface-tracking capability based on light intensity,” in Proc. of IEEE Percom, Texas, USA, 2009. [7] A. Zhan, S. Li, T. Li, L. Guan, P. Yang, X. Wu, and G. Chen, “iTracking: Accurate light-based location-tracking in wireless sensor networks,” in Proc. of IEEE MASS, Macau, China, 2009. [8] M. Berg, M. Kreveld, M. Overmars, and O. Schwarzkopf, Computational Geometry. Springer, 2008. [9] E. Kratzel, Lattice points. Academic Publishers, 1989.

iBrush: Writing Chinese Characters with Flashlight and ... - Cs.jhu.edu

†State Key Laboratory for Novel Software Technology, Nanjing University, Nanjing, China. ‡Institute of ... light-intensity-distance mapping with which we can calculate .... on the other hand, frequent sampling and data transmission are.

5MB Sizes 1 Downloads 114 Views

Recommend Documents

iBrush: Writing Chinese Characters with Flashlight and ... - Cs.jhu.edu
when distance ranges from 5 cm to 25 cm, which means the mapping is well .... a node with sequence number sn will send the packet at the sn-th time slot. In Fig ...

Segmentation of Connected Chinese Characters Based ... - CiteSeerX
State Key Lab of Intelligent Tech. & Sys., CST ... Function to decide which one is the best among all ... construct the best segmentation path, genetic algorithm.

pdf-1818\flashlight-in-traditional-chinese-zhao-guo ...
Try one of the apps below to open or edit this item. pdf-1818\flashlight-in-traditional-chinese-zhao-guo-lai-zhao-guo-qu-traditioanl-chinese-by-lizi-boyd.pdf.

Wrappable flashlight
Jun 30, 2000 - Loc—Line The Original Modular Hose System brochure,. Appl. No.: .... elongated ?exible member to a ?xed support such as an internally ...

Chinese Characters in a Small World (初稿)
There seemed no interest- ing things existed between regular (or deterministic) networks and random networks. By the middle of the 1990s, with the astounding.

pdf-145\chinese-characters-for-everyone-sherlock-holmes-in-the ...
... the apps below to open or edit this item. pdf-145\chinese-characters-for-everyone-sherlock-hol ... f-chinese-characters-by-mrs-marie-laure-deshazer.pdf.

250 Essential Chinese Characters for Everyday Use.pdf
There was a problem previewing this document. Retrying... Download. Connect more apps... Try one of the apps below to open or edit this item. 250 Essential ...

250 Essential Chinese Characters for Everyday Use.pdf ...
Sign in. Page. 1. /. 353. Loading… Page 1 of 353. Page 1 of 353. Page 2 of 353. Page 2 of 353. Page 3 of 353. Page 3 of 353. 250 Essential Chinese Characters for Everyday Use.pdf. 250 Essential Chinese Characters for Everyday Use.pdf. Open. Extract