Name | Modified | Size | Downloads / Week |
---|---|---|---|
ReadME.txt | 2018-02-08 | 1.3 kB | |
Sunrise to Sunset Light Controller.sch | 2018-01-24 | 7.8 kB | |
controller.pcb | 2018-01-24 | 9.3 kB | |
Light Control DS1307.gcb | 2018-01-23 | 2.7 kB | |
RTC_EEPROM.jpg | 2018-01-23 | 164.5 kB | |
Controller.jpg | 2018-01-23 | 206.7 kB | |
SunriseSunsetLoaderzs42.ino | 2016-04-28 | 2.0 kB | |
SetTime.ino | 2016-04-28 | 1.7 kB | |
Totals: 8 Items | 396.0 kB | 0 |
My dusk-to-dawn light is in a shaded area and on overcast days the light stays on all day. I bought a RTC DS1307 board that also has a AT24C32 EEPROM. I stored my Sunrise and Sunset times for a year in the EEPROM and turn on and off the light based on these times. Since their are no floating point routines in GCB I used a Adunio uno to load the EEPROM and set the RTC. The DS3231 library has a example sketch to set the RTC,SetTime,. I wrote a sketch using TimeLord to load the EEPROM,SunriseSunsetLoader, just chage the latitude , longitude and UTC offset for your location. My EST offset is -5. To connect the DS1307 RTC to Arduino Uno: SDA is connected to A4 SCL is connected to A5 I wrote a program for the PIC 16F628A ,Light Control,to control the light with a solid state relay. The power supply is a USB charger, removed from its case, I bought on Ebay for $1. The PCB was designed in ExpressPCB. I made it so that you can add upto 3 diodes to drop the power supply voltage down to 5 volts. I used 1 silicon and 1 germanium diodes with my P/S. P.S. After 14 months I had a problem that was caused by the voltage dropping on very cold days. I think that it was caused by the very low current draw from the P/S so I added a 150 ohm resister across the P/S output to increase current draw. Haven't had a problem since.