Interfacing GSM module withPIC Microcontroller In connection with today’s advance technology and field of embedded electronics project, interfacing GSM module with pic microcontroller is very important for remote and wireless communication. GSM stands for Global system of mobile communication is widely used chip and reliable mobile network. If we done interfacing GSM module with pic microcontroller then we can use this huge GSM network as input out output for our project. In my project I use GSM module for sending SMS to a specified GSM mobile number. And here you can learn how we did interfacing GSM module with pic microcontroller. Here we did interfacing of GSM module with PIC16F877 microcontroller. So to complete our project we are used 1) PIC16F877 Microcotroller 2) SIM300 GSM module ( I used NOKIA 5130c Mobile phone as a GSM module) 3) Serial cable (For interfacing between Microcontroller and GSM module) Project Objective: To complete the project we should follow some steps 1) Test the simple AT Command. 2) Connect a call to a GSM mobile number (Dial a number). 3) Send a text message to a mobile number Now question is how we test AT command? You can easily test it on windows Hyperterminal software. See bellow picture how it look like. AT+CMGS Send Message : Sends a message from a TE to the network (SMS-SUBMIT). The message reference value <mr> is returned to the TE on successful message delivery. The data card is then able to convert character strings correctly between TE and ME character sets. <ctrl-Z> must be used to indicate the ending of the message body. Sending can be cancelled with the <ESC> character. AT+CSCS Select TE character set : This command informs the data card of which character set is used by the TE.AT Command: AT+CMGF Message Format : This command is used to select SMS protocol data unit (PDU) mode or SMS Text mode. Circuit Diagram: Bellow you will see the Circuit Diagram of interfacing GSM module with pic microcontroller . sbit LCD_D5 at RD5_bit. sbit LCD_EN at RD3_bit. I write the C code on Mikcro c Pro for Pic bellow you will see the C-Code Embedded C Code // Name : Interfacing GSM module with PIC Microcontroller // Purpose : To send SMS from PIC Microcontroller. sbit LCD_D7 at RD7_bit. sbit LCD_EN_Direction at TRISD3_bit. // Author : Subham Dutta // Date : 03-01-14 // Website : www.Now to run this project you need the Embedded C Code. sbit LCD_D4_Direction at TRISD4_bit.in sbit LCD_RS at RD2_bit. sbit LCD_D6 at RD6_bit.nbcafe. sbit LCD_RS_Direction at TRISD2_bit. . sbit LCD_D4 at RD4_bit. ”SUCCESSFULLY”).sbit LCD_D5_Direction at TRISD5_bit. Lcd_Cmd(_LCD_CLEAR). void main() { int a[10]. Delay_ms(2000).”Send SMS to”). //” double qoute Delay_ms(2000).”WWW. sbit LCD_D6_Direction at TRISD6_bit. lcd_out(1. lcd_init(). //My Text Test UART1_Write(0x22). UART1_Write(26). // Your Telephone Number cd_chr_cp(uart_rd).1. UART1_Write_Text(“WWW. lcd_out(2. //Ctr +Z Delay_ms(2000). UART1_Write(0x22). lcd_out(2.”SEND”). lcd_out(2. UART1_Write(0x0D).1. Lcd_Cmd(_LCD_CLEAR). // mean Enter Lcd_Cmd(_LCD_CLEAR).IN”).1.1. Delay_ms(1000).NBCAFE.”MASSAGE:”). UART1_Write(0x22). lcd_out(1. // mean Enter Delay_ms(2000).”9800220107″). //” double qoute UART1_Write(0x0D).NBCAFE. //” double qoute Delay_ms(2000). // Initialize UART module at 4800 bps UART1_Write_Text(“AT+CMGS=”).1.UART1_Init(9600). } .IN”). lcd_out(1. UART1_Write(0x22). UART1_Write_Text(“9800220107″).1. sbit LCD_D7_Direction at TRISD7_bit.
Report "Interfacing GSM module with PIC Microcontroller.pdf"