Arduino and DS1307 RTC with PWM sketch
Closed - This job posting has been filled and work has been completed.
Overview : I have a working, LED backlit sign that needs to be turned on and off, during the morning and evening open hours, IF it is dark enough. Also, when the lights are running, I will power them through a power transistor via a PWM pin which smoothly cycles between 50-70% when the pin is HIGH.
I have an Arduino Mega 2560,
a Tiny RTC IC2 DS1307 module (from ebay- no temp sensor)
and an Photo Diode Sensor Module 1-Channel Adjustable Digital Output 3.3V~5V Arduino (from ebay)
I would like the code to be written to cycle a digital output when all of the following is true:
The time is between 5-8AM or 3:30-7pm Monday - Saturday; and 6-8AM or 3:30 - 4PM Sunday
the light sensor indicates a dark enough condition.
The sketch needs to allow for daylight savings time. (I am currently -7 UTC, or US PDT)
I can handle all the wiring and circuit building, but don't understand the logical interfacing of the RTC at the program level.
You will need to provide the working sketch, and point me to the exact RTC library I need to install
The code should have adequate comments, as I may have to change the hours later.
This job is behind schedule, and I will select a freelancer who can provide the results quickly. A bonus will be paid for very quick work.