To set times for output LEDs using three push-buttons with an Arduino Uno and a DS1307 RTC, connect the buttons to digital pins and the RTC to the I2C pins (A4 for SDA and A5 for SCL). Use the buttons to increment or decrement hours and minutes, storing the desired times in variables. In your loop, read the current time from the RTC and compare it to the set times, turning the LEDs on or off as needed based on the comparison. Ensure you debounce the buttons to avoid unintended multiple inputs.
Copyright © 2026 eLLeNow.com All Rights Reserved.