Laser Communications System
Laser Communications System
The system illustrated above is set up to send voice data. The microphone input is conditioned (amplified and biased) so that the full eight bit range of the analogue to digital converter is utilized. A fair amount of time was spent optimizing the amplifier for the mic input so as to minimize popping but maximize quality. Once the digital signal is obtained by the ADC, the MCU passes the signal to the UART. The UART sets a transmit pin high or low according to the serial protocol. Some conditioning is applied to this signal as well in order to ensure constant current to the laser. On the receiver side, the signal is read by a photo transistor. The signal coming off the transistor is put through a comparator to generate appropriate high and low signals. The UART reads these signals and generates a byte according to the serial protocol. This byte is applied to a port, sent through a digital to analogue converter, and applied to a speaker.
Introduction
Laser communications systems are wireless connections through the atmosphere. They work similarly to fiber optic links, except the beam is transmitted through free space. While the transmitter and receiver must require line-of-sight conditions, they have the benefit of eliminating the need for broadcast rights and buried cables. Laser communications systems can be easily deployed since they are inexpensive, small, low power and do not require any radio interference studies. The carrier used for the transmission signal is typically generated by a laser diode. Two parallel beams are needed, one for transmission and one for reception. Due to budget restrictions, the system implemented in this project is only one way. Laser communications have been a hot topic lately, as solutions for how to satisfy ever increasing bandwidth needs are in high demand. Some have suggested that bandwidth could be distributed in neighborhoods by putting laser communication systems on top of homes and pointing them towards a common transceiver with a fast link to the Internet. With possible transmit speeds of up to a gigabit per second, this is an exciting area. Other applications for this technology include temporary connectivity needs (e.g. sporting events, disaster scenes, or conventions), or space based communications. 2003 Keith Carter, Michael Muccio
Hardware
A description of the hardware and circuitry used in this project follows. Resistor, capacitor and diode values are ommitted because they need to tuned depending on the hardware used. The specific use for each component is documented.
Microphone Amplifier The first step in transmitting sound is to digitize soundwaves. For this we used an electret microphone purchased from Radtronics. Frequent shoppers at Tito's place downtown know that finding spec sheets for products there is impossible. The microphone he sold us had three leads, which after considerable angst we decided were for power, ground, and signal. The signal coming off the mic was far too low to be read (with any degree of precision) by the analog to digital converter. So of course, an amplifier is needed. Before the signal is put through the amplifier however it is first put through a capicitor to remove DC, and then through a voltage divider to appropriately bias the signal. A LF353 op-amp is used to boost the signal, the gain is adjusted by the resistors and for the mystery microphone the gain is around 50-100 (depending on how much popping and how much quality you want).
Laser Driver After the A/D converter translates the mic signal into 8 bits, the MCU generates the appropriate bits to send (including start and stop bits) and applies them to the laser driver circuit a 5V and 0V signals. The BJT in this circuit turns on at 5V and provides the proper current according to the diode and resitor values.
Receiver A photo diode detects the laser pulses in a different (distant) location. This signal is put through a comparator in order to generate solid 5V and 0V values which are applied to the receive pin on the microcontroller.
Laser Driver Once the signal is put through the DAC (not shown, it's a simple ladder), it is boosted and low pass filtered (to improve sound quality). 2003 Keith Carter, Michael Muccio
Parts
BPW77 Phototransistor
$1.95
$9.00
LMC7111 Operational Amplifier FREE! (stocked in lab) Focusing Lens FREE! (cannibalized)
2003 Keith Carter, Michael Muccio
Mechanics
Focussing the laser turned out to be quite a challenge. When we ordered the laser diode, we presumed it would come focussed. Imagine our disappointment when it was not. Fortunately, we had an old laser diode to cannibalize. Bill Mutch used a razor saw to cut the lens off of it which we then placed over our laser diode at the appropriate distance using medical tubing and electrical tape. The diode still unfocusses when barely touched, but it's better than nothing. Aiming the diode at the phototransistor is another problem. Because the diode is fairly focussed and the phototransistor is sensitive at particular angles, steady hands are needed to aim at distance. A typical setup involves two staplers (to lean the breadboards against) and lots of tape (to tape them at bizarre angles).
Results
What would a project be without results? By using the built in hardware UART to communicate with Hyperterm on a PC we have tested our project to transmit text at up to 38.4 kbps. At this rate it is entirely error free. The system can likely transmit much faster, but for text applications anything faster is overkill. We can send arbitrary data at a rate of up to 27.7 kbps. Although we could not pin point the exact reason why the reliability of our audio transmission fell drastically at bauds higher than 27.7 kbps, we do suspect that is has something to do with a timing problem involving the time required by the ADC to complete a conversion since the biggest difference between the audio code and the text code is that the audio utilizes the ADC and transmits continuously. We did not have sufficient time to test this hypothesis, but as we did have the ADC clock turned up as fast as it could go (125 kHz) we do not believe there would have been much we could do about this problem anyway. In the end, 27.7 kbps is plenty fast enough to transmit our voltage values if the sampling rate is 3 kHz. So ultimately the baud limitation did not degrade the quality of the transmitted audio. On the other hand we were somewhat surprised by exactly just how poor the 8-bit audio sampled at 3
kHz sounded (even though we knew it would not be great). Even after some liberal low pass filtering the audio was still of poor quality. One definitely would not be able to hear a pin drop over this line.
Performance
If the laser is properly aimed at the phototransistor as discussed in the mechanics section, the bit stream is received perfectly. As such text transmission works flawlessly at our largest test distance, across the Digital Systems Lab. Unfortunately, the quality of our focus application (voice transmission) is limited by 3 kHz sampling and 8 bit sound. The speaker on one end is clearly audible on the other, but it takes a trained ear to decipher what he or she is saying.
dangers to everyone in the room at the time (with the help of Prof. Land) to be sure no one accidentally looked into the laser beam of any of its reflections. Laser light can be very harmful to the eye if shined directly into it and so we had to be very careful with this aspect of our system. The most difficult thing to master about the usability of our system was aiming the laser diode at the photodiode on the receiver. Once the laser was aimed and appropriately focused the use of our system was fairly straightforward: talk into the microphone and listen at the other end.
Task Division
We worked very closely throughout this whole project, and as such a division of tasks is hard to do. Keith probably spent more time on the actual design of the web page while Mike spent more time writing the content. Keith spent more time figuring out the analog components of the project while Mike was more the software guru. We both feel very comfortable with the amount of work each of us put in.
Final Conclusions
Ultimately we believe that we achieved what we initially set out to do. Even though the sound quality was not as good as we may have liked we did still transmit audio over the link and so we feel quite satisfied with what we have accomplished.