FAQ

HiI have purchased several of these sensors and trying to build a sky light sensor. I'm using RPi.I would like to understand the Sensor better, what is the chip used in the SEN0390...

userHead JaneYu 2021-05-01 07:06:02 113 Views13 Replies

Hi
I have purchased several of these sensors and trying to build a sky light sensor. I'm using RPi.

I would like to understand the Sensor better, what is the chip used in the SEN0390 Ambient light sensor.
kind thanks
daniel

2024-06-14 21:15:23

Why i got error when i try to use this sensor with lcd i2c?

userHeadPic JaneYu
2024-05-13 00:35:12

Can this sensor be used with DFRobot's FireBeetle 2 board using Arduino to program it?

userHeadPic JaneYu
2024-05-07 15:14:49

Hi, Can multiple SEN0390 sensors, be used on the same board?

userHeadPic JaneYu
JaneYu wrote:

Hello, you can use this I2C multiplexer:
https://www.dfrobot.com/pro...

2024-05-07 15:16:22
1 Replies
2023-12-06 16:17:48

Sorry we only have sample code and library files about Arduino.
If you need to use Raspberry Pi to use this sensor, you can use Arduino shield for Raspberry with it.
https://www.dfrobot.com/pro...

userHeadPic JaneYu
2023-10-21 05:08:47

Was the photodiode recently changed in these sensors? I have ordered two, the second a few months after the first. They give different results and sensitivity in the same location outdoors.

The photodiodes visually appear different between the two sensors as well.

userHeadPic JaneYu
2023-09-14 16:11:07

I know I'm late and I haven't used the sensor and it seems there isn't a command but the wiki does claim that the 5th pin can be set Low to disable and High to enable. It appears there are 5 pins that connect it to your controller and 4 are the usual I2C gang of VCC GND Clock Data (though in a different order on this device apparently) but the 5th is an enable/disable pin. I haven't tested it to see if it works but I am considering ordering this and several others sensors for some testing at some point for a project.

userHeadPic JaneYu
2022-11-04 10:07:34

Hi, Could you please send us your revised code?

userHeadPic JaneYu
JaneYu wrote:

Code used:
#include <dfrobot_b_lux_v30b.h>

DFRobot_B_LUX_V30B myLux(0, 9, 8);

void SPrintZeroPadBin(uint8_t number) {
char binstr[]="00000000";
uint8_t i=0;
uint8_t n = number;

while(n>0 && i<8){
binstr[8-1-i]=n%2+'0';
++i;
n/=2;
}

Serial.println(binstr);
}

void setup() {
Serial.begin(9600);
myLux.begin();
bool ok = false;
while(!ok){
int result = myLux.setMode(myLux.eAutomatic,myLux.eCDR_0,myLux.eTime800ms);
Serial.print("result: ");
Serial.println(result);
ok = result == 1;
}
}

void loop() {
Serial.println("--------------");
Serial.print("Conf: ");
SPrintZeroPadBin(myLux.readMode());
Serial.print("Lux: ");
Serial.println(myLux.lightStrengthLux());
delay(2000);
}

This is the output of the serial monitor:
https://uploads.disquscdn.c...

The Config read from the readMode() function seems to be completely random. For example, according to the API's header file, bit 7 and 6 should always be 0 in Automatic mode.

2022-11-11 20:21:42
1 Replies
2021-09-25 00:05:35

Hi
if I buy 10 pieces. all of them are same address or different address?

userHeadPic JaneYu
2021-07-01 21:43:23

can I use this sensor in greenhouse?
is it waterproof?

userHeadPic JaneYu