Controlling AC Appliances Through Sms-Using Arduino Remotely Control Fan and Light

54,813

44

41

Posted in TechnologyArduino

Introduction: Controlling AC Appliances Through Sms-Using Arduino Remotely Control Fan and Light

About: Hello I'm Ostin.A tyro techie living in India. I love messing around with electronics,Gadgets.

Hello friends,I'm Ostin. I'll explain,how to control a fan and light using arduino through sms.

Let us switch on/off a fan and light through sms commands,actually i have designed the project for controlling a irrigation motor in the farm land,just for making tutorial i have applied it on a fan and light in my room

you must learn AT commands from the data sheet of your gsm module.AT Command usually varies on different gsm modules but not necessary in all cases.

it is a highly dangerous project for amateur, since we are dealing with 220 V - which can kill you. DO NOT try if you are rookie in electrical.

Step 1: What Will You Need to Start the Project!

1) Arduino UNO

2) GSM module sim900A

3) Relay module

4) Bread board

5) 2 Led's and wires.

6) Working SIM for GSM module

7) Mobile for sending sms

8) Fan and Light

Step 2: Connections

Always power up the gsm module with separate power supply 12v 1 A .And insert the SIM.

GSM module

RX and TX of gsm module to TX pin0 and RX pin1 of Arduino respectively. Cross connection. rx to tx and tx to rx.Gnd of gsm module to arduino gnd.

Relay

relay1 to pin 7 and relay 2 to pin 6.

vcc of relay to 5v arduino.

gnd to gnd arduino

We are using Normally open connection in relay. so that we can trigger on and off the light . Hot line from supply is connected to COM
Supply line to the Ac light/fan is connected to NO. Gnd or - or other terminal in light/fan is connected directly.

Led's

Led 1 to pin 8 (fan status indicator)

Led 2 to pin 9 (light status indicator)

Step 3: Wiring

Unscrew the switch board and find the supply line for fan/light. Be careful while doing this step,always wear a slipper to avoid grounding yourself.

Connect those supply line to relay NO connection and hot line to COM of relay 1 and relay 2 . Fan to relay 1 and Light to relay 2.

Step 4: Sending Sms

#a1b1

a1 turns on the fan.(relay 1)

b1 turns on the light.(relay 2)

#a0b0

a0 turns off the fan.

b0 turns off the light.

Step 5: Status

Green led indicates fan is ON

Orange led indicates light is ON

Both leds goes low when #a0b0 is sent.

Step 6: Code

Library is not needed, if you are using sim900 module with AT commands.

Step 7: Watch the Working

Share

Recommendations

  • Microcontroller Contest

    Microcontroller Contest
  • Make it Move Contest

    Make it Move Contest
  • Woodworking Contest

    Woodworking Contest
user

We have a be nice policy.
Please be positive and constructive.

Tips

Questions

41 Comments

Hej! The code is working flawless. But I can't figure out how to make the code running without PC. Everything is working OK if the Arduino is connected to a PC. If I connect it to an external 5V battery, my SMS will cause nothing to happen. Some additional info will be great!

how can we use sim800 instead of sim900..Coz im have two sim800 module.can you help me??

Can u send me the sketch for this project

Yes it is possible! (I don't know) but it ll not have all the features of sim900 gsm module.

Thanks for this wonderful project.. I want to control 8 relays..

can you help me?

Hi, I tried the sketch with sim900 to control relays, but there is something wrong and not working. All working with serial monitor and when I send sms the led indicator on sim900 blink ones that probably mean it is coming but does not change pins state. If I got any hint for it, I would be grateful, thanks Karol.

can i use this circuit??.. in this circuit ULN is used is this necessary??

GSM-Based-Home-Automation-System-circuit-diagram.gif

hi, i recently bought a 8 channel relay board for arduino

i has 9 pinouts..namely,,

in1,in2.......in8, and a ''com'' pin. for arduino connection.

kindly guide me how to connect it to arduino.

hi, i recently bought a 8 channel relay board for arduino

i has 9 pinouts..namely,,

in1,in2.......in8, and a ''com'' pin. for arduino connection.

kindly guide me how to connect it to arduino.

which software is used to write the codes

Today saw on zee news a man from varanasi make a device who cut off power through whatsapp sms...is it same thing?..ostine jos

2 replies

it isnt the same. to cutoff using whatsapp message packet data will be required. also tampering with whatsapp code will be required. I wonder if he have taken permissions from whatsapp to do the same.

it isnt the same. to cutoff using whatsapp message packet data will be required. also tampering with whatsapp code will be required. I wonder if he have taken permissions from whatsapp to do the same.

I'm working on a small pernal project : i want to Interrupt or restore the electricity by sending an sms to a Arduino controlling a circuit breaker.

I found on internet some breakers using SMS but too expensive : 120 USD.

I want to build a small one using Arduino + GSM MODULE on low cost.

My objectives is to control electricity with budget low then 50 USD

I'm waiting your answer, we can discuss :

1. How to do it

2. How much it will cost

3. How long it can take

4. How you can deliver the final product

Can we be in contact ? monsar04@yahoo.fr is my contact.

Thanks

1 reply

What kind of Circut breaker you want to controll. If you tell me i can help you may be deliver final product if you live in india.By the way my email : jameelsheik@gmail.com

man thank you so much for the code base, it was the only stuff i could get to work with a SIM900 stacked on a Mega r3 and running hardware serial instead of software serial. You totally made my day, thanks

HI!
Can i control operation of many
( thousands) of electrical devices from a single central location.
Thanks
Arun jain
New delhi, India
emaik: bestbrand@gmail.com

Hai ostin,, i'm rizal from papua-indonesia... i really like all ur project with arduino.... hhmm... by the way,, i want to make a project with arduino...
Can you teach me about arduino , gsm shield, and relay 2 module... ?
And can you give me ur email please ??
Thanks a lot master..