Saturday, 23 February 2013

Remote Controlled House

          This project is to control the home appliances using normal TV remote. It used an arduino board, relay and a TSOP to receive signal from the remote and the control the home appliances. Connect the TSOP with arduino. Connect the 5V and Gnd of TSOP to 5V and Gnd of the arduino and connect the data pin of the TSOP to arduino digital pin 2. Connect the digital pin 10 of the arduino to the relay


Components needed

  • Arduino UNO or atmega8 Microcontroller ( Rs.1300 for Arduino or Rs.80 for atmega8 microcontroller )
  • TSOP ( Rs. 10 )
  • 5V Relays ( Rs. 30 )

Program


#include <IRremote.h>
int TSOP_PIN = 2;  // Arduino pin where the TSOP is connected
IRrecv irrecv(TSOP_PIN);
decode_results results;
int i = 0;

void setup()

{  
pinMode(10,OUTPUT); // Connect relay to pin 10 of the Arduino
pinMode(2,INPUT);  
digitalWrite(2,HIGH);  
irrecv.enableIRIn();
Serial.begin(9600);
}

void loop()
{  

if (irrecv.decode(&results)) 

{    
Serial.println(results.value); // Prints the value from remote in Serial monitor    

if(results.value==33) // Change the value according to your remote  

{
digitalWrite(10,HIGH); // Switches on the relay
}

else

{
digitalWrite(10,LOW); // Switches off the relay
}

delay(300);// delay to avoid repeated value

irrecv.resume(); // To receive the next value from IR remote
    
}

}



Troubleshooting

The program won't compile until you copy and paste the libraries in the My documents folder.

The libraries are available at



TSOP




Connect the Gnd to arduino Gnd
Connect the Vs to arduino 5V
Connect the OUT to arduino pin 2

Relay Circuit



Connect the digital pin 2 of the arduino to the base of the transistor.
Connect the Gnd of the arduino to the relay circuit Gnd.

Football Playing Robot





This robot is made by servo motors and clamps. The robot uses arduino as the brain and it has a 7.4 V battery to power up both the arduino and the servo motors. It is controlled by an RC remote and has the option to walk, run and kick which can be used to play football. 

A open source platform............ARDUINO







Microcontroller                                         ATmega328
Operating Voltage                                         5V
Input Voltage (recommended)            7-12V
Input Voltage (limits)                             6-20V
Digital I/O Pins                                         14 (of which 6 provide PWM output)
Analog Input Pins                                         6
DC Current per I/O Pin                          40 mA
DC Current for 3.3V Pin                         50 mA
Flash Memory                                           32 KB (ATmega328) of which 0.5 KB used by bootloader
SRAM                                                             2 KB (ATmega328)
EEPROM                                                     1 KB (ATmega328)
Clock Speed                                                 16 MHz


The Arduino Uno is a microcontroller board based on the ATmega328 (datasheet). 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.


Arduino is an open source hardware and software. You can experiment and build lot of projects using arduino. No knowledge of embedded programming is required, just basic C program is enough to program the arduino board. 

The arduino IDE can be downloaded from

The board can be bought in local electronics store or through online. The online stores are