Digital Light Sensor

Grove is a modulated, ready-to-use tool set.
Much like Lego, it takes a building block approach to assembling electronics.

Moderators: lily.li, violet, jeremy882, crail.lyu969

Post Reply
Anonymous
Kindergarten
Kindergarten
Posts: 92
Joined: Mon Jun 03, 2019 10:58 am

Post by Anonymous » Wed May 29, 2019 6:47 pm

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
#include
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
#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

Seeed Tech Support
Pre-kindergarten
Pre-kindergarten
Posts: 0
Joined: Mon Jun 03, 2019 10:51 am

Post by Seeed Tech Support » Thu May 30, 2019 11:16 am

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.


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


Thanks

best rgds
Bill


Seeed Tech Support
Pre-kindergarten
Pre-kindergarten
Posts: 0
Joined: Mon Jun 03, 2019 10:51 am

Post by Seeed Tech Support » Tue Jun 11, 2019 1:53 pm

Hi 

Cajon

The software team comes out the IR examples for TSL2561. 



 
Thanks

best rgds
Bill



Post Reply