Heres one for you clever people to ponder......
My curtain and lights controller has recently started playing up...it reads the light level from a TAOS TSL250R (into #w0) and sends a signal to an external RF remote controller to turn lights on at a preset darkness then when it gets darker it sends another signal to close electrically operated curtains, the lights are turned off at a preset time by a separate controller with it's own clock, not part of this project.
For the past few weeks I have noticed that the lights are on in the morning, I added some tracking commands and managed to log the program overnight and it seems that the curtains open when it gets light (correct) then after a 5 min delay when the light level is read again it is reported to have dropped so the lights turn on again !
Have attached the relevant part of the log file showing date, time and light level (#w0) and also the main program in case someone could offer any ideas.
At 04.25.31 curtains open (#w0=98)
At 04.31.25 light has continued to increase (#w0=104)
At 04.31.27 lights turn back on (#w0=76)
At 04.32.03 curtains close (#w0=70)
At 04.37.57 light read again and has dropped (#w0=67)
At 04.43.08 curtains open again (#w0=107)
So, it appears from reading #w0 that the light level falls from 104 to 76 between 04.31.25 and 04.31.27 i.e. in just 2 seconds and continues to drop slightly but surely this cannot be the case ?
I have tried varying the trigger points and also increased the read delay to 15 mins to no avail.
Thanks in advance
My curtain and lights controller has recently started playing up...it reads the light level from a TAOS TSL250R (into #w0) and sends a signal to an external RF remote controller to turn lights on at a preset darkness then when it gets darker it sends another signal to close electrically operated curtains, the lights are turned off at a preset time by a separate controller with it's own clock, not part of this project.
For the past few weeks I have noticed that the lights are on in the morning, I added some tracking commands and managed to log the program overnight and it seems that the curtains open when it gets light (correct) then after a 5 min delay when the light level is read again it is reported to have dropped so the lights turn on again !
Have attached the relevant part of the log file showing date, time and light level (#w0) and also the main program in case someone could offer any ideas.
At 04.25.31 curtains open (#w0=98)
At 04.31.25 light has continued to increase (#w0=104)
At 04.31.27 lights turn back on (#w0=76)
At 04.32.03 curtains close (#w0=70)
At 04.37.57 light read again and has dropped (#w0=67)
At 04.43.08 curtains open again (#w0=107)
So, it appears from reading #w0 that the light level falls from 104 to 76 between 04.31.25 and 04.31.27 i.e. in just 2 seconds and continues to drop slightly but surely this cannot be the case ?
I have tried varying the trigger points and also increased the read delay to 15 mins to no avail.
Thanks in advance
Attachments
-
9.4 KB Views: 14
-
2 KB Views: 3