Reports.TAOSTSL230R History

Hide minor edits - Show changes to output

Deleted lines 155-157:
[[Attach:http://itp.nyu.edu/~zl316/images/TSL2304.jpg]]
Changed lines 156-157 from:
[[http://itp.nyu.edu/~zl316/images/TSL2304.jpg]]
to:
[[Attach:http://itp.nyu.edu/~zl316/images/TSL2304.jpg]]
Added lines 156-157:
[[http://itp.nyu.edu/~zl316/images/TSL2304.jpg]]
Added lines 163-164:
Changed line 5 from:
available from Parallax.com:
to:
available for $4.75 from Parallax.com:
Added lines 156-160:
!Questions/Comments

Regarding the sensitivity selection and scaling pins, I was somewhat confused as to whether or not this meant that the pins needed to be drawing continuous power (high pin connected to 5volts, low connected to ground) or if this was something that simply needed to be set to high or low once upon powering up via a message from the PIC. My attempts to solve this problem were inconclusive, but I hope to resolve it this week.

-zach layton
Changed lines 135-136 from:
The TSL230R connects directly to a microcontroller (in my case a PIC 18F452) using the PULSEIN or COUNT commands in PIC BASIC. Simply send the output Pin of the TSL230R to a digital input pin on a PIC. It is generally recommended to use a 0.1-?F capacitor on pin 5 (voltage).
to:
The TSL230R connects directly to a microcontroller (in my case a PIC 18F452) using the PULSEIN or COUNT commands in PIC BASIC. Simply send the output Pin of the TSL230R to a digital input pin on a PIC. It is generally recommended to use a 0.1microF capacitor on pin 5 (voltage).
Changed lines 154-155 from:
When working with COUNT, it's recommended to use a 1 second count. (i.e. how many pulses occur within 1 second?).
to:
When working with COUNT, it's recommended to use a 1 second count. (i.e. how many pulses occur within 1 second).
Changed lines 139-140 from:
[[Code.TSL230R | TSL230R]]
to:
[[Code.TSL230R | TSL230R]] basic stamp tsl230r example from texas instruments
February 13, 2006, at 06:49 PM by zl316 - TAOS TSL230R Light-To-Frequency Sensor
Changed lines 135-137 from:
The TSL230R connects directly to a microcontroller (in my case a PIC 18F452) using the PULSEIN or COUNT commands in PIC BASIC.
to:
The TSL230R connects directly to a microcontroller (in my case a PIC 18F452) using the PULSEIN or COUNT commands in PIC BASIC. Simply send the output Pin of the TSL230R to a digital input pin on a PIC. It is generally recommended to use a 0.1-?F capacitor on pin 5 (voltage).
Added line 4:
Changed lines 152-160 from:
With an oscilloscope it was clear to see variable frequency of the square wave. The PULSEIN command in Pic Basic Pro would facilitate pulse accumulation, COUNT enables integration.


!Application Notes

Describe your own application of the sensor. Link to any external documentation of your project, and discuss how you got the sensor
to
do what you needed it
to.
to:
It's recommended to use PULSEIN to measure the width of a single pulse. It's desirable to set the pulse width as long as possible without exceeding the maximum pulse width. In the PDF "Look into the Eye from TI" available at:
[[http://www.parallax.com/dl/docs/cols/nv/vol1/col/nv21.pdf]] it's recommended to set the pulse width
to 100ms and use this value as a divisor for the output frequency, "meaning that each output pulse represents 100 cycles from the light to frequency convertor".

When working with COUNT, it's recommended to use a 1 second count. (i.e. how many pulses occur within 1 second?).
Changed lines 18-20 from:
to:
Other uses would be found in photography applications, (measuring exposure time for example).
Changed lines 134-135 from:
The TSL230R connects directly to a microcontroller (in my case a PIC 18F452) using the PULSEIN command in PIC BASIC.
to:
The TSL230R connects directly to a microcontroller (in my case a PIC 18F452) using the PULSEIN or COUNT commands in PIC BASIC.
Changed lines 143-144 from:
to:
TAOS recommends three measurement techniques: frequency-measurement, pulse-accumulation, or
integration techniques. "Frequency measurements provide the added benefit of averaging out random or
high-frequency variations (jitter) resulting from noise in the light signal or from noise in the power supply.
Resolution is limited mainly by available counter registers and allowable measurement time. Frequency
measurement is well suited for slowly varying or constant light levels and for reading average light levels over
short periods of time. Integration (the accumulation of pulses over a very long period of time) can be used to
measure exposure, the amount of light present in an area over a given time period."

With an oscilloscope it was clear to see variable frequency of the square wave. The PULSEIN command in Pic Basic Pro would facilitate pulse accumulation, COUNT enables integration.
Changed lines 31-32 from:
-----
to:
Deleted lines 53-61:







Describe the electrical changes when the sensor senses whatever physical changes it senses.
Changed lines 140-141 from:
Describe the behavior of the sensor when you use it to sense something. Note any peculiarities that you had to work around, or things that might affect someone else's use. Graphs and images are useful here.
to:
Deleted lines 147-168:








Here's a description from the Parallax website:
---------

The Texas Advanced Optical Systems (TAOS) TSL230 sensor precisely measures light using an array of photodiodes, with an output of digital square waves. The TSL230 has an input dynamic range of 160dB; that is, it can measure light over a range of 100,000,000-to-1.

The TSL230 programmable light-to-frequency converter combines a configurable silicon photodiode and a current-to-frequency converter on single monolithic CMOS integrated circuits. The output can be either a pulse train or a square wave (50% duty cycle) with frequency directly proportional to light intensity. The sensitivity of the device is selectable and the output frequency can be scaled by one of four preset values. An output enable (OE) is provided that places the output in the high-impedance state for multiple-unit sharing of a microcontroller input line.

Features:
High-resolution conversion of light intensity to frequency with no external components
Programmable sensitivity and full-scale output frequency
Communicates directly to a BASIC Stamp or SX microcontroller
Absolute output frequency tolerance of +/- 5%
Nonlinearity error (typically 0.2% at 100kHz)
Stable over wide variety of temperatures
Changed lines 21-22 from:
Put a link to the datasheet at the top. Also link any retail sources, for example if you're using a breakout board, or any other parts that making the sensor easier.
Give the voltage and amperage ranges, and any other relevant electrical data.
to:
The TSL230 has a Minimum Supply Voltage (Vdd) of 2.7, Nominal at 5, Maximum at 5.5.
Operating free-air temperature ranges from -25 to 70 degrees celcius.
High Level Output Voltage typically at 4.5 V.
Low Level Output Voltage typically at 0.25 V.
High Level Input Current at a Max of 5 microAmps.
Low Level Input Current also at a Max of 5 microAmps.
Supply Current at Power On Mode typically is at 2 with a Max of 3 milliAmps.
Supply Current at Power Down Mode typically is at 5 with a Max of 13 microAmps.
Full Scale Frequency Range of 1.1 MHZ. (max frequency without saturation).

-----

Output Frequency at 5Volts with sensitivity settings: SO,S1=H, S2,S3=L:
Min 80, TYP, 100, MAX 120 KHZ

Output Frequency at 5Volts with sensitivity settings: S1=H, S0,S2,S3=L:
Min 8, TYP, 10, MAX 12 KHZ

Output Frequency at 5Volts with sensitivity settings: S0=H, S1,S2,S3=L:
Min .8, TYP, 1, MAX 1.2 KHZ

Output Frequency at 5Volts with sensitivity settings: S3=L, S0,S2,S1=H:
Min 40, TYP, 50, MAX 60 KHZ

Output Frequency at 5Volts with sensitivity settings: S0, S1,S2=H,S2=L:
Min 8, TYP, 10, MAX 12 KHZ

Output Frequency at 5Volts with sensitivity settings: S0, S1,S2,S3=H:
Min .8, TYP, .10, MAX 1.2 KHZ

---







Changed lines 103-104 from:
Explain how to connect the sensor to a microcontroller or computer. Include a schematic and any other necessary diagrams. Make sure to include a list of every part in the schematic.
to:
The TSL230R connects directly to a microcontroller (in my case a PIC 18F452) using the PULSEIN command in PIC BASIC.
Changed lines 107-110 from:
Give a code sample for the microcontroller you developed the example on. Link it to the Code group of the wiki, formatting the link like this:
[[Code.myCodeSample | Code Sample]]

Typical Behavior
to:
[[Code.TSL230R | TSL230R]]

!Typical
Behavior
Changed lines 79-80 from:
to:
Scaling (pins 7 and 8)
Changed line 84 from:
(:cell:) '''SCALING (divide-by)''
to:
(:cell:) ''SCALING (divide-by)''
Added lines 80-99:
(:table border=1 cellpadding=2 cellspacing=0:)
(:cell:) '''S3'''
(:cell:) '''S2'''
(:cell:) '''SCALING (divide-by)''
(:cellnr:) L
(:cell:) L
(:cell:) 1
(:cellnr:) L
(:cell:) H
(:cell:) 2
(:cellnr:) H
(:cell:) L
(:cell:) 10
(:cellnr:) H
(:cell:) H
(:cell:) 100x

(:tableend:)
Changed lines 58-59 from:
Sensitivity Scaling
to:
Sensitivity Select (pins 1 and 2):
Added lines 58-59:
Sensitivity Scaling
Changed lines 65-67 from:
(:cellnr:) OE
(:cell:) 3
(:cell:) I
to:
(:cellnr:) L
(:cell:) H
(:cell:) 1x
(:cellnr:) H
(:cell:) L
(:cell:) 10x
(:cellnr:) H
(:cell:) H
(:cell:) 100x
Changed lines 62-65 from:
(:cell:) '''Description'''
(:cellnr:) S0,S1,Sensitivity
(:cell:) 1,2
(:cell:) I
to:
(:cellnr:) L
(:cell:) L
(:cell:) Power Down
Changed lines 59-61 from:
(:cell:) '''Name'''
(:cell:) '''#'''
(:cell:) '''I/O'''
to:
(:cell:) '''S1'''
(:cell:) '''S0'''
(:cell:) '''SENSITIVITY'''
Deleted line 65:
(:cell:) Sensitivity Select Inputs
Changed lines 58-72 from:
to:
(:table border=1 cellpadding=2 cellspacing=0:)
(:cell:) '''Name'''
(:cell:) '''#'''
(:cell:) '''I/O'''
(:cell:) '''Description'''
(:cellnr:) S0,S1,Sensitivity
(:cell:) 1,2
(:cell:) I
(:cell:) Sensitivity Select Inputs
(:cellnr:) OE
(:cell:) 3
(:cell:) I
(:tableend:)
Changed line 55 from:
(:cell:) Photodiode type selection
to:
(:cell:) Scaling-Select Inputs
Changed line 35 from:
(:cell:) Scaling frequency
to:
(:cell:) Sensitivity Select Inputs
Changed line 51 from:
(:cell:) Output frequency
to:
(:cell:) Scaled-frequency output
Changed lines 27-28 from:
Give a list of the pins, and a pin diagram as appropriate. Detail the function of each pin in a short paragraph following the list.
to:
(:table border=1 cellpadding=2 cellspacing=0:)
(:cell:) '''Name'''
(:cell:) '''#'''
(:cell:) '''I/O'''
(:cell:) '''Description'''
(:cellnr:) S0,S1
(:cell:) 1,2
(:cell:) I
(:cell:) Scaling frequency
(:cellnr:) OE
(:cell:) 3
(:cell:) I
(:cell:) Output Enable (active low)
(:cellnr:) GND
(:cell:) 4
(:cell:)
(:cell:) Ground
(:cellnr:) V'_DD_'
(:cell:) 5
(:cell:)
(:cell:)Supply Voltage
(:cellnr:) OUT
(:cell:) 6
(:cell:) O
(:cell:) Output frequency
(:cellnr:) S2,S3
(:cell:) 7,8
(:cell:) I
(:cell:) Photodiode type selection
(:tableend:)
Added lines 1-2:
http://www.parallax.com/images/prod_thumb/27924.gif
Changed lines 8-9 from:
"Applications"
to:
!Applications
Changed lines 22-23 from:
Pin Descriptions
to:

!
Pin Descriptions
Changed lines 26-27 from:
Microcontroller Connections
to:

!
Microcontroller Connections
Changed lines 30-31 from:
Code Sample
to:

!
Code Sample
Changed lines 38-50 from:
Application Notes

Describe your own application of the sensor. Link to any external documentation of your project, and discuss how you got the sensor to do what you needed it to.
to:

!
Application Notes

Describe your own application of the sensor. Link to any external documentation of your project, and discuss how you got the sensor to
do what you needed it to.
Changed lines 17-18 from:
Electrical Characteristics
to:
!Electrical Characteristics
Changed lines 2-4 from:
to:
available from Parallax.com:
[[http://www.parallax.com/detail.asp?product_id=27924]]
Changed lines 6-7 from:
"'Applications"'
to:
"Applications"
Added line 11:
Changed lines 10-13 from:
Pulse Oximeter: http://www.taosinc.com/downloads/pdf/tsl230ROximeter.pdf
Heart Rate Monitor : http://www.taosinc.com/downloads/pdf/tsl230ROximeter2.pdf
to:
Pulse Oximeter: [[http://www.taosinc.com/downloads/pdf/tsl230ROximeter.pdf]]
Heart Rate Monitor : [[http://www.taosinc.com/downloads/pdf/tsl230ROximeter2.pdf]]
Added lines 1-58:
http://www.taosinc.com/images/product/document/TSL230R-E10.PDF

I decided to work with the programmable Light-To-Frequency Converter by TAOS. In the same family of Light to Frequency sensors as the TCS 230 color sensor (see report by Spencer Keiser), the TSL230R senses light using an array of photodiodes which act like an "electronic iris" and then convert the light into a variable frequency square wave or pulse train, (clearly visible using an oscilloscope). This is an extremely useful feature in the IC, making it easy to integrate with a microcontroller such as Basic Stamp or PIC.


"'Applications"'

The TCS230R has been used for medical applications, such as heart rate monitoring or as a Pulse Oximeter. Reports are available from TAOS's site.

Pulse Oximeter: http://www.taosinc.com/downloads/pdf/tsl230ROximeter.pdf
Heart Rate Monitor : http://www.taosinc.com/downloads/pdf/tsl230ROximeter2.pdf


Electrical Characteristics

Put a link to the datasheet at the top. Also link any retail sources, for example if you're using a breakout board, or any other parts that making the sensor easier.
Give the voltage and amperage ranges, and any other relevant electrical data.
Describe the electrical changes when the sensor senses whatever physical changes it senses.
Pin Descriptions

Give a list of the pins, and a pin diagram as appropriate. Detail the function of each pin in a short paragraph following the list.
Microcontroller Connections

Explain how to connect the sensor to a microcontroller or computer. Include a schematic and any other necessary diagrams. Make sure to include a list of every part in the schematic.
Code Sample

Give a code sample for the microcontroller you developed the example on. Link it to the Code group of the wiki, formatting the link like this:
[[Code.myCodeSample | Code Sample]]
Typical Behavior

Describe the behavior of the sensor when you use it to sense something. Note any peculiarities that you had to work around, or things that might affect someone else's use. Graphs and images are useful here.
Application Notes

Describe your own application of the sensor. Link to any external documentation of your project, and discuss how you got the sensor to do what you needed it to.










Here's a description from the Parallax website:
---------

The Texas Advanced Optical Systems (TAOS) TSL230 sensor precisely measures light using an array of photodiodes, with an output of digital square waves. The TSL230 has an input dynamic range of 160dB; that is, it can measure light over a range of 100,000,000-to-1.

The TSL230 programmable light-to-frequency converter combines a configurable silicon photodiode and a current-to-frequency converter on single monolithic CMOS integrated circuits. The output can be either a pulse train or a square wave (50% duty cycle) with frequency directly proportional to light intensity. The sensitivity of the device is selectable and the output frequency can be scaled by one of four preset values. An output enable (OE) is provided that places the output in the high-impedance state for multiple-unit sharing of a microcontroller input line.

Features:
High-resolution conversion of light intensity to frequency with no external components
Programmable sensitivity and full-scale output frequency
Communicates directly to a BASIC Stamp or SX microcontroller
Absolute output frequency tolerance of +/- 5%
Nonlinearity error (typically 0.2% at 100kHz)
Stable over wide variety of temperatures