Digital Light Sensor

Hello,

I would like to read an infrared-signal from my digital light sensor,
but I am not able to make it work.

Your website says:

This digital module features a selectable light spectrum range due to
its dual light sensitive diodes: infrared and full spectrum. We 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.

I am using an Arduino Uno with the following code:

#include <Wire.h>
#include <Digital_Light_TSL2561.h>
void setup()
{
Wire.begin();
Serial.begin(9600);
TSL2561.init();
}

void loop()
{
Serial.print("The Light value is: ");
Serial.println(TSL2561.readVisibleLux());
delay(1000);
}

This code works fine, but now I would like to read out the
infrared-signal.

I have also found the other libary:

#include <Wire.h>
#include “Digital_Light_ISL29035.h”

void setup() {
Wire.begin();
Serial.begin(9600);

if(ISL29035.init() < 0)
Serial.println(“ISL29035 init failed!”);
}

void loop() {
Serial.println("----");
Serial.print("Ambient light intensity: ");
Serial.println(ISL29035.readVisibleLux());

Serial.print("IR intensity: ");
Serial.println(ISL29035.readIRLux());

Serial.print("Exposure value: ");
Serial.println(ISL29035.readEV());

delay(1000);
}

I am not able to initialize it and I don’t know why. In the document of
the Digital Light Sensor Library it also says Digital Light Sensor V2 so
have I bought the wrong sensor to be able to detect infrared-light?

Thanks for your support

Cajon

Hi

Cajon


There are 2 versions. Version 1 uses

TSL2561 sensor and version 2 uses

ISL29035 sensor(NOT sale this moment). You can see the version number at backside of the module.


From your description below, it is version 1, TSL2561. It can not support ISL29035 library.

For the

TSL2561, the library only supports the readVisibleLux function.


https://github.com/Seeed-Studio/Grove_Digital_Light_Sensor/blob/master/Digital_Light_TSL2561.cpp#L74

I talked with software team and they will add the readIR function. I will keep you posted.

Thanks

best rgds
Bill

Hi

Cajon


The software team comes out the IR examples for TSL2561.

https://github.com/Seeed-Studio/Grove_Digital_Light_Sensor/tree/master/examples/Digital_Light_Sensor_IR

Thanks

best rgds
Bill