So, the bottom line question is, would this make sense regarding the 15k that I intend to use for R7? I really appreciate all of the detailed information.hi john,
A rough plot showing how the spread on the LDR specification as indicated by the d/s.
One shows the 3 LUX range and the other the 15 LUX range.
Note the possible LDR voltage for a given LUX.
E
View attachment 361493
hi john,would this make sense regarding the 15k that I intend to use for R7?


I think that may be the best approach. How can I measure LUX?hi john,
Bottom line No.
Using a 15K for R7 all the PCB's, with the d/s plotted 12 LUX possible spread from a batch of LDRs, will mean the Light/Dark switching could be different for each PCB.
You should check say at least 20 LDR's, using a 15k and measure the LUX at the Light/Dark switching levels.
E
View attachment 361505
To clarify what this light is for, I created the light for watching deer or hunting hogs at night. The high power LED slowly brightens from very dim to very bright when motion is detected. The PWM function is intended to avoid spooking the animals like a bright light that flashes on suddenly would. The light stays bright for two minutes, then slowly fades until motion is detected again. The 5mm red LEDs come on at night to show that the unit is powered on. They blink five times to indicate that motion has been detected. The ATTINY has an Arduino sketch loaded that controls all LEDs behavior. The unit needs to power on at dusk. Light level is not critical. If these LDRs vary in resistance, so be it. Again, I value all of your input, assistance and recommendations being provided.Hi Eric, I thought if enough people told him the same thing he might listen. I don't understand what the ATtiny 85 does as it does not have an input that will control the PWM duty cycle. I don't even see the need to control the brightnes of the LEDs that it is driving. Re reading his response in post #51 he talks about ideal light level but does not say what that light level is.
Les.
Hi Eric.hi john,
You could consider a mobile phone App, ref link.
Do you have variable light source on your workbench?
E
https://lux-light-meter-free.en.sof...ds_tp&gad_source=1&gad_campaignid=22822155060
Yes sir, thx.hi john,
You do not need to measure the absolute Lux light level, you need a method of measuring the relative intensity of a light source. ie Dark On, Light Off point.
I would choose an LDR located on the PCB as the reference.
Using the outdoors Dawn/Dusk method, set the PCB , R7 value to switch at the light levels you require.
This is now your empirical relative lux measuring standard PCB.
Use a 12V variable bench power supply with say a 12V low wattage vehicle lamp/bulb and then calibrate the PSU setting using the 'standard PCB' observing and recording the switch On/Off PSU voltages of the PCB.
You can now use the recorded settings of the PSU to check other LDR/PCB units and SOT [ select on test] the required R7 value.
Double-check that the PCB units operate correctly outdoors.
Do you follow, OK.?
E