💬 Light Level Sensor - BH1750
-
Another important note... If doing it the way I suggested below, You will need to reconfigure the BH1750FVI before every reading. Something like this will do:
lightSensor.configure(BH1750_ONE_TIME_HIGH_RES_MODE); delay(500); // Allow some time uint16_t lux = lightSensor.readLightLevel();// Get Lux valueCheers!
-
Hi,
Is there a way to combine this sketch and sensor with the Atmospheric Pressure since they both use the same A4 and A5 connections on the Arduino...
Thanks!
-
Hi,
Is there a way to combine this sketch and sensor with the Atmospheric Pressure since they both use the same A4 and A5 connections on the Arduino...
Thanks!
-
@mfalkvidd : Cool! So just combine the sketches and go?!?!?!!?!
Thanks!
-
@mfalkvidd : Cool! So just combine the sketches and go?!?!?!!?!
Thanks!
-
This post is deleted!
-
Hi,
I have connected my BH1750 to an Arduino nano as indicated above. After that i uploaded the sketch. I defined a node id 16 and child id 1. Nothing is happend. When i read the log it's says child id 255
debug [pimatic-mysensors]: <- I_LOG_MESSAGE 0;255;3;0;9;TSP:MSG:BC
19:55:26debug [pimatic-mysensors]: <- I_LOG_MESSAGE 0;255;3;0;9;TSP:MSG:READ 16-16-255 s=255,c=3,t=7,pt=0,l=0,sg=0:
19:55:25debug [pimatic-mysensors]: <- I_LOG_MESSAGE 0;255;3;0;9;!TSP:MSG:SEND 0-0-16-16 s=255,c=3,t=8,pt=1,l=1,sg=0,ft=0,st=fail:0
19:55:24debug [pimatic-mysensors]: <- I_LOG_MESSAGE 0;255;3;0;9;TSP:MSG:GWL OK
19:55:24debug [pimatic-mysensors]: <- I_LOG_MESSAGE 0;255;3;0;9;TSP:CHKUPL:OK (FLDCTRL)
19:55:24debug [pimatic-mysensors]: <- I_LOG_MESSAGE 0;255;3;0;9;TSP:MSG:FPAR REQ (sender=16)I don't know what i did wrong. Anyone an idea?
-
try to flash the "clear eeprom" sketch from the mysensors library and try again with your sketch.
@checkup Hi, i have done that a few times now. Unfortunately, with the same result.