General

Ambient Light Sensor (0-200klx) - can not be used with other IIC

userHead Bart.Woodstrup 2025-07-30 10:58:26 81 Views1 Replies

The data sheet for the Ambient Light Sensor says this: “This sensor is sealed by software IIC, and can not be used with other equipment or sensors using hardware IIC” 

 

https://wiki.dfrobot.com/Ambient_Light_Sensor_0_200klx_SKU_SEN0390

 

Does this mean that it cannot be used with any other I2C devices? 

2025-08-30 13:27:25

I figured it out a few weeks ago and am just getting around to posting it now… you can easily use other I2C devices with this sensor, you just need to use digital pins. I'm using an Arduino Nano IoT 33 in a weather station and I have a few I2C sensors, but I had to put the light sensor on pins D4 and D5, here's where I set it in the code:

 

DFRobot_B_LUX_V30B myLux(13, 5, 4);  //Software I2C w clock on D5 and data on D4

 

It's pretty easy to figure out if you open and read the DFRobot_B_LUX_V30B.h

userHeadPic Bart.Woodstrup