Now a days, technology is spread all around us. We use many gadgets which are a part of technology in our daily routine. This project is generally based on technology in which we control home lightening with our personal computer by sitting around the computer rather than go to a specific room and switch off the lights. We can ON or OFF our home lights by giving commands to our Arduino board which is programmed with a certain code in which all the parameters are defined( i.e which light is operated with which code etc.).

We use Arduino mega 2560 board which contain ATmega2560 microcontroller. Programming for this microcontroller is written generally in C++ language. This language is easy to understand as compared to other high level languages. We make a code in which we define our all parameters and make a suitable condition or a fix variable by giving that specific variable as INPUT to the board through computer runs the board to make a decision of selecting the state of light source (ON/OFF).

Step 1: Requirements

For this Projects we generally require the following components:

1) Arduino Mega 2560 board.

2) one 5mm Red led.

3) one 5mm Green led.

4) one 5mm Blue led.

5) Computer with Arduino IDE software. Download software Here

6) Breadboard and Jumper wires.

You should really add resistors for the LED's.<br><br>Also, your source code has errors, setting the pinmode for the same pin 3 times and omitting led1 and led2.<br><br>Lastly, this is hardly controlling any home lights, you're toggling LED's and as such I find the title misleading.
Thanks for your suggestions.<br>I make my source code correct , i was just an type error. <br>and this a module how you can operate your home lights . i represents the light of three different rooms with three seperate led's.<br>You can control your home lights with same source code with adding some relays and relay driver ic.<br>Thanks
<p>Nice. One step closer to a fully automated smart house.</p>

About This Instructable




Bio: M.Sc Physics, B.Ed, B.Sc.
More by Aman_Kumar:Controlling Home Lights With Computer by Using Arduino Mega 2560. 
Add instructable to: