Difference between revisions of "Fingertip laser light sensor"

From Mech
Jump to navigationJump to search
Line 18: Line 18:
== Data ==
== Data ==
Finger in front of the laser and phototransistor (Resistors and Y distance from finger to laser/transistor varied)
Finger in front of the laser and phototransistor (Resistors and Y distance from finger to laser/transistor varied)
[[Image:Resistor Selection.jpg|thumb|300px]]
[[Image:Resistor Selection.jpg|thumb|left|300px]]
<br clear=all>
<br clear=all>


Transistor in front of the laser (Y distance from transistor and laser varied)
Transistor in front of the laser (Y distance from transistor and laser varied)
[[Image:Varying Phototransistor Position.jpg|thumb|300px]]
[[Image:Varying Phototransistor Position.jpg|thumb|left|300px]]
<br clear=all>
<br clear=all>



Revision as of 23:18, 11 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

A laser that emits a sheet of laser light and phototransistor for detecting this light were the main components of this lab. Their use in developing a fingertip position sensor that senses distance to the finger based on reflected laser light was investigated. A sensor circuit was designed and analog voltage readings as a function of (1) finger position and (2) the sensor's location relative to the emitter were taken. The results were displayed by communicating with a PC.

Data from several situations involving different positionings of the laser, phototransistor, and fingertip was taken.

Circuit

Code

Data

Finger in front of the laser and phototransistor (Resistors and Y distance from finger to laser/transistor varied)

Resistor Selection.jpg


Transistor in front of the laser (Y distance from transistor and laser varied)

Varying Phototransistor Position.jpg


Transistor next to laser (For certain Y distances, X coordinates varied)


Transistor next to laser (For certain X coordinates, Y distance varied)

Graph.jpg


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.