Difference between revisions of "Fingertip laser light sensor"

From Mech
Jump to navigationJump to search
Line 22: Line 22:


== Data ==
== Data ==
[[Image:Resistor Selection.jpg|thumb|left|350px|Click to Enlarge]]
'''First Experiment: '''The phototransistor is placed directly adjacent to the laser. The finger was moved directly away from the laser (up/down in Experimental Setup above). Different resistors used to investigate sensitivity.
'''First Experiment: '''The phototransistor is placed directly adjacent to the laser. The finger was moved directly away from the laser (up/down in Experimental Setup above). Different resistors used to investigate sensitivity.
[[Image:Resistor Selection.jpg|thumb|left|350px]]
<br clear=all>
<br clear=all>


[[Image:Distance Calibration.jpg|thumb|left|350px|Click to Enlarge]]
Distance calibration using 19.5 K-Ohm resistor
Distance calibration using 19.5 K-Ohm resistor
[[Image:Distance Calibration.jpg|thumb|left|350px]]
<br clear=all>
<br clear=all>


[[Image:Varying Horizontal Position.jpg|thumb|left|350px|Click to Enlarge]]
'''Second Experiment: '''The phototransistor is placed directly adjacent to the laser. The finger was placed at fixed distances from the laser (1 cm, 2.5 cm, 5 cm) and then moved horizontally (left/right in Experimental Setup above). Using 19.5 K-Ohm resistor.
'''Second Experiment: '''The phototransistor is placed directly adjacent to the laser. The finger was placed at fixed distances from the laser (1 cm, 2.5 cm, 5 cm) and then moved horizontally (left/right in Experimental Setup above). Using 19.5 K-Ohm resistor.
[[Image:Varying Horizontal Position.jpg|thumb|left|350px]]
<br clear=all>
<br clear=all>


[[Image:Varying Phototransistor Position.jpg|thumb|left|350px|Click to Enlarge]]
'''Third Experiment: '''The phototransistor was moved directly out into the sheet of light (up/down in Experimental Setup). The finger was moved in same up/down direction. Using 19.5 K-Ohm resistor.
'''Third Experiment: '''The phototransistor was moved directly out into the sheet of light (up/down in Experimental Setup). The finger was moved in same up/down direction. Using 19.5 K-Ohm resistor.
[[Image:Varying Phototransistor Position.jpg|thumb|left|350px]]
<br clear=all>
<br clear=all>


[[Image:Varying Phototransistor Position Horizontally.jpg|thumb|left|350px|Click to Enlarge]]
'''Fourth Experiment: '''The phototransistor was moved to the left of the laser. The finger was moved in the up/down direction. Using 19.5 K-Ohm Resistor.
'''Fourth Experiment: '''The phototransistor was moved to the left of the laser. The finger was moved in the up/down direction. Using 19.5 K-Ohm Resistor.
[[Image:Varying Phototransistor Position Horizontally.jpg|thumb|left|350px]]
<br clear=all>
<br clear=all>



Revision as of 01:06, 12 February 2009

Original Assignment

I will provide you with a laser that emits a sheet of laser light and a phototransistor for detecting this light. You will investigate their use in developing a fingertip position sensor that senses distance to the finger based on reflected laser light. Your job is to design a sensor circuit and determine the analog voltage readings you get as a function of (1) your finger position and (2) the sensor's location relative to the emitter. You will likely display your results by communicating with a PC or by writing to an LCD (see, e.g., C Example: Serial LCD or C Example: Parallel Interfacing with LCDs).

Overview

Experimental Setup

A laser that emits a sheet of laser light and phototransistor were the main components of this lab. They are used to investigate a fingertip position sensor that senses the position of the finger based on reflected laser light. The laser is positioned so that it emits a sheet of light just above the plane of the table. If a finger is placed within this field of light, then it will reflect the light back towards the laser. A phototransistor was used to detect the light reflected from the finger. A sensor circuit was designed to take analog voltage readings from the phototransistor with the intention of relating the intensity of reflected light to both the (1) finger position and (2) the phototransistor's location relative to the emitter. The results were displayed by communicating with a PC.

To begin we placed the phototransistor directly adjacent to the laser in order that the distance from the laser to the finger would be approximately the same as the distance from the finger back to the phototransistor. In our first experimental setup, we tested four different resistors in the phototransistor sensing circuit while varying the finger position directly away from the laser (up/down in the figure) in order to get an idea of the level of sensitivity that each resistor would provide. Our second experiment involved moving the finger perpindicular to the laser (left/right in the figure) at three fixed intervals.

Then, we manipulated the position of the phototransistor to see if we could get an improved sensitivity from our sensing circuit. In our third experiment, we put a shield (electrical tape) on the backside of the phototransistor and moved it directly out (down in the figure) into the sheet of light at different positions and varied the finger position in the same (up/down) direction. In the fourth experiment, we moved the transistor directly to the left of the laser in several positions and measured the variation as the finger moved in the up/down direction.


Circuit

Code

Data

Click to Enlarge

First Experiment: The phototransistor is placed directly adjacent to the laser. The finger was moved directly away from the laser (up/down in Experimental Setup above). Different resistors used to investigate sensitivity.

Click to Enlarge

Distance calibration using 19.5 K-Ohm resistor

Click to Enlarge

Second Experiment: The phototransistor is placed directly adjacent to the laser. The finger was placed at fixed distances from the laser (1 cm, 2.5 cm, 5 cm) and then moved horizontally (left/right in Experimental Setup above). Using 19.5 K-Ohm resistor.

Click to Enlarge

Third Experiment: The phototransistor was moved directly out into the sheet of light (up/down in Experimental Setup). The finger was moved in same up/down direction. Using 19.5 K-Ohm resistor.

Click to Enlarge

Fourth Experiment: The phototransistor was moved to the left of the laser. The finger was moved in the up/down direction. Using 19.5 K-Ohm Resistor.

Limitations and Environmental Factors

There were a few environmental factors that affect the sensors:

1) Ambient light: The overhead light saturated the phototransistor and so the laser was pulsed(the pic was programmed to strobe the laser) in an effort to provide a noticeable difference between the ambient and laser light. Before the laser was pulsed, a finger in front of the transistor cast a shadow which had a larger effect (due to the blocking of the ambient light)than the actual blocking of the laser. Any shadow cast on the sensors by a finger or head will affect the ambient light sensed by the phototransistor and should be taken into account.

2) Lower resistances can be used for the phototransistor to prevent saturation but this also causes a reduced sensitivity to light.

3) The sheet laser provided was not uniform. There were different intensities of light across the line emitted.

4) There is a limited range in which the fingertip laser light sensor is accurate. Using the code and setup described above, there was accurate sensing of the fingertip directly in front of the laser and phototransistor to about seven centimeters.