J
Jason Thorsness
How well do you think this would work as a linear position sensor?
With a 1200 dpi laser printer, I would print a long pattern like the
following onto overhead projector film (if it works in laser printers?
Otherwise I would use a high-resolution inkjet).
Each column is a line (top view, left-to-right)
(black area)
## ## ## ## ## ## ## ## ## ## ##
(black area of about 1cm between patterns)
# # # # # # # # # # #
(black area)
I would then shine an LED through a slit and the film and onto a
photodiode, like below (side cutaway):
LED
| |
| |
| |
| |
------------- (film with pattern as above)
| |
| |
DIODE
The slit would be 1/1200 of an inch wide, just like a bar on the
pattern. I would probably make the slit out of bolts and plates so it
is adjustable to this distance.
There would be a photodiode for the top part of the pattern and the
bottom. They should have the following current waveforms:
TOP PHOTODIODE (Thicker bars)
i
| . .
| . . . .
| . . . .
|..... .......... .
|--------------------------------------- t
BOTTOM PHOTODIODE (THINNER bars)
i
| ......... ........
| . . .
| . . .
|..... ..
|--------------------------------------- t
The total current from both diodes would add to the the following
waveform:
TOP + BOTTOM PHOTODIODE
i
|
| ... ...
| . . . .
| . . . .
| . . . .
| . . .
| . . .
|..... .
|--------------------------------------- t
If I measure this current by measuring voltage across a resistor with
the ADC on a PIC16F877 at 8bit * 20Khz (values subject to change;
estimated) . I could theoretically get 3/1200 (three bars per pattern
segment) * .0254 (conversion to meters) / 2^8 = about 0.248um
resolution. I understand I will probably get horrendous error, but
for my needs I only need about 100um resolution, so I think this is
feasible.
I have a few questions though:
1) Would photodiodes in this setup output a linear waveform? If not,
I could record the waveform to the PIC and then compare it with each
measurement to still retain accuracy.
2)I use two photodiodes so that the input waveform is asymmetrical so
that I can measure direction as well as displacement...is there a
better way to do this?
Any other input would be appreciated.
-Jason Thorsness
[email protected]
With a 1200 dpi laser printer, I would print a long pattern like the
following onto overhead projector film (if it works in laser printers?
Otherwise I would use a high-resolution inkjet).
Each column is a line (top view, left-to-right)
(black area)
## ## ## ## ## ## ## ## ## ## ##
(black area of about 1cm between patterns)
# # # # # # # # # # #
(black area)
I would then shine an LED through a slit and the film and onto a
photodiode, like below (side cutaway):
LED
| |
| |
| |
| |
------------- (film with pattern as above)
| |
| |
DIODE
The slit would be 1/1200 of an inch wide, just like a bar on the
pattern. I would probably make the slit out of bolts and plates so it
is adjustable to this distance.
There would be a photodiode for the top part of the pattern and the
bottom. They should have the following current waveforms:
TOP PHOTODIODE (Thicker bars)
i
| . .
| . . . .
| . . . .
|..... .......... .
|--------------------------------------- t
BOTTOM PHOTODIODE (THINNER bars)
i
| ......... ........
| . . .
| . . .
|..... ..
|--------------------------------------- t
The total current from both diodes would add to the the following
waveform:
TOP + BOTTOM PHOTODIODE
i
|
| ... ...
| . . . .
| . . . .
| . . . .
| . . .
| . . .
|..... .
|--------------------------------------- t
If I measure this current by measuring voltage across a resistor with
the ADC on a PIC16F877 at 8bit * 20Khz (values subject to change;
estimated) . I could theoretically get 3/1200 (three bars per pattern
segment) * .0254 (conversion to meters) / 2^8 = about 0.248um
resolution. I understand I will probably get horrendous error, but
for my needs I only need about 100um resolution, so I think this is
feasible.
I have a few questions though:
1) Would photodiodes in this setup output a linear waveform? If not,
I could record the waveform to the PIC and then compare it with each
measurement to still retain accuracy.
2)I use two photodiodes so that the input waveform is asymmetrical so
that I can measure direction as well as displacement...is there a
better way to do this?
Any other input would be appreciated.
-Jason Thorsness
[email protected]