This is a presentation on a project I completed as a freshman as part of the "Computers, Instuments, and Data Acquisition Techniques" course taught by Dr. Bob Kremens of RIT.
4. How is the TSL230
Used?
• The TSL230 outputs a square-wave
pulse train with a frequency
proportional to light intensity
• These pulses can be counted to determine the
frequency output by the TSL230 in a given
amount of time. From this, the relative
intensity can be determined.
9. How is the
STAMP BS2e used?
• The STAMP • The STAMP regulates
interfaces with and power for the TSL230
reads in output from -- 9V source to 5V
the sensor, and sets supply
the sensitivity
multiplier • The STAMP handles
user input via buttons
• The STAMP outputs
the data to the LCD • The STAMP handles
processing of
radiometric data and
light intensity
calibration
10. BASIC STAMP BS2e
Overview
• 64 Bytes RAM (not much!)
• Temporary space to store program
variables at runtime
• 16KB EEPROM
• Non-volatile space to store program,
constants, long-term data
• 16 Channels I/O
• Programmable over RS232 (serial)
18. Rough Overview of
Lightmeter BASIC program
• Initialize LCD
• Set sensitivity multiplier of TSL230
sensor to 1x scaling
• Count pulses on input pin for 1 second
• Convert count value to ASCII string
• Output ASCII string to LCD screen
19. Rough Overview of
Lightmeter BASIC program
• 80% RAM usage (approx)
• 25% EEPROM usage (approx)
• 400 Lines in length (approx)
27. Results
• Current reading is approximately
given in units of μW/cm2
• The lightmeter can distinguish light
sources of varying brightness quite
well
• The LCD screen correctly outputs the
COUNT value
28. Possible Improvements
• User input via buttons
• On/off switch -- quite the oversight!
• Calibrate sensor output to known light
source
• Output useful data -- radiometric,
photographic, etc.
• Futher case modifications -- button holes,
etc.
• More secure mounting of internal
components