Continue to Site

Welcome to EDAboard.com

Welcome to our site! EDAboard.com is an international Electronics Discussion Forum focused on EDA software, circuits, schematics, books, theory, papers, asic, pld, 8051, DSP, Network, RF, Analog Design, PCB, Service Manuals... and a whole lot more! To participate you need to register. Registration is free. Click here to register now.

[PIC] Home Automation GSM system with PIC16f877a

Status
Not open for further replies.

HammadLakhani

Junior Member level 2
Joined
Oct 7, 2013
Messages
20
Helped
0
Reputation
0
Reaction score
0
Trophy points
1
Location
Karachi, Pakistan, Pakistan
Activity points
261
Hello Everyone.
Its a very interesting project as it seems. As I am just getting started with this I needed some guidance. I have PIC16f877a micro-controller. Do I need a GSM modem or should I use a GSM mobile phone for that? How and what kind of Relay should I connect to switch the current ? Please assist as possible. Thank you
 

you can use SIM 900D GSM module but i suggest use Arduino and GSM shield for an easy interfacing.

it depends on the appliances you will use. relays have different types of current ratings.;-)
 
I think it depends what kind of mobile that you have .....If you have mobile where wireless network is possible then you can use that using Networking based methods.....but to do that you need to have some other machine on which can communicate it with Nokia mobile and PIC18f877a hardware....as per as I know you will able to interface mobile with PIC micro-controller hardware directly as I know there are no hardware wise communication expect bluetooth and wifi in the mobile that can give out physical signal....the data cable in the mobiles generally use to transfer data in the memory....and you need to have command control interface....

I think what you can do is use SMS service using 'at command' for SIM900 modem..... I mean send a signature SMS to the GMS modem (mobile no) from your Nokia mobile and on other side detect the signature from your micro-controller using RX uart routine .... then do respective action based on signature that you send.....in this approach you need to have signature ( array of such message contents and it's action ) need to be coded in your micro-controller....

Good Luck
 
Last edited:
AFAIK you need to know first the configuration of your cellphone's external proprietary connector (Rx,Tx) to connect it to your Uc (Tx,Rx) then for troubleshooting in Hyperterminal you need to use RS232 to TTL converter, cellphone>>pc
 
Thanks. So nice of being helpful. May be I will go for the SIM900 modem as my GSM modem. The appliance I will be using to connect with the controller can be around 230 V appliance so how can I use my Controller which gives 5 V. ? Do I need a Relay and a power Supply. ? Which type of relay would be preferred ? thank you
 

use a sonyericsson t290 phone and interface it through its serial port,it supports AT commands aswell and works fine . it wont cost u much aswell :)
 
Alright thank you. Well can anyone help me with the program code to program PIC16f877a Micro-controller with a gsm modem to turn on/off the appliances?
 
Last edited:

I think you can use Micro-controller pins connected to transistor based control of relays, where relays are connected to home appliances .... and the code is very simple you need to make the port pin high for making load on and port pin zero for load off....of course to decide which pin you need to make high and low, you need also the signature detection as I described in my previous post......

I am attaching the circuit diagram which you need to make for AC side load connection with your micro-controller board.....you may need multiple copies of this circuit to be made and connect the the respective port pins based on number of appliances you want to make ON and OFF.....

Kindly please note that I used this circuit but you can fine tune the resistance values based on your need.....The relay are generally called as SugerCube In market ......





Good Luck
 
Alright thank you. Well can anyone help me with the program code to program PIC16f877a Micro-controller with a gsm modem to turn on/off the appliances?

bro,u are familiar with C lang, or pic basic pro ?
 
yes I am familiar. Just needed little guidance on it how to program the Controller to make the appliances on/off. thank you

- - - Updated - - -

oh seems fine with that.. Thanx :)

- - - Updated - - -

milind.a.kulkarni : oh seems fine with that.. Thanx :)
 
Last edited:

Couple of other points-
1) home automation is as such continuous (24x7) system, so you need to take care of power section properly, basically thermal dissipation of voltage regulator ( I think you are using 7805 ic where you possibly need heat sink)
2) home appliances like heater or washing machine require higher current rating relay... Thus choose proper relay based on load and power rating
3) in case sim900 SMS service then you need to think of proper protocol for making off or on multiple appliance simultaneously .....

Good luck
 
milind.a.kulkarni :Thank you for the good knowledge. I am currently using PIC16f877a by "eblock matrix-multimedia". The GSM modem of eblocks have stopped coming so my supervisor told me to order another one. Is the sim900 one capable of it? Is there any programming issue or difficulty with it? Thank you

- - - Updated - - -

Usama Siddiqui : well thanks yeah I have gone the the link and its forum page which was very supportive. I am just going to start my programming now. lets hope good. thanks :)
 

if it is SMS based communication I think even SIM300 also will work.....Anyways choice is yours....you can go to SIM900 or Even SIM300..... but incase you are planning to use GPRS then better to go for SIM900....as per I know SIM300 or some of it's variants dose not support GPRS service....

Good Luck
 
Thanks for being so helpful. The modem part if I get of sim900 as : 110506034807404758.JPG then any idea how to complete the circuit ? Do i need a separate power supply + Antenna + Sim holder or anything attached ? will I need to solder and assemble all the parts... or is there any complete modem to be attached with the eblock Matrix multimedia PIC 16f877a controller?
 

I think you even look at this link-

**broken link removed**

This can be directly interfaced with micro-controller.

With regards,

Milind
 
Status
Not open for further replies.

Similar threads

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Back
Top