Skip to content

Arduino sketch to control multiple relays based on schedule (uses real time clock [RTC])

Notifications You must be signed in to change notification settings

adiastra/Light-Controller

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 

Repository files navigation

Light-Controller

Cycles on and off 4 separate relays based on information from a real time clock.

The real time clock in this case is a DS3231 (library included)

The relays are controling 2 LED light bars each with 3 modes (day/night/off).

You have to set the time for the RTC using the commented out code in the setup section

For this configuration relays 1 and 3 switch between two different modes on the light bar

relays 3 and 4 turn off the bars and should be wired in series.

Written by: Alec DiAstra

About

Arduino sketch to control multiple relays based on schedule (uses real time clock [RTC])

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published