Warning: putenv() has been disabled for security reasons in /home/users4/d/debrouilloweb/www/wikidebrouillard/LocalSettings.php on line 193

Warning: putenv() has been disabled for security reasons in /home/users4/d/debrouilloweb/www/wikidebrouillard/LocalSettings.php on line 197

Warning: putenv() has been disabled for security reasons in /home/users4/d/debrouilloweb/www/wikidebrouillard/includes/parser/Parser.php on line 2338

Warning: putenv() has been disabled for security reasons in /home/users4/d/debrouilloweb/www/wikidebrouillard/includes/parser/Parser.php on line 2338

Warning: putenv() has been disabled for security reasons in /home/users4/d/debrouilloweb/www/wikidebrouillard/includes/parser/Parser.php on line 2338

Warning: putenv() has been disabled for security reasons in /home/users4/d/debrouilloweb/www/wikidebrouillard/includes/parser/Parser.php on line 2338

Warning: putenv() has been disabled for security reasons in /home/users4/d/debrouilloweb/www/wikidebrouillard/includes/parser/Parser.php on line 2338
[ Wikidébrouillard ] Grove : capteur numérique de lumière

Grove : capteur numérique de lumière

De Wikidebrouillard.


Sommaire

Introduction

This module is based on the I2C light-to-digital converter TSL2561 to transform light intensity to a digital signal. Different from traditional analog light sensor, as Grove - Light Sensor, this digital module features a selectable light spectrum range due to its dual light sensitive diodes: infrared and full spectrum.

You can switch among three detection modes to take your readings. They are infrared mode, full spectrum and human visible mode. When running under the human visible mode, this sensor will give you readings just close to your eye feelings.



Features

  • Selectable detection modes
  • High resolution 16-Bit digital output at 400 kHz I2C Fast-Mode
  • Wide dynamic range: 0.1 - 40,000 LUX
  • Wide operating temperature range: -40°C to 85°C
  • Programmable interrupt function with User-Defined Upper and lower threshold settings

Specifications

Items Min     Type      Max Unit
Supply voltage, VDD 3.3         5          5.1 V
Operating temperature -30         \            70
SCL,SDA input low voltage -0.5          \          0.8 V
SCL,SDA input high voltage 2.3           \          5.1 V

Interface Function



U1: TSL2561 IC, Light-To-Digital Converter.
U3: XC6206MR332 IC, Positive Voltage Regulators.
Q1,Q2: BSN20 IC, N-channel Enhancement Mode Vertical D-MOS Transistor.
SCL,SDA: I2C Signal Interface

TSL2561 Functional Block Diagram

Image:Functional Block Diagram 2.jpg

Usage

1. Plug the Grove - Digital Light Sensor onto the I2C port on Grove - Base Shield, and then plug the base shield onto Arduino;

2. Download the library file:Digital Light Sensor Library;

3. Unzip it into the libraries file of Arduino IDE by the path: ..\arduino-1.0.1\libraries.

4. Create an Arduino sketch and paste the following codes to it or open the code directly by the path:File -> Example ->Digital_Light_Sensor->Digital_Light_Sensor.

  
/* Digital Light sensor demo V1.0
* Connect the sensor to I2C port of Arduino to use.
*
* By:http://www.seeedstudio.com
*/
#include <Wire.h>
#include <Digital_Light_TSL2561.h>
void setup()
{
  Wire.begin(); 
  Serial.begin(9600);
  TSL2561.init(); 
}

void loop()
{  
  unsigned long  Lux;
  TSL2561.getLux();
  Serial.print("The Light value is: ");
  Serial.println(TSL2561.calculateLux(0,0,1));
  delay(1000);
  }

5. Upload the code. Please click here if you do not know how to upload.
6. Open the serial monitor to see the result.
Image:Digital Light Sensor Score Picture.jpg
In the case of completely light matte, The output result is 0.

Reference

Register Map

The TSL2561 is controlled and monitored by sixteen registers (three are reserved) and a command register accessed through the serial interface. These registers provide for a variety of control functions and can be read to determine results of the ADC conversions. The register set is summarized as show below.


Register.jpg

Spectrum Response Curve


Image:Spectral responsivity.jpg

Two channels of the digital light sensor have different response characteristic. That's why you can choose its working mode by having both of them on or one of them off.

Version Tracker

Revision Descriptions Release
Grove - Digit light sensor v0.9b Initial public release for Grove module

Resource

Grove - Digital Light Sensor Eagle File
Grove - Digital Light Sensor Schematic
CalculateLux Library File
TSL2561 Datasheet

Support

If you have questions or other better design ideas, you can go to our forum or wish to discuss.

AR
CO

Grove : capteur numérique de lumière

Rechercher

Page Discussion Historique
Powered by MediaWiki
Creative Commons - Paternite Partage a l

© Graphisme : Les Petits Débrouillards Grand Ouest (Patrice Guinche - Jessica Romero) | Développement web : Libre Informatique