loungeroom sketch transport failure
-
7778 MCO:SLP:WUP=-1 9306 TSF:MSG:SEND,3-3-0-0,s=1,c=1,t=0,pt=7,l=5,sg=0,ft=0,st=OK:20.0 T: 20.00 9316 TSF:MSG:SEND,3-3-0-0,s=0,c=1,t=1,pt=7,l=5,sg=0,ft=0,st=OK:18.0 H: 18.00 0 Battery percent: -89 % 10326 MCO:SLP:MS=120000,SMS=0,I1=255,M1=255,I2=255,M2=255 10332 MCO:SLP:TPDthis is my current log....
so temp and hum is wrking...but my lux level keeps coming back 0 i think thats what its saying....can i insert more logging on that one to see how its doing the math?
-
7778 MCO:SLP:WUP=-1 9306 TSF:MSG:SEND,3-3-0-0,s=1,c=1,t=0,pt=7,l=5,sg=0,ft=0,st=OK:20.0 T: 20.00 9316 TSF:MSG:SEND,3-3-0-0,s=0,c=1,t=1,pt=7,l=5,sg=0,ft=0,st=OK:18.0 H: 18.00 0 Battery percent: -89 % 10326 MCO:SLP:MS=120000,SMS=0,I1=255,M1=255,I2=255,M2=255 10332 MCO:SLP:TPDthis is my current log....
so temp and hum is wrking...but my lux level keeps coming back 0 i think thats what its saying....can i insert more logging on that one to see how its doing the math?
@markjgabb - ok, communication looks good! Great!
It looks like you are not getting anything out of the sensor. Is it powered? Did you connect it to analog output? (Some sensors have both digital and analog out).There is not much else to log.
You could do: Serial.println(LIGHT_SENSOR_ANALOG_PIN); to see the raw value (should be 0-1v). on the analog input.
You can also measure the voltage coming on the analog output pin on the sensor and see.The battery measurment looks strange though... negative 89? :)
-
-
ok raw lux is 15
good point...ive used a 47k resistor instead of a 470k, ill change that in the morning
Raw Lux: 15
send Lux: 0obviously a sensor error, ive moved the photo resistor into diffrent light like 4 times, and no change in reading
@markjgabb - if you can confirm that with a multimeter, its defenetly a error in the sensor... but verify because it can be a fault in the pro mini hardware/software as well.
Raw lux (Serial.println(LIGHT_SENSOR_ANALOG_PIN);) should be between value 0 and 1023.
I probably wrote wrong above though... if you are using a 5v pro mini, the input voltage range should be 0 to 5 volts
-
photo resistor is now working...domoticz is showing varied amounts of reading though the night and morning....
but its back to front....its reads 90ish in the middle of the night and this morning fluxuated between 50-10 and is now sitting at 30 with an empty house......did i math backwards? or is this expected behaviour due to the way the resistance works?
in domoticz would i just use low values as my brightness
-
photo resistor is now working...domoticz is showing varied amounts of reading though the night and morning....
but its back to front....its reads 90ish in the middle of the night and this morning fluxuated between 50-10 and is now sitting at 30 with an empty house......did i math backwards? or is this expected behaviour due to the way the resistance works?
in domoticz would i just use low values as my brightness
@markjgabb said in loungeroom sketch transport failure:
photo resistor is now working...domoticz is showing varied amounts of reading though the night and morning....
but its back to front....its reads 90ish in the middle of the night and this morning fluxuated between 50-10 and is now sitting at 30 with an empty house......did i math backwards? or is this expected behaviour due to the way the resistance works?
in domoticz would i just use low values as my brightness
Resistance gets lower when you have light. So higher when you have no light, meaning you have higher voltage when you measure voltage across the photoresistor.
-
@markjgabb said in loungeroom sketch transport failure:
photo resistor is now working...domoticz is showing varied amounts of reading though the night and morning....
but its back to front....its reads 90ish in the middle of the night and this morning fluxuated between 50-10 and is now sitting at 30 with an empty house......did i math backwards? or is this expected behaviour due to the way the resistance works?
in domoticz would i just use low values as my brightness
Resistance gets lower when you have light. So higher when you have no light, meaning you have higher voltage when you measure voltage across the photoresistor.
@Nca78 - what kind of sensor are you using? Or just a single photoresistor as Nca78 suggested?
-
just a single photoresistor,
i just wasnt sure if there was a way to reverse map the numbers so that if it says 1 it sends 99@markjgabb - a single photoresistor can be extremly sensitive, ie 0 to full in a small change in light. There are alot of guides out there, just google around.
-
@sundberg84 solved the light sensitivity level by swapping the 10k for a 100k...
makes it more acurate in lighter enviroments, but less so in dark enviromentsbut by my theory after its a little dim im counting it as dark all the way to full dark for lighting purposes anyway
cheers for all your help....