36
MOBILE CONTROL SYSTEM FOR FARMERS

Mobile Control System for Farmers Ppt

Embed Size (px)

Citation preview

ABSTRACTy The scope of this project is to design a system through

which, we can control multi appliances from our mobile by sending message. The LCD display is interfaced to the Microcontroller and this in turn is connected to UART and GSM modem. Upon receiving the data the microcontroller processes the message and sends it to the LCD display to show it, and switches ON or OFF the corresponding equipment.

EMBEDDED SYSTEMy An embedded system is a special-purpose computer

system usually built into a Environment connected to systems through sensors, actuators and other I/O interfaces. y Embedded system must meet timing & other constraints imposed on it by Environment.

INTRODUCTIONy This project is intended to serve a farmer gadget

which helps him to control his motor in his farm using his mobile phone by sending an sms. y This project presents the emerging applications of the GSM technology. Using the public GSM networks, a field automation system has been proposed, designed, implemented and tested.

BLOCK DIAGRAM OF THE PROJECT

COMPONENTS USEDy Microcontroller 89S52 y MAX 232 y LCD display y Relays y LED y GSM modem y MOTOR

MICROCONTROLLER 89S52Fully Static Operation: 0 Hz to 33 MHz Three-level Program Memory Lock 256K Internal RAM 32 Programmable I/O Lines, 16-bit Timer/Counters Eight Interrupt Sources Full Duplex UART Serial Channel Low-power Idle and Power-down Modes Watchdog Timer Dual Data Pointer

Micro controller AT 89S52

MAXor Exceed TIA/EIA-232-F and ITU y Meet 232y y y y y y y

Recommendation V.28 Operate With Single 5-V Power Supply Operate Up to 120 Kbit/s Two Drivers and Two Receivers( typical threshold 1.3V and typical hysteresis 0.5V) 30-V Input Levels Low Supply Current . . . 8 mA Typical Designed to be Interchangeable With Maxim MAX232 ESD Protection Exceeds JESD 22, 2000-V HumanBody Model (A114-A)

MAX 232

LCD displayy light weight and slimness, wide operating

temperatures y less power consumption and hence can be used for long durations y can be read in the darkness as it does not generate light y changing the display size is relatively simpler and hence customer friendly

LCD DISPLAY

RELAYSy A relay is an electrical switch that opens and closes

under the control of another electrical circuit. In the original form, the switch is operated by an electromagnet to open or close one or many sets of contacts. A relay is able to control an output circuit of higher power than the input circuit, it can be considered to be, in a broad sense, a form of an electrical amplifier.

RELAYS

LEDy LED's are special diodes that emit light when

connected in a circuit. They are frequently used as "pilot" lights in electronic appliances to indicate whether the circuit is closed or not. A clear (or often colored) epoxy case enclosed the heart of an LED, the semi-conductor chip.

LED

GSM modemy 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.

PROJECT EXPLANATIONy This project is intended to serve a farmer gadget which helps him to control

his motor in his farm using his mobile phone by sending an sms.

y Here a gsm modem is connected to the microcontroller which is in turn

connected to motors via relays. When the farmer sends message to the gsm modem, this message can be read from the microcontroller and it will decide whether to ON the motor or to make it OFF according to the message received. microcontroller. So, when an appropriate command is received, motor send the particular logic either 1 or 0 to the output pin where relay is connected.

y All the commands required to access gsm are programmed in the

y This relay supplies current to the motor according to the logic received from the mcu. y The status of the motor is displayed on the lcd screen which is placed at the visible place for the farmer. All the commands required to access lcd are also programmed in the microcontroller. Thus microcontroller acts as the intermediate stage between all the independent modules like gsm modem, lcd screen, motors. y Gsm modem is connected using uart port which is connected to max232 ic which is used as level translator between gsm modem and mcu. y

Thus, the whole process happening in the project is, taking message from the gsm modem, and according to the message, controlling the motor and displaying the same status on the lcd screen. This is the brief explanation of the whole task handled.

Codingy y y y y y y y y y y y y y y y y y y y

#include void serial_init(void); void uart_putChar(unsigned char d); void uart_putString(unsigned char *Uart_Data); sfr LCD=0xA0; void cmd_lcd(unsigned char ); void display_lcd(unsigned char ); void delay(unsigned int ); void lcd_init(void); void display_string(void); void shal_LcdPrint (char *string); typedef enum { GSM_START, GSM_INIT, GSM_WAIT, GSM_READ, GSM_DEL, GSM_SEND }GSM_state;

y y y y y y y y y y y y y y y y y y y y y y

sbit light = P0^1; sbit motor = P0^3; volatile char flag=0; char r_buf[20]=0; int r_pos = 0,read = 0 ,msg_no; GSM_state modem_state;

void uart_putChar(unsigned char d) { if(d