node-red-contrib-periph-light
Node-RED nodes for light sensor chips: APDS-9930, APDS9250, APDS9960, BH1750, MAX44009, SI1132, SI1133, SI1145, TSL2561, TSL2591, VCNL4040, VCNL4200 — part of the Periph library.
Supported chips (12): APDS9930, APDS9250, APDS9960, BH1750, MAX44009, SI1132, SI1133, SI1145, TSL2561, TSL2591, VCNL4040, VCNL4200.
Each chip has a sensor/actuator node plus a shared -device config node that holds the bus settings. Importable example flows are in examples/.
Install
Open Node-RED, go to Manage Palette → Install and search for node-red-contrib-periph-light.
Or from the command line in your Node-RED user directory:
npm install node-red-contrib-periph-light
Nodes
| Node |
Kind |
Description |
apds9930-device |
config |
I²C bus and address for an APDS9930 |
apds9930 |
input |
Reads ambient illuminance and proximity from an APDS-9930 sensor over I²C. |
apds9250-device |
config |
Bus configuration for an APDS9250 |
apds9250 |
input |
Reads the red, green, blue and infrared channels of an APDS-9250 digital RGB, IR and ambient light sensor (I²C 0x52, 13–20 bit). |
apds9960-device |
config |
I²C bus and address for an APDS9960 |
apds9960 |
input |
Reads ambient light and color (RGBC) from an APDS-9960 sensor over I²C. |
bh1750-device |
config |
I²C bus and address for a BH1750 |
bh1750 |
input |
Reads the illuminance from a ROHM BH1750FVI ambient light sensor over I²C (address 0x23 or 0x5C) with one one-time measurement per message. |
max44009-device |
config |
I²C bus and address for a MAX44009 |
max44009 |
input |
Reads the ambient illuminance of a MAX44009 ultra-low-power light sensor (I²C, 0.045 lx to 188 006.4 lx) and arms its threshold interrupt. |
si1132-device |
config |
I²C bus and address for a SI1132 |
si1132 |
input |
Reads the UV index and the raw ambient-light counts from a Silicon Labs Si1132 over I²C (address 0x60) with one forced measurement per message. |
si1133-device |
config |
I²C bus and address for a SI1133 |
si1133 |
input |
Reads the raw UV and white-light counts from a Silicon Labs Si1133 over I²C (address 0x55 or 0x52) with one forced measurement per message. |
si1145-device |
config |
I²C bus and address for a SI1145 |
si1145 |
input |
Reads proximity, UV index and ambient light from a Silicon Labs Si1145 over I²C (address 0x60) with one forced PS + ALS measurement per message. |
tsl2561-device |
config |
I²C bus and address for a TSL2561 |
tsl2561 |
input |
Reads the illuminance and both channel counts of a TSL2561 two-channel ambient light sensor (I²C, visible + infrared and infrared photodiodes). |
tsl2591-device |
config |
Bus configuration for a TSL2591 |
tsl2591 |
input |
Reads the illuminance and both channel counts of a TSL2591 very-high-sensitivity ambient light sensor (I²C address 0x29, visible + infrared and infrared photodiodes, dynamic range about 600 000 000 : 1). |
vcnl4040-device |
config |
Bus configuration for a VCNL4040 |
vcnl4040 |
input |
Reads the proximity, ambient light and white channel of a Vishay VCNL4040 proximity sensor with ambient light sensor (I²C address 0x60, internal 940 nm IRED, 16-bit ALS). |
vcnl4200-device |
config |
Bus configuration for a VCNL4200 |
vcnl4200 |
input |
Reads the proximity, ambient light and white channel of a Vishay VCNL4200 long-distance proximity and ambient light sensor (I²C address 0x51, external 940 nm IRED on the on-chip current sink, 16-bit ALS). |
Links