Arduino Turn on / off anything at a specific time
How to turn on / off anything at a specific time with Arduino
In this tutorial, we will learn how to turn on / off anything at a specific time. For this we will use DS1302 RTC module and Relay module.
Hardware Required :
Project circuit :
Project circuit diagram is shown below.
For most of our Arduino projects that require to detect when an individual has left or entered the world , or has approached, HC-SR501 PIR sensors are an excellent choice. they’re low power and low cost, pretty rugged, have a good lens range, easy to interface with and are insanely popular among hobbyists.
HC-SR501 PIR sensor has three output pins VCC, Output and Ground. it’s a built-in transformer so it are often powered by any DC voltage from 4.5 to 12 volts, typically 5V is employed . aside from this, there are a few options you’ve got together with your PIR.
Link to the Code :
Download the DS1302 Library :
http://www.rinkydinkelectronics.com/library.php?id=5