• No results found

GSM Based Automatic Irrigation System Using 8051 Microcontroller.docx

N/A
N/A
Protected

Academic year: 2021

Share "GSM Based Automatic Irrigation System Using 8051 Microcontroller.docx"

Copied!
6
0
0

Loading.... (view fulltext now)

Full text

(1)

GSM Based Automatic Irrigation System Using 8051

Microcontroller.

Hi Friends, I’m back with a new interesting and useful electronic project with 8051 microcontroller by which you not only you but also the people who are not aware of technology will get the benefits of this system. I am talking about “GSM Based Automatic Irrigation System Using 8051 Microcontroller” that is based on the microcontroller unit. This electronic project provides a facility of controlling the electrical equipments with the help of GSM modem. So I think you have understood that I talked about GSM modem, then the project is capable to control the electrical equipment from any distance in the world. Actually this project is for our farmers. They work hard and hard not only everyday but also every night in the field. Because in the day they do their field work and in the night our farmers have to irrigate the field land at some intervals.So to wake up in the night from a sleep and then go to field and irrigate the land is to typical for a farmer. There are many disadvantage of this irrigation system that if a farmer started the irrigation system in the night and he forgot to switch off the irrigation system again. In this condition the a lot of water goes to wastage and the crops may get harm or sometimes he forget to switch on the irrigation system then again the crops get dried due to lack of water.This depends on the type of crops. Lighter weight fruits always follow slight water deficiency.

So to rectify this problem I have brought this is electronic project (GSM Based Automatic Irrigation System Using 8051 Microcontroller). The system works on sms feature of the mobile phone. No hard work need to be done by the farmer.He has to send a sms to the irrigation system to switched on as well as off the irrigation system. The irrigation system switching status will be received to the farmer in his mobile as a sms.The return sms will be automatically sent by the irrigation system.This project works on two mode. It depends on the farmer that what he choose to control the irrigation system.

Mode1: In Mode 1, farmer can send the fix time interval in the sms to switch on or off the irrigation system

and

Mode2: In Mode 2, farmer can directly send the command to switch on or off the irrigation system

whenever he needs.

There is a water level indicatior in the system that gives a signal to the microcontroller that the water is supplied to irrigate the land or not.On the basis of this water status signal the microcontroller devices automatically switches on the irrigation system. The project runs with the help of battery power, So this continuously monitor the power failure. If a power failure occures then after getting power again, the irrigation system switches on again. In the block diagram you are seeing a DC motor that is our irrigation system. A GSM modem is used at the field end microcontroller system to send or receive the messages from the farmer’s mobile phone. Mobile phone is a self gsm modem so there is not need to any additional gsm modem to send or receive the messages from home.The water level indicator circuit send the status of water that the required water is supplied to land or not. A real time clock is also used in the system, by the help of which, the microcontroller knows that when it has to switch on or off the irrigation system using regular interval sent by the farmer in the sms. A blog diagram of is shown below:

(2)

A Block Diagram of GSM Based Automatic Irrigation

System Using 8051 Microcontroller.

GSM Based Automatic Irrigation System Using 8051 Microcontroller

A short description of the block diagram :

The GSM modem is serially connected to the Microcontroller unit. 8051 Microcontroller is the central controller unit of the system. Real Time Clock (RTC) is seprately connected to the micrcontroller to tell it only the time interval. A water level indicator is also an important part of the system that is responsible to switch on or off the irrigation system. A motor driver is an electronic circuit that receives signal from the microcontroller to drive the DC Motor. DC Motor uses its seprate DC Power supply.This is switched on of

(3)

GSM modem interfacing with microcontroller 8051

for SMS control of industrial equipments

GSM modem interfacing with microcontroller 8051 for SMS control of industrial equipments:-

This is a beginner tutorial in which a GSM modem is being interfaced with the microcontroller

AT89s51 for SMS communication. The SMS can be send and recieved for the data sharing and

situation information and control. there are many application of the project based on

microcontroller 8051 and GSM interfacing. We can use it as a remote control of industrial

machines or we can sue it for home automation or we can use it for the security of home or

offices.gsm control 8051

The sending SMS through GSM modem when interfaced with microcontroller or PC is much

simpler as compared with sending SMS through Modem in PDU Mode.Text message may be

sent through the modem by interfacing only three signals of the serial interface of modem with

microcontroller i.e.,TxD,RxD and GND.In this scheme RTS and CTS signals of serial port

interface of GSM Modem are connected with each other.The transmit signal of serial port of

microcontroller is connected with transmit signal (TxD) of the serial interface of GSM Modem

while receive signal of microcontroller serial port is connected with receive signal (RxD) of serial

interface of GSM Modem.The COMPIM Serial Port Model shown in the schematic diagram

developed in Proteus VSM is equivalent to the serial interafce of GSM Modem.Sending SMS

Messages from a Computer / PC Using AT Commands (AT+CMGS, AT+CMSS)

8051 projects based on message recived on mobile

The following are the AT Commands and sequence of events performed for sending text

message to a mobile phone through GSM Modem interfaced with microcontroller :

1. First select the text mode for SMS by sending the following AT Command to GSM Modem :

AT+CMGF = 1 . This command configures the GSM modem in text mode.

2. Send the following AT Command for sending SMS message in text mode along with mobile

number to the GSM Modem : AT+CMGS =+923005281046 . This command sends the mobile

(4)

number of the recipient mobile to the GSM modem.

3. Send the text message string ("hello!") to the GSM Modem This is a test message from

UART"

4. Send ASCII code for CTRL+Z i.e., 0x1A to GSM Modem to transmit the message to mobile

phone.After message string has been sent to the modem, send CTRL+Z to the

micro-controller,which is equivalent to 0x1A (ASCII value) Every AT command is followed by i.e.

carriage return and line feed

you are giving line feed first and carriage return after that.

"\r" stands for carriage return

Interfacing 8051 with gsm modem equipped with RS232 serial interface is the same as

interfacing AVR with GSM modem is.

The SMS message in text mode can contain only 140 characters at the most.It depends upon

the amount of information collected from GPS Engine that you need at the base station for

tracking vehicle or person

The most important string of GPS is "$GPRMC..." which contains the minimum information

required in tracking a target additionally you may need the information regarding the number of

satellites that are visible to the GPS receiver.So it depends upon how much information you

need to pack in 140 characters of SMS in text mode.

(5)

code for the interfacing the GSM modem with microcontroller 8051 for just testing of connection

and serial communication is under:-

#include<at89x51.h> // include at89x51 . h #include<stdio.h>// include stdio . h #include<stdlib.h>// include stdlib . h void initialize_GSM_modem(void);

void initialize_serialcommunication(void); unsigned char Command_CMGF[]="AT+CMGF=1\r"; // AT+CMGF for selecting Text Mode

unsigned char CtrlZ=0x1A;

// CTRL+Z for sedning SMS after the message has been entered unsigned char Command_CMGS[]="AT+CMGS =+9233385xxxxx\r"; // recepient mobile number

unsigned char Command_AT[]="AT\r"; unsigned char msg02[]="Hello!"; void delay(void){ unsigned int i; for(i=0;i<50;i++); } void delay2(void){ unsigned int i; for(i=0;i<25000;i++); }

void main (void) {

initialize_GSM_modem(); initialize_serialcommunication(); while (1) { ; } } void initialize_GSM_modem(void){ delay2(); puts(Command_AT); delay2(); puts(Command_CMGF); delay2(); puts(Command_CMGS); delay2(); puts(msg02); delay2();

(6)

} void initialize_serialcommunication(void){ TMOD = 0x20; SCON = 0x50; TH1 = 0xFD; TL1 = 0xFD; TR1 = 1; TI = 1; }

References

Related documents

PROs are typically assessed using questionnaires (patient reported outcome measures (PROMs)) and many validated questionnaires are available because PROMs have been developed

As future work, we suggest the following directions in order to equip spoken or multimodal di- alogue systems with more flexible and adaptive conversational interaction: (1) to

Fukumoto et al Virology Journal 2013, 10 84 http //www virologyj com/content/10/1/84 RESEARCH Open Access Frequent detection of Merkel cell polyomavirus DNA in sera of HIV 1

36 International Journal in Physical and Applied Sciences http://ijmr.net.in, Email: [email protected] EFFECTIVENESS OF PLANNED TEACHING PROGRAMME ON KNOWLEDGE.. REGARDING

For different transmitted power values between 0 and -25 dBm (with a down step of 5 dB), the proposed system shows the possibility of detecting the heartbeat signal with a relative

WORLD JOURNAL OF SURGICAL ONCOLOGY McKay et al World Journal of Surgical Oncology 2014, 12 370 http //www wjso com/content/12/1/370 RESEARCH Open Access Does young age influence

Hindawi Publishing Corporation EURASIP Journal on Wireless Communications and Networking Volume 2006, Article ID 65836, Pages 1?9 DOI 10 1155/WCN/2006/65836 A New MAC Protocol with

Here we explore the construction and change of group cultural identity in EVE, and the role of group leadership and group members (and some non-members) in these processes, in