Look at the circuit I posted here
http://www.picbasic.co.uk/forum/show...4777#post84777
You can actually add this functionality to to a PIC timer (one that acts as a timer using timer0 and/or timer1) and does not use an RTC , your choice though).
By adding the timer to it you could do something like :
Code:
IF daylight AND time is daytime THEN motor_pin OFF
You could also go on to add things like a temperature controller and humidity sensor.
All of these combined could determine whether it is dark outside because of rain or a storm or a passing aeroplane or bird or insect on the sendor :-)
So our light sensor becomes quite a smart device.
Anyways , just a thought :-)
Kind regards
Dennis
Bookmarks