LM393 Light Sensor Readings
-
Hi There,
I have just setup the mysensors LM393 Light Sensor in the hope I can use the readings it generates to control when my house light switch on and off.
I'm a little unclear about the readings that the sensor is currently generating. I have setup exactly as described in the mysensors Light Sensor example.
Initally I only got these reading in the serial monitor, then I shone a torch into the sensor and got the higher readings, It is my understanding that the sensor should read high in the dark and low in the light? is that correct? so I don't really understand why it read higher when I shone the torch on it, can someone explain, or is something wrong with my sensor?
0 0 0 96 TSP:MSG:SEND 16-16-0-0 s=0,c=1,t=23,pt=2,l=2,sg=0,ft=0,st=ok:96 96 96 96 96 43 TSP:MSG:SEND 16-16-0-0 s=0,c=1,t=23,pt=2,l=2,sg=0,ft=0,st=ok:43 96 TSP:MSG:SEND 16-16-0-0 s=0,c=1,t=23,pt=2,l=2,sg=0,ft=0,st=ok:96 0 TSP:MSG:SEND 16-16-0-0 s=0,c=1,t=23,pt=2,l=2,sg=0,ft=0,st=ok:0 -
Hi There,
I have just setup the mysensors LM393 Light Sensor in the hope I can use the readings it generates to control when my house light switch on and off.
I'm a little unclear about the readings that the sensor is currently generating. I have setup exactly as described in the mysensors Light Sensor example.
Initally I only got these reading in the serial monitor, then I shone a torch into the sensor and got the higher readings, It is my understanding that the sensor should read high in the dark and low in the light? is that correct? so I don't really understand why it read higher when I shone the torch on it, can someone explain, or is something wrong with my sensor?
0 0 0 96 TSP:MSG:SEND 16-16-0-0 s=0,c=1,t=23,pt=2,l=2,sg=0,ft=0,st=ok:96 96 96 96 96 43 TSP:MSG:SEND 16-16-0-0 s=0,c=1,t=23,pt=2,l=2,sg=0,ft=0,st=ok:43 96 TSP:MSG:SEND 16-16-0-0 s=0,c=1,t=23,pt=2,l=2,sg=0,ft=0,st=ok:96 0 TSP:MSG:SEND 16-16-0-0 s=0,c=1,t=23,pt=2,l=2,sg=0,ft=0,st=ok:0 -
@mfalkvidd so what your saying is it's working correctly?
-
@mfalkvidd so what your saying is it's working correctly?
-
@Matt-Pitts it seems so, yes.
@mfalkvidd , Indeed 0 - 100 not in lux as shown in Domoticz. That is why I started on a lux meter. Just to see how that works. With LM393 I just check... if value < 10 ... it must be dark enough to switch on the lights.
Works ideally when it is very dark during the day when a thunderstorm moves over your house.
-
@mfalkvidd , Indeed 0 - 100 not in lux as shown in Domoticz. That is why I started on a lux meter. Just to see how that works. With LM393 I just check... if value < 10 ... it must be dark enough to switch on the lights.
Works ideally when it is very dark during the day when a thunderstorm moves over your house.
@sincze - <10 is good... saves power but not approved by wife :) <30 for me... lights on! :)
Hello! It looks like you're interested in this conversation, but you don't have an account yet.
Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.
With your input, this post could be even better 💗
Register Login