TSL2560, TSL2561 LIGHT-TO-DIGITAL CONVERTER r r TAOS059Q − NOVEMBER 2009 D Approximates Human Eye Response D Programmable Interrupt Function with D D User-Defined Upper and Lower Threshold Settings 16-Bit Digital Output with SMBus (TSL2560) at 100 kHz or I2C (TSL2561) Fast-Mode at 400 kHz Programmable Analog Gain and Integration Time Supporting 1,000,000-to-1 Dynamic Range PACKAGE CS 6-LEAD CHIPSCALE (TOP VIEW) D D 5 INT ADDR SEL 2 4 SCL GND 3 D Automatically Rejects 50/60-Hz Lighting Ripple Low
TSL2560, TSL2561 LIGHT-TO-DIGITAL CONVERTER TAOS059Q − NOVEMBER 2009 Functional Block Diagram Channel 0 Visible and IR Integrating A/D Converter Channel 1 IR Only VDD = 2.7 V to 3.5 V Address Select ADDR SEL Command Register ADC Register Interrupt INT SCL Two-Wire Serial Interface SDA Detailed Description The TSL2560 and TSL2561 are second-generation ambient light sensor devices. Each contains two integrating analog-to-digital converters (ADC) that integrate currents from two photodiodes.
TSL2560, TSL2561 LIGHT-TO-DIGITAL CONVERTER TAOS059Q − NOVEMBER 2009 Terminal Functions TERMINAL NAME CS, T, FN PKG NO. CL PKG NO. ADDR SEL 2 3 GND 3 2 INT 5 6 SCL 4 SDA 6 VDD 1 1 TYPE I DESCRIPTION SMBus device select — three-state Power supply ground. All voltages are referenced to GND. O Level or SMB Alert interrupt — open drain. 4 I SMBus serial clock input terminal — clock signal for SMBus serial data. 5 I/O SMBus serial data I/O terminal — serial data I/O for SMBus.
TSL2560, TSL2561 LIGHT-TO-DIGITAL CONVERTER TAOS059Q − NOVEMBER 2009 Operating Characteristics, High Gain (16 ), VDD = 3 V, TA = 25 C, (unless otherwise noted) (see Notes 2, 3, 4, 5) PARAMETER fosc TEST CONDITIONS Oscillator frequency Dark ADC count value Ee = 0 0, Tint = 402 ms Tint > 178 ms Full scale ADC count value (Note 6) Tint = 101 ms Tint = 13.
TSL2560, TSL2561 LIGHT-TO-DIGITAL CONVERTER TAOS059Q − NOVEMBER 2009 NOTES: 2. Optical measurements are made using small-angle incident radiation from light-emitting diode optical sources. Visible 640 nm LEDs and infrared 940 nm LEDs are used for final product testing for compatibility with high-volume production. 3. The 640 nm irradiance Ee is supplied by an AlInGaP light-emitting diode with the following characteristics: peak wavelength λp = 640 nm and spectral halfwidth Δλ½ = 17 nm. 4.
TSL2560, TSL2561 LIGHT-TO-DIGITAL CONVERTER TAOS059Q − NOVEMBER 2009 AC Electrical Characteristics, VDD = 3 V, TA = 25 C (unless otherwise noted) PARAMETER† t(CONV) TEST CONDITIONS Conversion time Clock frequency (I2C only) f(SCL) MIN TYP MAX 12 100 UNIT 400 ms 0 400 kHz 100 kHz Clock frequency (SMBus only) 10 t(BUF) Bus free time between start and stop condition 1.3 μs t(HDSTA) Hold time after (repeated) start condition. After this period, the first clock is generated. 0.
TSL2560, TSL2561 LIGHT-TO-DIGITAL CONVERTER TAOS059Q − NOVEMBER 2009 PARAMETER MEASUREMENT INFORMATION t(LOW) t(R) t(F) VIH SCL VIL t(HDSTA) t(BUF) t(HIGH) t(SUSTA) t(HDDAT) t(SUSTO) t(SUDAT) VIH SDA VIL P Stop Condition S S Start Condition Start P Stop t(LOWSEXT) SCLACK SCLACK t(LOWMEXT) t(LOWMEXT) t(LOWMEXT) SCL SDA Figure 1.
TSL2560, TSL2561 LIGHT-TO-DIGITAL CONVERTER TAOS059Q − NOVEMBER 2009 TYPICAL CHARACTERISTICS SPECTRAL RESPONSIVITY 1 Normalized Responsivity 0.8 Channel 0 Photodiode 0.6 0.4 0.2 Channel 1 Photodiode 0 300 400 500 600 700 800 900 1000 1100 λ − Wavelength − nm Figure 4 0.8 0.8 Normalized Responsivity 1.0 0.6 0.4 0.2 0 −90 Optical Axis NORMALIZED RESPONSIVITY vs. ANGULAR DISPLACEMENT — T PACKAGE 1.0 Optical Axis Normalized Responsivity NORMALIZED RESPONSIVITY vs.
TSL2560, TSL2561 LIGHT-TO-DIGITAL CONVERTER TAOS059Q − NOVEMBER 2009 0.8 0.8 Normalized Responsivity 1.0 Optical Axis Normalized Responsivity 1.0 0.6 0.4 0.6 0.4 0.2 0.2 0 −90 Optical Axis NORMALIZED RESPONSIVITY vs. ANGULAR DISPLACEMENT — CL PACKAGE NORMALIZED RESPONSIVITY vs. ANGULAR DISPLACEMENT — FN PACKAGE −60 −30 0 30 60 − Angular Displacement − ° 90 0 −90 −60 −30 0 30 60 − Angular Displacement − ° Figure 7 The LUMENOLOGY r Company 90 Figure 8 Copyright E 2009, TAOS Inc.
TSL2560, TSL2561 LIGHT-TO-DIGITAL CONVERTER TAOS059Q − NOVEMBER 2009 PRINCIPLES OF OPERATION Analog-to-Digital Converter The TSL256x contains two integrating analog-to-digital converters (ADC) that integrate the currents from the channel 0 and channel 1 photodiodes. Integration of both channels occurs simultaneously, and upon completion of the conversion cycle the conversion result is transferred to the channel 0 and channel 1 data registers, respectively.
TSL2560, TSL2561 LIGHT-TO-DIGITAL CONVERTER TAOS059Q − NOVEMBER 2009 When an SMBus Block Write or Block Read is initiated (see description of COMMAND Register), the byte following the COMMAND byte is ignored but is a requirement of the SMBus specification. This field contains the byte count (i.e. the number of bytes to be transferred). The TSL2560 (SMBus) device ignores this field and extracts this information by counting the actual number of bytes transferred before the Stop condition is detected.
TSL2560, TSL2561 LIGHT-TO-DIGITAL CONVERTER TAOS059Q − NOVEMBER 2009 1 7 1 1 8 1 1 S Slave Address Wr A Data Byte A P Figure 10. SMBus Send Byte Protocol 1 7 1 1 8 1 1 S Slave Address Rd A Data Byte A P 1 Figure 11. SMBus Receive Byte Protocol 1 7 1 1 S Slave Address Wr A 8 Command Code 1 8 1 1 A Data Byte A P Figure 12.
TSL2560, TSL2561 LIGHT-TO-DIGITAL CONVERTER TAOS059Q − NOVEMBER 2009 1 S 1 1 Wr A 7 Slave Address 8 Command Code 1 8 1 8 1 A Byte Count = N A Data Byte 1 A 8 8 1 Data Byte 2 ... A ... Data Byte N 1 1 A P Figure 16. SMBus Block Write or I2C Write Protocols NOTE: The I2C write protocol does not use the Byte Count packet, and the Master will continue sending Data Bytes until the Master initiates a Stop condition.
TSL2560, TSL2561 LIGHT-TO-DIGITAL CONVERTER TAOS059Q − NOVEMBER 2009 Command Register The command register specifies the address of the target register for subsequent read and write operations. The Send Byte protocol is used to configure the COMMAND register. The command register contains eight bits as described in Table 3. The command register defaults to 00h at power on. Table 3.
TSL2560, TSL2561 LIGHT-TO-DIGITAL CONVERTER TAOS059Q − NOVEMBER 2009 Timing Register (1h) The TIMING register controls both the integration time and the gain of the ADC channels. A common set of control bits is provided that controls both ADC channels. The TIMING register defaults to 02h at power on. Table 5.
TSL2560, TSL2561 LIGHT-TO-DIGITAL CONVERTER TAOS059Q − NOVEMBER 2009 Table 7.
TSL2560, TSL2561 LIGHT-TO-DIGITAL CONVERTER TAOS059Q − NOVEMBER 2009 Table 9. Interrupt Control Select INTR FIELD VALUE READ VALUE 00 Interrupt output disabled 01 Level Interrupt 10 SMBAlert compliant 11 Test Mode: Sets interrupt and functions as mode 10 NOTE: Field value of 11 may be used to test interrupt connectivity in a system or to assist in debugging interrupt service routine software. Table 10.
TSL2560, TSL2561 LIGHT-TO-DIGITAL CONVERTER TAOS059Q − NOVEMBER 2009 ID Register (Ah) The ID register provides the value for both the part number and silicon revision number for that part number. It is a read-only register, whose value never changes. Table 11.
TSL2560, TSL2561 LIGHT-TO-DIGITAL CONVERTER TAOS059Q − NOVEMBER 2009 APPLICATION INFORMATION: SOFTWARE Basic Operation After applying VDD, the device will initially be in the power-down state. To operate the device, issue a command to access the CONTROL register followed by the data value 03h to power up the device. At this point, both ADC channels will begin a conversion at the default integration time of 400 ms. After 400 ms, the conversion results will be available in the DATA0 and DATA1 registers.
TSL2560, TSL2561 LIGHT-TO-DIGITAL CONVERTER TAOS059Q − NOVEMBER 2009 APPLICATION INFORMATION: SOFTWARE Configuring the Timing Register The command, timing, and control registers are initialized to default values on power up. Setting these registers to the desired values would be part of a normal initialization or setup procedure. In addition, to maximize the performance of the device under various conditions, the integration time and gain may be changed often during operation.
TSL2560, TSL2561 LIGHT-TO-DIGITAL CONVERTER TAOS059Q − NOVEMBER 2009 APPLICATION INFORMATION: SOFTWARE Interrupts The interrupt feature of the TSL256x device simplifies and improves system efficiency by eliminating the need to poll the sensor for a light intensity value. Interrupt styles are determined by the INTR field in the Interrupt Register. The interrupt feature may be disabled by writing a field value of 00h to the Interrupt Control Register so that polling can be performed.
TSL2560, TSL2561 LIGHT-TO-DIGITAL CONVERTER TAOS059Q − NOVEMBER 2009 APPLICATION INFORMATION: SOFTWARE The following example pseudo code illustrates the configuration of an SMB Alert style interrupt when the light intensity changes 20% from the current value, and persists for 3 conversion cycles: // Read current light level Address = 0x39 //Slave addr also 0x29 or 0x49 Command = 0xAC //Set Command bit and Word bit ReadWord (Address, Command, DataLow, DataHigh) Channel0 = (256 * DataHigh) + DataLow //Calcul
TSL2560, TSL2561 LIGHT-TO-DIGITAL CONVERTER TAOS059Q − NOVEMBER 2009 APPLICATION INFORMATION: SOFTWARE Calculating Lux The TSL256x is intended for use in ambient light detection applications such as display backlight control, where adjustments are made to display brightness or contrast based on the brightness of the ambient light, as perceived by the human eye. Conventional silicon detectors respond strongly to infrared light, which the human eye does not see.
TSL2560, TSL2561 LIGHT-TO-DIGITAL CONVERTER TAOS059Q − NOVEMBER 2009 //**************************************************************************** // // Copyright E 2004−2005 TAOS, Inc. // // THIS CODE AND INFORMATION IS PROVIDED ”AS IS” WITHOUT WARRANTY OF ANY // KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE // IMPLIED WARRANTIES OF MERCHANTABILITY AND/OR FITNESS FOR A PARTICULAR // PURPOSE. // // Module Name: // lux.
TSL2560, TSL2561 LIGHT-TO-DIGITAL CONVERTER TAOS059Q − NOVEMBER 2009 #define B2T #define M2T 0x0214 0x02d1 // 0.0325 * 2^LUX_SCALE // 0.0440 * 2^LUX_SCALE #define K3T #define B3T #define M3T 0x00c0 0x023f 0x037b // 0.375 * 2^RATIO_SCALE // 0.0351 * 2^LUX_SCALE // 0.0544 * 2^LUX_SCALE #define #define #define #define #define #define K4T B4T M4T K5T B5T M5T 0x0100 0x0270 0x03fe 0x0138 0x016f 0x01fc // // // // // // #define K6T #define B6T #define M6T 0x019a 0x00d2 0x00fb // 0.
TSL2560, TSL2561 LIGHT-TO-DIGITAL CONVERTER TAOS059Q − NOVEMBER 2009 #define K4C #define B4C #define M4C 0x010a // 0.520 * 2^RATIO_SCALE 0x0282 // 0.0392 * 2^LUX_SCALE 0x03df // 0.0605 * 2^LUX_SCALE #define K5C #define B5C #define M5C 0x014d // 0.65 * 2^RATIO_SCALE 0x0177 // 0.0229 * 2^LUX_SCALE 0x01dd // 0.0291 * 2^LUX_SCALE #define K6C #define B6C #define M6C 0x019a // 0.80 * 2^RATIO_SCALE 0x0101 // 0.0157 * 2^LUX_SCALE 0x0127 // 0.
TSL2560, TSL2561 LIGHT-TO-DIGITAL CONVERTER TAOS059Q − NOVEMBER 2009 break; } // scale if gain is NOT 16X if (!iGain) chScale = chScale << 4; // scale 1X to 16X // scale the channel values channel0 = (ch0 * chScale) >> CH_SCALE; channel1 = (ch1 * chScale) >> CH_SCALE; //−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−− // find the ratio of the channel values (Channel1/Channel0) // protect against divide by zero unsigned long ratio1 = 0; if (channel0 != 0) ratio1 = (channel1 << (RAT
TSL2560, TSL2561 LIGHT-TO-DIGITAL CONVERTER TAOS059Q − NOVEMBER 2009 else if (ratio > K8C) {b=B8C; m=M8C;} break; } unsigned long temp; temp = ((channel0 * b) − (channel1 * m)); // do not allow negative lux value if (temp < 0) temp = 0; // round lsb (2^(LUX_SCALE−1)) temp += (1 << (LUX_SCALE−1)); // strip off fractional portion unsigned long lux = temp >> LUX_SCALE; return(lux); } Copyright E 2009, TAOS Inc. The LUMENOLOGY r Company r r 28 www.taosinc.
TSL2560, TSL2561 LIGHT-TO-DIGITAL CONVERTER TAOS059Q − NOVEMBER 2009 APPLICATION INFORMATION: HARDWARE Power Supply Decoupling and Application Hardware Circuit The power supply lines must be decoupled with a 0.1 μF capacitor placed as close to the device package as possible (Figure 18).
TSL2560, TSL2561 LIGHT-TO-DIGITAL CONVERTER TAOS059Q − NOVEMBER 2009 APPLICATION INFORMATION: HARDWARE PCB Pad Layout Suggested PCB pad layout guidelines for the TMB-6 (T) surface mount package, chipscale (CS) package, Dual Flat No-Lead (FN) surface mount package, and ChipLED−6 (CL) surface mount package are shown in Figure 19, Figure 20, Figure 21, and Figure 22. 3.80 0.90 0.90 0.25 0.70 0.70 2.60 0.70 NOTES: A. All linear dimensions are in millimeters. B.
TSL2560, TSL2561 LIGHT-TO-DIGITAL CONVERTER TAOS059Q − NOVEMBER 2009 2.90 1.30 1.30 0.40 0.65 1.70 0.65 0.40 NOTES: A. All linear dimensions are in millimeters. B. This drawing is subject to change without notice. Figure 21. Suggested FN Package PCB Layout 1.30 0.43 0.40 0.65 0.40 0.70 0.70 NOTES: A. All linear dimensions are in millimeters. B. This drawing is subject to change without notice. Figure 22. Suggested CL Package PCB Layout The LUMENOLOGY r Company Copyright E 2009, TAOS Inc.
TSL2560, TSL2561 LIGHT-TO-DIGITAL CONVERTER TAOS059Q − NOVEMBER 2009 MECHANICAL DATA PACKAGE CS Six-Lead Chipscale Device TOP VIEW PIN OUT BOTTOM VIEW 1398 6 1 5 2 4 3 171 203 465 1250 END VIEW 400 50 700 55 6 100 TYP 30 BOTTOM VIEW SIDE VIEW 375 30 6 210 30 500 1750 500 Pb 375 30 NOTES: A. B. C. D. E. 500 Lead Free All linear dimensions are in micrometers. Dimension tolerance is ± 25 μm unless otherwise noted. Solder bumps are formed of Sn (96.
TSL2560, TSL2561 LIGHT-TO-DIGITAL CONVERTER TAOS059Q − NOVEMBER 2009 MECHANICAL DATA PACKAGE TMB-6 Six-Lead Surface Mount Device TOP VIEW TOP VIEW 1.90 0.31 PIN 1 R 0.20 6 Pls 2.60 PIN 4 3.80 Photo-Active Area END VIEW 0.88 1.35 0.50 BOTTOM VIEW 0.90 TYP 0.90 TYP 0.60 TYP 0.30 TYP Pb 0.30 TYP Lead Free All linear dimensions are in millimeters. Dimension tolerance is ± 0.20 mm unless otherwise noted. The photo-active area is 1398 μm by 203 μm.
TSL2560, TSL2561 LIGHT-TO-DIGITAL CONVERTER TAOS059Q − NOVEMBER 2009 MECHANICAL DATA PACKAGE FN Dual Flat No-Lead TOP VIEW PIN OUT TOP VIEW PIN 1 2000 75 VDD 1 6 DATA ADR 2 5 INT GND 3 4 CLK 2000 75 Photo-Active Area END VIEW SIDE VIEW 650 50 203 8 Seating Plane 650 300 50 BOTTOM VIEW PIN 1 Pb 750 150 NOTES: A. B. C. D. E. F. Lead Free All linear dimensions are in micrometers. Dimension tolerance is ± 20 μm unless otherwise noted. The photo-active area is 1398 μm by 203 μm.
TSL2560, TSL2561 LIGHT-TO-DIGITAL CONVERTER TAOS059Q − NOVEMBER 2009 MECHANICAL DATA PACKAGE CL-6 Six-Lead Surface Mount Device PIN OUT TOP VIEW TOP VIEW 2.60 2.20 5 4 6 3 Pin 1 2 Photo-Active Area Pin 1 Marker SIDE VIEW 2.2 0.65 0.18 BOTTOM VIEW Pin 1 Marker 0.65 Pin 1 0.40 6 0.70 0.35 Pb 5 Lead Free All linear dimensions are in millimeters. Dimension tolerance is ± 0.10 mm unless otherwise noted. The photo-active area is 1398 μm by 203 μm.
TSL2560, TSL2561 LIGHT-TO-DIGITAL CONVERTER TAOS059Q − NOVEMBER 2009 MECHANICAL DATA TOP VIEW 2.00 0.05 4.00 1.75 1.50 4.00 B + 0.30 8.00 − 0.10 3.50 0.05 0.60 0.05 A B A DETAIL B DETAIL A 5 Max 5 Max 0.250 0.02 1.35 0.05 Ao NOTES: A. B. C. D. E. F. G. 1.85 0.05 0.97 0.05 Bo Ko All linear dimensions are in millimeters. Dimension tolerance is ± 0.10 mm unless otherwise noted. The dimensions on this drawing are for illustrative purposes only.
TSL2560, TSL2561 LIGHT-TO-DIGITAL CONVERTER TAOS059Q − NOVEMBER 2009 MECHANICAL DATA 0.30 0.050 2.10 SIDE VIEW 1.75 0.100 B 1.50 4 0.100 END VIEW 2 0.100 8 Typ TOP VIEW 12 0.100 5.50 0.100 1.50 R 0.20 TYP B A A DETAIL B DETAIL A 2.90 0.100 Ao 3.09 MAX R 0.20 TYP R 0.20 TYP 4.29 MAX 4.10 0.100 Bo 1.80 Ko NOTES: A. B. C. D. E. F. G. All linear dimensions are in millimeters. The dimensions on this drawing are for illustrative purposes only.
TSL2560, TSL2561 LIGHT-TO-DIGITAL CONVERTER TAOS059Q − NOVEMBER 2009 MECHANICAL DATA TOP VIEW 2.00 0.05 1.75 4.00 1.50 4.00 B + 0.30 8.00 − 0.10 3.50 0.05 1.00 0.25 A B A DETAIL B DETAIL A 5 Max 5 Max 0.254 0.02 2.18 0.05 NOTES: H. I. J. K. L. M. N. 2.18 0.05 0.83 0.05 Ao Bo Ko All linear dimensions are in millimeters. Dimension tolerance is ± 0.10 mm unless otherwise noted. The dimensions on this drawing are for illustrative purposes only.
TSL2560, TSL2561 LIGHT-TO-DIGITAL CONVERTER TAOS059Q − NOVEMBER 2009 MECHANICAL DATA TOP VIEW 2.00 0.05 4.00 1.50 + 0.10 4.00 1.75 B 8.0 0.2 3.50 0.05 1.00 A B A DETAIL B DETAIL A 5 Max 5 Max 0.20 0.05 2.4 Ao NOTES: A. B. C. D. E. F. G. 2.9 0.7 Bo Ko All linear dimensions are in millimeters. Dimension tolerance is ± 0.10 mm unless otherwise noted. The dimensions on this drawing are for illustrative purposes only. Dimensions of an actual carrier may vary slightly.
TSL2560, TSL2561 LIGHT-TO-DIGITAL CONVERTER TAOS059Q − NOVEMBER 2009 MANUFACTURING INFORMATION The CS, T, FN, and CL packages have been tested and have demonstrated an ability to be reflow soldered to a PCB substrate. The process, equipment, and materials used in these test are detailed below. The solder reflow profile describes the expected maximum heat exposure of components during the solder reflow process of product on a PCB. Temperature is measured on top of component.
TSL2560, TSL2561 LIGHT-TO-DIGITAL CONVERTER TAOS059Q − NOVEMBER 2009 MANUFACTURING INFORMATION Moisture Sensitivity Optical characteristics of the device can be adversely affected during the soldering process by the release and vaporization of moisture that has been previously absorbed into the package molding compound. To ensure the package molding compound contains the smallest amount of absorbed moisture possible, each device is dry-baked prior to being packed for shipping.
TSL2560, TSL2561 LIGHT-TO-DIGITAL CONVERTER TAOS059Q − NOVEMBER 2009 PRODUCTION DATA — information in this document is current at publication date. Products conform to specifications in accordance with the terms of Texas Advanced Optoelectronic Solutions, Inc. standard warranty. Production processing does not necessarily include testing of all parameters.
TSL2561 Luminosity Sensor Created by lady ada Last updated on 2015-06-12 12:10:28 PM EDT
Guide Contents Guide Contents Overview Wiring the TSL2561 Sensor Using the TSL2561 Sensor Downloads Buy a TSL2561 Sensor © Adafruit Industries https://learn.adafruit.
Overview The TSL2561 luminosity sensor is an advanced digital light sensor, ideal for use in a wide range of light situations. Compared to low cost CdS cells, this sensor is more precise, allowing for exact Lux calculations and can be configured for different gain/timing ranges to detect light ranges from up to 0.1 - 40,000+ Lux on the fly.
Some Stats Approximates Human eye Response Precisely Measures Illuminance in Diverse Lighting Conditions Temperature range: -30 to 80 *C Dynamic range (Lux): 0.1 to 40,000 Lux Voltage range: 2.7-3.6V Interface: I2C Pick one up today from the Adafruit shop! (http://adafru.it/439) © Adafruit Industries https://learn.adafruit.
Wiring the TSL2561 Sensor This is an easy sensor to get started with. The breakout board comes with a 6-pin header strip that you can use to plug the sensor into a breadboard or perfboard. Simply plug the header into a solderless breadboard with the long pins down and short pins up. Place the sensor on top so each pad has a header pin in it and solder the two together. Next we will connect it to our microcontroller.
Connect the i2c SDA data pin to your i2c data pin. On the classic Arduino Uno/Duemilanove/Diecimila/etc this is Analog pin #4 Unfortunately, the i2c lines on most microcontrollers are fixed so you're going to have to stick with those pins. You may be wondering, how is it OK to connect a 3.3V chip like the TSL2561 to 5.0V data pins like the Arduino? Isn't that bad? Well, in this specific case its OK. I2c uses pullup lines to the 3.3V power pin, so the data is actually being sent at 3.3V.
You don't need to connect the ADDR (i2c address change) or INT (interrupt output) pins. The ADDR pin can be used if you have an i2c address conflict, to change the address. Connect it to ground to set the address to 0x29, connect it to 3.3V (vcc) to se t the address to 0x49 or leave it floating (unconnected) to use address 0x39. The INT pin is an ouput from the sensor used when you have the sensor configured to signal when the light level has changed.
Using the TSL2561 Sensor To use this sensor and calculate Lux, there's a lot of very hairy and unpleasant math. You can check out the math in the datasheet (http://adafru.it/aJR) but really, its not intuitive or educational its just how the sensor works. So we took care of all the icky math and wrapped it up into a nice Arduino library. (http://adafru.it/aZ9) You can find the Arduino library repository on github (http://adafru.
The library is fairly simple to use. The first line of code in the example is the 'constructor' where you can supply the I2C ADDR (in case you want to change it), and a unique ID to attach to this sensor (you can just leave this to the default value of 12345 for now). By modifying the I2C address we can have up to three TSL2561 sensors connected on the same board: // The address will be different depending on whether you leave // the ADDR pin float (addr 0x39), or tie it to ground or vcc.
Next up, you will want to configure the sensor with the gain and integration time. You can have either a gain of 0 (no extra gain, good in low light situations) or a gain of 16 which will boost the light considerably in dim situations. You can also change the integration time, which is how long it will collect light data for. The longer the integration time, the more precision the sensor has when collecting light samples. New to v2.
When you're ready to get your measurement in standard SI lux units, simply call getEvent with a reference to the 'sensors_event_t' object where the sensor data will be stored. This example assumes we are using the 'tsl' instance of Adafruit_TSL2561 at the top of the example code: © Adafruit Industries https://learn.adafruit.
/* Get a new sensor event */ sensors_event_t event; tsl.getEvent(&event); /* Display the results (light is measured in lux) */ if (event.light) { Serial.print(event.light); Serial.println(" lux"); } else { /* If event.light = 0 lux the sensor is probably saturated and no reliable data could be generated! */ Serial.println("Sensor overload"); } This function will return a reading in SI lux units, which is probably the easiest unit to understand when working with light.
Downloads Datasheet (http://adafru.it/aJS) TSL2561 Driver v2.0 (Unified Sensor Driver) (http://adafru.it/aZ9) - See http://learn.adafruit.com/tsl2561/use (http://adafru.it/c7O) for installation instructions TSL2561 Driver v1.0 on github (obsolete!) (http://adafru.it/aJT) © Adafruit Industries https://learn.adafruit.
Buy a TSL2561 Sensor Buy a TSL2561 Sensor (http://adafru.