A smart relay for the Arduino that allows programming of 10 time based alarms and one voltage based alarm (for overvoltage/ under voltage protection). Also uses DS1307 RTC to keep time, and allows the user to reset the time if the RTC loses time.
How to install and use:
- Get PlatformIO
- Make a blank Arduino Uno project (name it whatever you want)
- Download main.cpp and platformio.ini from this repostiory
- Replace the main.cpp file in the blank project with the downloaded one. Do the same for platformio.ini
- Build, upload and use!
Bill of materials (approximate)
- 1x Arduino Uno
- 1x 1602 LCD display
- 1x IIC I2C TWI SPI Serial Interface Board Module Port For Arduino LCD1602 Display (similar to https://rees52.com/arduino-compatible-modules/447-iic-i2c-twi-spi-serial-interface-board-module-port-for-arduino-lcd1602-display-aa134)
- 6 suitably sized buttons
- TinyRTC or similar DS1307 based realtime clock module
- 5V relay module
- Variable resistor for the voltage divider at the input to A0 (where voltage is measured)
- Suitable resistors (e.g. 1k ohm) and capacitors (e.g. 100uF) to provide suitable current draws from the Arduino and do power smoothing, respectively
- Cover for the entire system