Intelligent Power plug using GSM

Tags: GSM based project in pic Microcontroller,GSM application Using PIC,C Code to interface GSM using GSM modem in PIC,Home automation application using GSM with PIC,How to interface GSM Modem with PIC,
Overall rating

The GSM (Global System for Mobile communication) Mobile service provides the user to receive a call, to call for the people at remote end, send SMS to remote areas just by using GSM-SMS commands and Embedded systems [8051 family micro controller based . This device can be used to receive a call and to call as many people as possible.GSM Mobile Interface can call to remote areas and can receive a call from remote areas.GSM users can send and receive data, at rates up to 9600 bps.Mobile phones with a touch screen replacing traditional keypads have been introduced to the market. Few studies, however, have been conducted on the touch interface design for a mobile phone. This study investigated the effects of touch key sizes and locations on the one-handed thumb input that is popular in mobile phone interactions.

GSM finds its application in Mobile communication to work On display boards, Data uploading at remote areas. This can make The Mobile service more powerful and in future achievement can Be seen in various languages depending on requirement, which Helps us in communicating.

Project Description

In this project, home appliance is controlled with the help of a cell phone. The system uses SMS facility to give the commands and receive the status from the receiver. The mobile user sends a secret code with control data. In the receiver section, GSM modem receives the commands and sends the signal to the Microcontroller. The microcontroller verifies the secret code and performs the command function. The controller also triggers the relay circuit through the relay drivers. The Relay drivers in turn control the load. The status is sent back to the mobile user as well as sends to pc.




The gsm modem is connected with the 9 pin d-connector to pic microcontroller acting as the CPU to decide the operation of the device and the GSM module to read the command from the remote mobile. The GSM module is always ready to read the message from the airborne signal. If it reads any message corresponding to it, it stores the message. GSM Modem provides full functional capability to Serial devices to send SMS and Data over GSM Network. The GSM Modem supports popular "AT" command set so that users can develop applications quickly. The product has SIM Card holder to which activated SIM card is inserted for normal use. By using “AT” commands the micro controller reads the message from the GSM module.

According to the message the micro controller is programmed to switch on or switch off the relays connected with the devices. Relay is an electromechanical device, which transforms an electrical signal into mechanical movement, through which we can control the devices. It is possible to switch ON/OFF any devices in the industry, from anywhere.

About GSM:

A GSM modem is a specialized type of modem which accepts a SIM card, and operates over a subscription to a mobile operator, just like a mobile phone. From the mobile operator perspective, a GSM modem looks just like a mobile phone.

When a GSM modem is connected to a computer, this allows the computer to use the GSM modem to communicate over the mobile network. While these GSM modems are most frequently used to provide mobile internet connectivity, many of them can also be used for sending and receiving SMS and MMS messages. A GSM modem can be a dedicated modem device with a serial, USB or Bluetooth connection, or it can be a mobile phone that provides GSM modem capabilities.

For the purpose of this document, the term GSM modem is used as a generic term to refer to any modem that supports one or more of the protocols in the GSM evolutionary family, including the 2.5G technologies GPRS and EDGE, as well as the 3G technologies WCDMA, UMTS, HSDPA and HSUPA.

A GSM modem exposes an interface that allows applications such as NowSMS to send and receive messages over the modem interface. The mobile operator charges for this message sending and receiving as if it was performed directly on a mobile phone. To perform these tasks, a GSM modem must support an “extended AT command set” for sending/receiving SMS messages, as defined in the ETSI GSM 07.05 and and 3GPP TS 27.005 specifications.

GSM modems can be a quick and efficient way to get started with SMS, because a special subscription to an SMS service provider is not required. In most parts of the world, GSM modems are a cost effective solution for receiving SMS messages, because the sender is paying for the message delivery.

A GSM modem can be a dedicated modem device with a serial, USB or Bluetooth connection, such as the Falcom Samba 75. (Other manufacturers of dedicated GSM modem devices include Wavecom, Multitech and iTegno. We’ve also reviewed a number of modems on our technical support blog.) To begin, insert a GSM SIM card into the modem and connect it to an available USB port on your computer.

A GSM modem could also be a standard GSM mobile phone with the appropriate cable and software driver to connect to a serial port or USB port on your computer. Any phone that supports the “extended AT command set” for sending/receiving SMS messages, as defined in ETSI GSM 07.05 and/or 3GPP TS 27.005, can be supported by the Now SMS & MMS Gateway. Note that not all mobile phones support this modem interface.

Due to some compatibility issues that can exist with mobile phones, using a dedicated GSM modem is usually preferable to a GSM mobile phone. This is more of an issue with MMS messaging, where if you wish to be able to receive inbound MMS messages with the gateway, the modem interface on most GSM phones will only allow you to send MMS messages. This is because the mobile phone automatically processes received MMS message notifications without forwarding them via the modem interface.

It should also be noted that not all phones support the modem interface for sending and receiving SMS messages. In particular, most smart phones, including Blackberries, iPhone, and Windows Mobile devices, do not support this GSM modem interface for sending and receiving SMS messages at all at all. Additionally, Nokia phones that use the S60 (Series 60) interface, which is Symbian based, only support sending SMS messages via the modem interface, and do not support receiving SMS via the modem interface.

Hardware requirements

  • PIC 16F/18F Microcontroller (PIC 16F/18F Primer Board)
  • Power Supply (9V Adaptor, 5V Adaptor)
  • Bluetooth Modules
  • GSM module
  • 10-pin FRC Cable

Hardware Connections

  • Connect PORTB with the LED’s Jp3 Using 10-pin FRC cable
  • Connect GSM Module to Uart 9-pin D connector

Software requirements

  • Programming Language: Embedded C
  • Pickit2 Programmer Software
  • Rs232 Port Monitor

Source code






#use delay(clock=20000000)

#use rs232(baud=9600, xmit=PIN_C6, rcv=PIN_C7)


unsigned int8 ch2;










        ch2 =getch();            

              if(ch2==50)          OUTPUT_B(0xff);

         else                            OUTPUT_B(0x00);




Reference Websites

Join the World's Largest Technical Community

we respect your privacy.