October 31, 2024, 08:21:19 PM

News:

Be sure to checkout our Vixen interfaces in the Library forum -- if you want PC automation at near zero cost, EFX-TEK and Vixen is a great combination of tools.


Light Dark Detector

Started by Jadams, July 23, 2010, 09:59:50 AM

Previous topic - Next topic

Jadams

I'm sure this isn't new to most, but it was to me.

I want to turn on an outside light when my light beam is tripped, but only after dark.  I used a photoresistor connected directly to the P6 header.  With a little simple code, it worked.

If Sensor = IsOn then Main
Relay = IsOn
PAUSE 30000
Relay = IsOff
Jim Adams