The official project (foundations learning on .org ) examples don't use a resistor.
You are switching over from high to low and vice versa at somewhere between 1.7V-1.8V from my ' a few years back now ' memory.
It may vary from Pi to Pi by a tiny bit.
You could couple this with a sunset/sunrise lookup routine so they don't keep going on and off near sunset if clouds, the sun or the moon make it flicker near your cutoff points with your LDR/capacitor setup, or add some Fuzzy Logic (as that old book on the shelf keeps reminding)
In Python it use a nice module,
You could grab times from something like this (mentioned sometime before on the forum) https://sunrise-sunset.org their API provides you with a JSON output.
You are switching over from high to low and vice versa at somewhere between 1.7V-1.8V from my ' a few years back now ' memory.
It may vary from Pi to Pi by a tiny bit.
You could couple this with a sunset/sunrise lookup routine so they don't keep going on and off near sunset if clouds, the sun or the moon make it flicker near your cutoff points with your LDR/capacitor setup, or add some Fuzzy Logic (as that old book on the shelf keeps reminding)
In Python it use a nice module,
You could grab times from something like this (mentioned sometime before on the forum) https://sunrise-sunset.org their API provides you with a JSON output.
Statistics: Posted by bensimmo — Mon Dec 02, 2024 3:30 pm