Overview
This lecture explains how to build an Arduino-based timer control relay system with adjustable hours, minutes, and seconds, storing settings in EEPROM memory for retention after power loss.
Project Components & Setup
- Components needed: Arduino Nano, I2C LCD display, relay module, buzzer, 4 push buttons, breadboard, bulb holder, and wires.
- Follow the provided circuit diagram to connect all components properly.
- Use a relay to handle the control of high voltage devices like a bulb (be cautious with wiring for safety).
Programming & Code
- Connect the Arduino Nano to your computer and open the provided code.
- Download and add the necessary libraries as referenced in the code comments.
- Code includes EEPROM memory utilization for saving timer settings.
- Pin initialization is set in the code for all connected components.
- Select correct Arduino board and port before uploading the code.
Using the Timer System
- Four buttons are used: mode, up, down, and set.
- Press the mode button to cycle through setting seconds, minutes, and hours.
- Use up and down buttons to adjust the time values.
- Press the set button to save the current settings to EEPROM and start the timer.
- Timer settings remain saved even after a power outage.
Key Terms & Definitions
- Arduino Nano — A small, compact microcontroller board used for electronics projects.
- Relay Module — An electrically operated switch allowing Arduino to control high voltage devices.
- EEPROM Memory — Non-volatile memory in Arduino used to store data that persists after power loss.
- I2C LCD Display — A display module with I2C interface for showing timer values.
Action Items / Next Steps
- Assemble the circuit as per the diagram.
- Download and install required Arduino libraries from the links in the code.
- Upload the code to the Arduino Nano and test timer functionality.
- Practice adjusting and saving timer settings with the buttons.