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

56,541

44

42

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

  • Toys Contest

    Toys Contest
  • Make it Glow Contest 2018

    Make it Glow Contest 2018
  • First Time Author

    First Time Author

42 Discussions

0
None
ppreddyiMusab

Reply 2 months ago

Would you found the the mistake?Because I have the same problem.

1
None
DanielP638

11 months ago

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!

0
None
linusnelson007

1 year ago

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

0
None
Jayanth_flx

1 year ago

Can u send me the sketch for this project

0
None
ostin josFatehullah

Reply 3 years ago on Introduction

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

0
None
ajay_singh1974ostin jos

Reply 2 years ago

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

can you help me?

0
None
karolo5

2 years ago

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.

0
None
ManojK113

2 years ago

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

GSM-Based-Home-Automation-System-circuit-diagram.gif
0
None
navindrapradeesh

2 years ago

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.

0
None
navindrapradeesh

2 years ago

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.

0
None
ManojK113

2 years ago

which software is used to write the codes

0
None
AjayA35

2 years ago

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
0
None
pratik019AjayA35

Reply 2 years ago

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.

0
None
pratik019AjayA35

Reply 2 years ago

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.

0
None
monsar04

2 years ago

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
0
None
Jameeluddinmonsar04

Reply 2 years ago

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

0
None
bernardbern1793

2 years ago

my relay cant function whn i sen msg

0
None
GalenW1

2 years ago

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