Download Print this page

Parallax TSL1401-DB Instructions Manual page 12

Linescan camera module

Advertisement

inten
VAR cnt
DEBUG HOME
GOSUB DispHdr
FOR inten = 32 TO 8
exp = 32000 / inten * 8 'Compute exposure time as inverse of intensity.
GOSUB GetPix
GOSUB DispPix
NEXT
END
Here's what the output looks like when viewing a bagel lighted from the front:
You can see where the hole is, as well as the outside edges. However, this also illustrates a couple pitfalls
of front lighting: specular reflection (glare) from the black background surface (i.e. black not being all
that black), and rounded-off edges. Proper lighting techniques encompass an entire subject area of their
own. The last chapter of this document links to various resources on the internet that cover this
important topic.
© Bueno Systems, Inc. • TSL1401-DB (2009.10.01)
'Go to home position on DEBUG screen.
'Display the pixel location header.
'Cycle through intensities in reverse.
'Acquire the binary pixels.
'Display them.
'Continue with next lower intensity level.
Page 12 of 52

Advertisement

loading