PROBLEM STATEMENT:
The tissue culture lab of Vigyan Ashram cultivates tobacoo plant. For proper growth of the plant it needs 8 hours of complete darkness and 16 hours of light.
OBJECTIVE:
- The timer which ON/OFF for required time.
- To reduce unnecessary energy losses.
FLOWCHART:
INTRODUCTION:
RTC(REAL TIME CLOCK) :
Arduino Uno:
- RTC module are time and date remembering system.
- It uses back-up battery to maintain the time in the event that the power source is removed.
- RTC uses crystal oscillator. crystal oscillator frequency is 32.768KHz.
- APPLICATION:
- Timer
- digital clock
- time based project
Arduino UNO is a microcontroller board based on the ATmega328P. It has 14 digital input/output pins (of which 6 can be used as PWM outputs), 6 analog inputs, a 16 MHz ceramic resonator, a USB connection, a power jack, an ICSP header and a reset button. It contains everything needed to support the microcontroller; simply connect it to a computer with a USB cable or power it with a AC-to-DC adapter or battery to get started. You can tinker with your UNO without worrying too much about doing something wrong, worst case scenario you can replace the chip for a few dollars and start over again
- RTC based device ON/OFF Timer .it will turn ON and OFF device at required time.
- it will turn OFF the device at selected time and again preset time it will turn ON device.
- RTC module has four wire interface VCC,GND,SDA and SCL. VCC and GND are connected to Arduino board 5volt and ground respectively.
- SCL and SDA pins are connected to Arduino SCL and SDA pins. Arduino communicates with RTC module .
- 12 volt relay is connected to Arduino digital pin no 11 .
OPERATION:
when power is given to the circuit through Adapter, initially the relay and device OFF . first set device turn ON and OFF time.
Arduino read current time from RTC Modules.
it continuously check if current time and set time are same. when they match it turns OFF the relay and so device by sending low logic on digital pin (11) . then light is OFF
when current time and set time are not same . when they not match it turns ON the relay and sending high logic on digital pin (11).then light ON
RTC are continuously communicate with the Arduino.
COMPONENT LIST:
SR NO: | COMPONENT | QUANTITY | PRICE |
1 | Arduino UNO | 1 | 310 |
2 | 1 Channel Relay | 1 | 45 |
3 | RTC(real time clock) | 1 | 57 |
4 | Adapter | 1 | 88 |
| | TOTAL | 500 |
PROGRAM CODE :
NOTE: click on RTC-CODE
safety precaution:
when relay is ON condition do not touch relay.