Visible Light Communication MQP Report Final 2014-2015 PDF

Title Visible Light Communication MQP Report Final 2014-2015
Author Judy Salama
Course Computer Engineering
Institution جامعة الإسكندرية
Pages 69
File Size 2.2 MB
File Type PDF
Total Downloads 38
Total Views 117

Summary

Download Visible Light Communication MQP Report Final 2014-2015 PDF


Description

Visible Light Communication A Major Qualifying Project Report, completed in partial fulfillment of the requirements for the degree of Bachelor of Science at Worcester Polytechnic Institute

By Shridhar Ambady Megan Bredes Calvin Nguyen Submission Date: March 26, 2015

Advised by: Professor Lifeng Lai

Abstract With increasing demands for faster and more secure wireless communications, there is a pressing need for a new medium of wireless communication as the radio spectrum is already crowded. Visible light is a medium that can address both of these needs. It is a relatively new technology with great potential. This project was completed to develop a working visible light communication system and demonstrate the transmission capabilities of such a system. This year’s team set a goal to surpass the previous year’s team in transmission speed, range, and size. Of these goals, transmission speed and range were both achieved, while the transmission of a large audio file was deemed not possible based off the difficulties the team encountered while processing large amounts of data.

ii

This report represents the work of one or more WPI undergraduate students submitted to the faculty as evidence of completion of a degree requirement. WPI routinely publishes these reports on its website without editorial or peer review.

iii

Acknowledgements We express our deepest gratitude to Professor Lifeng Lai, our MQP advisor for devoting his time and effort to making this project possible. With his helpful feedback and suggestions on tackling problems that have arisen during the duration of the project, we are grateful to have him advise the MQP. We also express our thanks to last year's team that worked on the original VLC project as well as the creators of the works that were cited in this report.

iv

Table of Contents Executive Summary.................................................................................................................................... viii 1 Introduction ............................................................................................................................................... 1 1.1 Motivations ......................................................................................................................................... 1 1.2 Visible Light Communications ............................................................................................................. 3 1.2.1 History .......................................................................................................................................... 4 1.3 Possible Applications .......................................................................................................................... 7 1.3.1 Drawbacks of VLC......................................................................................................................... 8 1.4 Goals and Features.............................................................................................................................. 9 2 Design Approach ...................................................................................................................................... 11 2.1 Component Selection........................................................................................................................ 11 2.1.1 Analog Parts ............................................................................................................................... 11 2.1.2 Digital Parts ................................................................................................................................ 17 2.2 Analog Design.................................................................................................................................... 25 2.2.1 Transmitter ................................................................................................................................ 25 2.2.2 Receiver...................................................................................................................................... 28 2.2.3 Design Verification ..................................................................................................................... 31 2.3 Digital Design .................................................................................................................................... 34 2.3.1 Transmitter ................................................................................................................................ 34 2.3.2 Receiver...................................................................................................................................... 37 3 Results and Conclusions ........................................................................................................................... 41 3.1 Analog Results ................................................................................................................................... 41 3.2 Digital results .................................................................................................................................... 43 3.2.1 Transmitting Text ....................................................................................................................... 44 3.2.2 Transmitting an MP3 File ........................................................................................................... 44 3.3 Overall Conclusions ........................................................................................................................... 49 3.4 Future Recommendations ................................................................................................................ 50 References ..................................................................................................................................................51 Appendix A: Parts List ................................................................................................................................. 52 Appendix B: Matlab Code ...........................................................................................................................53 receiver.m ............................................................................................................................................... 53 match_filter.m ........................................................................................................................................ 54 downsample.m ....................................................................................................................................... 55 v

Appendix C: C# Code ................................................................................................................................... 56 Appendix D: MCU C code ............................................................................................................................ 58 Transmitter Code .................................................................................................................................... 58 Receiver Code ......................................................................................................................................... 59

Table of Figures Figure 1: Frequency Allocations in the United States ................................................................................... 2 Figure 2: RONJA system attempting to transmit through heavy fog ............................................................ 4 Figure 3: 500 Mbps White LEDs .................................................................................................................... 5 Figure 4: VLC System design from 2013........................................................................................................ 7 Figure 5: Transmitter Circuit Diagram......................................................................................................... 26 Figure 6: Transmitter - Final Design ............................................................................................................ 27 Figure 7: Old Receiver Circuit Diagram ....................................................................................................... 28 Figure 8: Receiver Final Design ................................................................................................................... 30 Figure 9: Receiver Circuit - Final Design...................................................................................................... 31 Figure 10: Photodiode Output before Op-Amp .......................................................................................... 32 Figure 11: Photodiode Output after Op-Amp ............................................................................................. 32 Figure 12: Bad Output ................................................................................................................................. 33 Figure 13: Good Output .............................................................................................................................. 33 Figure 14: C# Transmitter Program GUI...................................................................................................... 35 Figure 15: Op-amp output from 1200 bits/sec 'U' Signal at 1 foot............................................................. 42 Figure 16: Op-amp output from 1200 bits/sec audio signal at 1 foot ........................................................ 42 Figure 17: Op-amp output from 4800 bits/sec 'U' signal at 1 foot ............................................................. 43 Figure 18: Matlab Text Output - Initial Test................................................................................................ 44 Figure 19: Matlab Output 'U' ...................................................................................................................... 44 Figure 20: Transmitting 'U' .......................................................................................................................... 45 Figure 21: TeraTerm Output 'U' without Interrupts ................................................................................... 46 Figure 22: Matlab Output 'U' ...................................................................................................................... 46 Figure 23: TeraTerm Output 'U' with Interrupts......................................................................................... 47 Figure 24: MCU output Test ........................................................................................................................ 47 Figure 25: Ghosting on the Wave Form ...................................................................................................... 48

vi

Table of Tables Table 1: Important Selection Requirements for LEDs................................................................................. 12 Table 2: LED Comparisons........................................................................................................................... 13 Table 3: Important Selection Requirements for the Photodiode ............................................................... 14 Table 4: Photodiode Comparison ............................................................................................................... 15 Table 5: Important Selection Requirements for Transmitter MCU ............................................................ 19 Table 6: Important Selection Requirements for Receiver MCU ................................................................. 20 Table 7: MCU Comparison .......................................................................................................................... 22 Table 8: ADC Translating Voltage into Binary ............................................................................................. 38

vii

Executive Su Summary mmary Visible light communication is a viable technology to accommodate the need for faster and better wireless communications in the coming years. The basic idea, is that instead of using traditional methods of communication over cables or radio frequencies, VLC systems send data by turning light on (logic 1) and off (logic 0). This report describes and evaluates the visible light communication system design the team created. As visible light communication technology is relatively new, the team worked on creating a prototype to test out this technology and demonstrate its possible capabilities. Using last year’s system design as a foundation, the team developed a successor with improved transmission specifications. The first part of the process is preparing a file or string of bytes for transmission. In order to synchronize the transmitter and receiver, the system divides the data into units called "frames", each starting with a preamble to let the receiver know that a transmission has started. The transmitter takes a file, breaks into frames, and inserts preamble sequences before each frame. Then it sends the modified file to a microcontroller unit (MCU) over the serial port. The MCU controls the gate of a transistor based on the data it receives, switching an array of LEDs on when it sees a 1 and turning it off when it sees a 0. This light is picked up by an array of photodiodes on the receiver side. This signal is amplified and filtered to produce a clean signal as similar as possible to what was output by the transmitter MCU. This signal is then sampled by the MCU on the receiver end. Each bit sent by the transmitter is sampled 16 times, and the receiver determines whether it's a 0 or 1 based on whichever bit appears more in that 16-bit section (i.e. 14 1s and 2 0s are interpreted as a 1). This data is sent to the computer through a serial connection to be processed by a Matlab script. The script does the downsampling and converts the bits into meaningful symbols, either text or audio. At this point, the transmission is complete. However, in our implementation, this success was only apparent on the transmission end of the system. The audio was transmitted flawlessly but the receiver was not able to convert the captured signal back into proper form due to problems in the ADC’s of the microcontroller. Sampling errors accumulated to the point where they could not be filtered out by the downsampling error correction, resulting in a meaningless output.

viii

By creating a visible light communication system, the team hopes that future students interested in this technology will be able to continue developing even better systems to study this promising new communication technology

ix

1 Introduction While the radio spectrum is limited, the demand for wireless data transmission keeps increasing. There is a pressing need for new kinds of wireless communication systems. Recently, visible light communication (VLC) has been proposed as an alternative means of wireless communication. The idea is to modulate LEDs transmitting electromagnetic waves in the visible light frequencies to communicate between devices within the same room.

1.1 Motivations According to Cisco’s Global IP Traffic Forecast, by 2018 there will be 21 billion networked devices, up from 12 billion in 2013. They have also predicted that the annual global internet traffic will exceed one zettabyte (1021 or 1 billion terabytes) by 2016, and will be well beyond that by 2018 [1]. With approximately half of these devices will be mobile, meaning they stay connected through wireless transmission (“Visual Networking Index”). Current systems use the radio frequency spectrum. Unfortunately, the radio frequency band is overcrowded and cannot keep up with the demand. Figure 1 on the next page shows the current radio frequency allocation in the US as of 2003, which clearly shows that the spectrum is overcrowded.

1

Figure 1: Frequency Allocations in the United States [2]

Not only are most of the frequencies reserved, but also the cost to reserve a free spectrum can be huge. In the US, it requires a lot of paperwork to obtain licenses, as well as studies and research by engineers to determine the feasibility and interference caused by using that spectrum. The cost for the license alone can be thousands of dollars, and it needs to be renewed yearly to ensure the frequency stays used. The fees vary wildly depending on the amount of revenue the company makes. On top of this, conducting studies necessary to show that use of the frequency in a given area that does not cause interference can create additional costs [3]. However, much of this clutter can be moved to a new system. Visible Light Communication (VLC) can be used for communication in the same room. The concept is to use a transmitter that modulates LEDs emitting light in the visible spectrum, and a receiver that captures the signal through photodiodes and processes the information. These LEDs would be blinking much faster than the human eye can detect, making it non-intrusive and unnoticeable. Rooms could have systems built into the ceiling that act as a router so devices can connect to the internet. In situations where privacy is key, visible light communication would act as a means of wireless transmission that is completely safe from being captured outside the room; data could only be intercepted from a device within the central 2

transmitter’s line of sight. Because of this fundamental difference in how this device works versus other forms of wireless transmission, much of the costs associated with even reserving a frequency can be dismissed and the overhead becomes much lower. No matter how great the ambition, every project needs a starting point. In 2013, a team of WPI students headed by Professor Lifeng Lai began working on a system that accomplishes the goal of transmitting data using visible light. They set up a prototype that operated at a low transmission rate of 500bits/s and was capable of sending small text messages [4]. This milestone has now motivated our group to move this system to the next step: transmitting audio.

1.2 Visible Light Communications Visible Light Communications is essentially communication by means of optical light. It falls under the category of free-space optical communications. Transmitting data via light is achieved by having the light source flicker on and off to represent a logic high and logic low signal respectively [5]. A receiver (either photodiodes or a digital camera) will detect the light coming from the transmitter and will interpret the signal. When the receiver detects light, it is represented as a logic high and when it detects no light at all from the transmitter, it is represented as a logic low. By turning the light on and off, the transmitter can transmit 0s and 1s. This is the simplest method that visual light can be used for digital communication. Varying levels of light between on and off could allow for the transfer of more than one bit of information. Any light technically could be used to transfer data but what matters the most is the brightness and the frequency of the light at which it modulates. The data rate of the transmission will depend on how fast the lights can turn on and off. LEDs are a popular choice for VLC communication as they can be switched on and off at a very high speed. Fluorescent lights used indoors can also be used as they flicker at a speed that is fast enough that the human eye cannot see. There is one issue with fluorescent lights however. While they could be used for communications, they can only do so at relatively low frequencies, due to the fact that fluorescent bulbs cannot be turned on and off at high speed. The resulting transmission rate would be approximately 10 kbps. This rate is not high enough to support the transmission of data such as video or audio, while LEDs, have a much faster switching speed, as they are capable of providing up to 500 Mbps and possibly even more.

3

Currently, one major VLC system is operating wit...


Similar Free PDFs