Trace: » group3weekly
Differences
This shows you the differences between the selected revision and the current version of the page.
group3:group3weekly 2008/09/28 12:37 | group3:group3weekly 2008/11/24 11:34 current | ||
---|---|---|---|
Line 2: | Line 2: | ||
- | === Week 2: Sept 9-12 === | + | == Week 2: Sept 9-12 == |
This week so far our group has decided on our preferred projects for the course as well as considered some of optics involved. Presently our group's first choice of project is the traffic monitoring system, with the free-space optical communication device as a second choice. We have also decided to use, at least as a testbed, a visible red laser pointer as a source and basic phototransistors as receivers. Examining the parts catalogs has shown that these components will be feasible in terms of cost and we intend to put in an order in lab next week unless there in a change in plans. | This week so far our group has decided on our preferred projects for the course as well as considered some of optics involved. Presently our group's first choice of project is the traffic monitoring system, with the free-space optical communication device as a second choice. We have also decided to use, at least as a testbed, a visible red laser pointer as a source and basic phototransistors as receivers. Examining the parts catalogs has shown that these components will be feasible in terms of cost and we intend to put in an order in lab next week unless there in a change in plans. | ||
Line 8: | Line 8: | ||
The general design for the traffic monitoring system at this point is to have two lasers on one side of the road, and two detectors on the other side. When a vehicle or pedestrian goes by a laser beam, the beam will not reach the detector. By having two sets of lasers and detectors, we can deduce the speed of the person/vehicle based on when each laser is blocked. We can deduce if it is a person or vehicle based on whether or not both lasers are ever blocked simultaneously. Another approach to this problem is that by using the speed solved for in the first portion, we can integrate the speed over the amount of time that any single laser was blocked for to find the length of the object. This assumes no acceleration, but with the recievers placed close together, unless there are very high accelerations, this method will work well. From this, we can also tell if it was a car or person based on length of object. It will also allow our detectors to be closer together so that we require less wire. Our group discussed the possibility of minimizing the cost of the system by incorporating just one laser and one detector, and splitting the beam into two different intensities, sending them across the road at 2 different places using mirrors, and recombining them at the detector. The issue we had was that this was inherently unstable, with small changes in the positions of the mirrors misaligning the paths to the detector. In order to compensate for wind and seismic vibrations, our group discussed the idea of using a already secure object to mount our laser and receiver on. By mounting on something like a tree, or another solid object, we can ensure greater stability of the laser and also save money on building a stand that would require a large base. | The general design for the traffic monitoring system at this point is to have two lasers on one side of the road, and two detectors on the other side. When a vehicle or pedestrian goes by a laser beam, the beam will not reach the detector. By having two sets of lasers and detectors, we can deduce the speed of the person/vehicle based on when each laser is blocked. We can deduce if it is a person or vehicle based on whether or not both lasers are ever blocked simultaneously. Another approach to this problem is that by using the speed solved for in the first portion, we can integrate the speed over the amount of time that any single laser was blocked for to find the length of the object. This assumes no acceleration, but with the recievers placed close together, unless there are very high accelerations, this method will work well. From this, we can also tell if it was a car or person based on length of object. It will also allow our detectors to be closer together so that we require less wire. Our group discussed the possibility of minimizing the cost of the system by incorporating just one laser and one detector, and splitting the beam into two different intensities, sending them across the road at 2 different places using mirrors, and recombining them at the detector. The issue we had was that this was inherently unstable, with small changes in the positions of the mirrors misaligning the paths to the detector. In order to compensate for wind and seismic vibrations, our group discussed the idea of using a already secure object to mount our laser and receiver on. By mounting on something like a tree, or another solid object, we can ensure greater stability of the laser and also save money on building a stand that would require a large base. | ||
- | === Week 3: September 22-28 === | + | == Week 4: September 22-25 == |
After the presentations of last week, our group has been assigned to the free-space optics project. We have decided to use many of our ideas from the traffic-control project and adapt them to the free-space optical system. A basic parts list including a microcontroller and phototransistor sensors was drawn up. We have decided to use a red visible wavelength, and first tests will be conducted using the lenses supplied in the lab and purchased basic laser pointers. We have decided on the use of either OOK (on-off keying) or FSK (frequency shift keying) for data encoding, and have chosen serial interface using the UART protocol for communicating with the computer. We may need to purchase a UART modem at a later date, but we have selected a microcontroller with an ADC, DAC, and UART interface in an attempt to keep our options open. | After the presentations of last week, our group has been assigned to the free-space optics project. We have decided to use many of our ideas from the traffic-control project and adapt them to the free-space optical system. A basic parts list including a microcontroller and phototransistor sensors was drawn up. We have decided to use a red visible wavelength, and first tests will be conducted using the lenses supplied in the lab and purchased basic laser pointers. We have decided on the use of either OOK (on-off keying) or FSK (frequency shift keying) for data encoding, and have chosen serial interface using the UART protocol for communicating with the computer. We may need to purchase a UART modem at a later date, but we have selected a microcontroller with an ADC, DAC, and UART interface in an attempt to keep our options open. | ||
+ | |||
+ | == Week 5: September 29 - October 3 == | ||
+ | |||
+ | A final design was chosen for our project, as well as the required proof of concepts. The design is to use a microcontroller connected to a PC to code a photo or text into binary, and use the OOK signal to modulate the laser. A phototransistor on the other end is used to receive the signal, and a second microcontroller is used to reverse the operation, decoding the binary, and representing the text or image on the PC screen. | ||
+ | |||
+ | To test laser detection, we would hook the phototransistor to an oscilloscope to test the voltage the laser provides to the transistor at different distances and angles. To test the laser modulation, we would hook the laser to a function generator and the phototransistor across the room to an oscilloscope, and see if the oscilloscope is able to generate a matching wave pattern for varying frequencies (i.e. determine the highest frequency with which we can send data). | ||
+ | |||
+ | The phototransistor was chosen to be one that simulates the human eye's spectrum of absorption, so that a typical red laser could be used. This will potentially require a lot of shielding, or even filtering, at the phototransistor to prevent ambient light from providing a voltage. The microcontrollers were chosen based on the requirements to support C programming, and being able to modulate a signal at a fast enough speed. Unfortunately, the microcontroller was not of a typical type, so there are no matching programming boards to match it. | ||
+ | |||
+ | Further discussion with Glen Leinweber, lab technician, found that the microcontroller would be too slow to react at the required transmission speeds. Some further thinking is required here. | ||
+ | |||
+ | Our group has scheduled a meeting with Prof. Hranilovic for next Friday to provide some insight on free-space optics design. | ||
+ | |||
+ | Below is our design concept: | ||
+ | |||
+ | {{:group3:conceptdesign.jpg?400x215|}} | ||
+ | |||
+ | == Week 7: October 13-17 == | ||
+ | |||
+ | The group discovered that the microcontroller we ordered is a surface mount! This means it has no leads and cannot be easily mounted on a circuit board. A new PIC microcontroller has been ordered from Microchip as a free sample, paying attention to packaging and making sure it is compatible with our programming software. | ||
+ | |||
+ | Electronic design has been further thought out. The transmit electronics will consist of a single MOSFET transistor, gated by the signal from the computer, and biased at 5 volts to drive the transmitting laser. The receive electronics will incorporate a comparator - either the PIC unit's onboard comparator or a separate one - to decode the signal by comparing it agaisnt a reference level. The reference level may be determined from the signal itself or it may be given by a second phototransistor used to sense the ambient light in the receive area. | ||
+ | |||
+ | A receiver unit has been constructed from ABS pipe. The receiver incorporates a dollar-store magnifying glass as a lens, mounted at one end of the pipe. The phototransistor sensor is mounted in one end of the pipe, at roughly the focal point of the lens. Alignment of the transmitting laser is accomplished manually, and has been proven through tests to be reasonably simple. See the design schematic for more details. | ||
+ | |||
+ | Preliminary tests show that the phototransistor outputs a modulated voltage corresponding to the modulated laser at up to the 115 kHz maximum of serial RS232 communication, but a cleaner square-wave signal is obtained at lower frequencies (~50 kHz). The photransistor may be replaced by a free-sample model ordered from TAOS if we find the signal is unusable with a comparator. | ||
+ | |||
+ | Below is our proof of concept test: | ||
+ | |||
+ | {{:group3:fso_concept_1.png?440x365|}} | ||
+ | {{:group3:fso_concept_2.png?500x270|}} | ||
+ | |||
+ | == Week 9: October 27-31 == | ||
+ | |||
+ | At the start of this week, the group met to work on the electronic proof of principle test. A productive experiment was completed in which a comparator circuit was designed which can work directly with the output signal of the phototransistor to create a digital output. The waveform produced was suitable to be read by an RS 232 connector. There was noise however near the flip flops which was the result of the lack of a schmit trigger to prevent noise from giving the comparaor a mixed imput. | ||
+ | |||
+ | Later in the week, the group completed the proof of principle sucessuflly. The laser driver circuit was a simple n channel mosfet which takes in a signal from an RS232 or function generator to drive the transistor to allow a seperate power supply to power the laser diode. The reciever circuit is a comparator with a schmit trigger to eliminate noise while not in operation. The circuit operates at 115kilobaud maximum because that it the speed of an Rs232 connector. The output of the comparator goes into the rs232 cable. The group also considered the availablity of software which may not be able to have one way communication. It may be that two way communication will be required. Further investigation into available software must be performed. | ||
+ | |||
+ | == Week 10: November 3-7 == | ||
+ | |||
+ | Progress was made in the communication front. A major problem with using existing communication methods for the optical system is that most require both communicating devices (the laptops) to send and receive the data because of handshaking protocols. In other words, the sending laptop cannot simply send a signal, but will also by default receive a signal from the other laptop so corrections can be made for lost bits. The optical system as it is currently, however, cannot handle this, since the laser pointer end can only send, and the phototransistor end can only receive. | ||
+ | |||
+ | A basic test using a female-to-female RS-232 cable showed that it could be ports could be shorted to make the computer handshake with itself during transfer. The idea would then be to trick the sending computer in to thinking the receiving computer had sent back the required signals. This worked successfully, though the wiring job connection ports on the RS-232 cable may need some work since the connections were loose. This testing was done in HyperTerminal, which has come bundled with any version of Windows since 1998 at least. While text could be sent by this method, sending a file through the application was not successful. The problem is that HyperTerminal's file transfer is set up so a file can be sent when the sending computer is on the sending screen, and the receiving computer is on the receiving screen. In other words, one computer cannot handshake to itself because it cannot simultaneously have the send and receive screens open. | ||
+ | |||
+ | This leads to using a C program with serial port libraries to perform this instead. Using this, the computer can be tricked into thinking a handshake has occurred much more easily. There are many free examples online of C code that can be used to transfer files by serial port, so by understanding how they were, modifications can be made so the sending can be done without requiring receiving. This would also be good since it would allow the design of a GUI for the program that more clearly matches the goals of the project. | ||
+ | |||
+ | On the hardware end, if too large a current enters a computer by the serial port, there is a chance it can do damage to the motherboard of the computer. This, in combination with the rarity of serial ports in modern laptops, leads us to use a USB to serial port adapter, since this will also limit current automatically, instead of designing more circuitry to do the same job. | ||
+ | |||
+ | We had an extended talk about synchronicity in the circuit: if the frequency in which the data is sent will be the same as when it is received. In theory, if there is any delay in transmit, all of the signal will suffer the same lag, and so the receiving end will be at the same frequency. However, if there is a variable delay depending on the state sent, then a clocking mechanism will need to be employed on the receiving end to realign the data to the set frequency of the receiving laptop. | ||
+ | |||
+ | The electronics of the circuit may have to be modified for the final design as well. In the lab, we have access to a voltage source that can provide a positive or negative voltage, but for the final demonstration we need it to run on batteries that will not be able to achieve this naturally. Instead, a current pump will need to be added to offset the DC voltage of the battery in the way we need. | ||
+ | |||
+ | Next week, we plan to send and receive a text signal using HyperTerminal between two computers using our free space optics to send the data by laser. Also, preliminary programming will be done in C to control the serial ports of the sending and receiving laptops. | ||
+ | |||
+ | == Week 11: November 10-14 == | ||
+ | |||
+ | The sending end of the circuit was modified such that it would send a 0 as a high voltage, and a 1 as a low voltage, opposite of intuitive. The advantage this inversion is that the laser will be on when no data is being sent, making alignment with the telescope end more possible. | ||
+ | |||
+ | Freeware software called "Realterm" was obtained from Sourceforge.com for sending data and files by serial port without any protocol (handshaking that would require sending back and forth). | ||
+ | |||
+ | On Friday, the FSO system successfully transmitted a 500kb picture from across the lab at a 38400 baud rate in under 5 minutes. Higher baud rates were tested with text and pictures, and found to work up to a standard baud rate of 57600. Non-standard baud rates can be chosen in Realterm, though 57600 or 38400 is sufficient for our project, and most likely safer. | ||
+ | |||
+ | The rest of the work on the project will work on moving the project outdoors. The challenges ahead are mounting methods for the telescope and laser, as well as power solutions for our project (since power supplies are used currently). | ||
+ | |||
+ | |||
+ | **Nov 24** | ||
+ | |||
+ | |||
+ | In the last week, the group was experimenting with USB powering for their circuit. A Max 232 chip with capacitative voltage increasing was used to go from 5 to 9V. A second laser pointer and a NAND gate(which is part of the MAX 232 chip) were also implemented. The addition of the chip has not yet been sucessfully tested. |
You are here: start » group3 » group3weekly