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