Microcontroller › PIC › Interfacing PIC 16f877a with SIM900D
- This topic has 23 replies, 5 voices, and was last updated 8 years ago by arjun.
-
AuthorPosts
-
May 6, 2012 at 9:47 am #1787Humad AhmedParticipant
I am currently doing a project on PIC 16f877a with SIM900D GSM MODULE. The purpose of this GSM MODULE is to send an SMS to a number and then wait for response. Based on the response, it would call functions from the PIC 16f877a. I need immediate help in writing the code in C to generate a menu and send it to a mobile number.I am currently using MPLAB IDE 8.80…
May 10, 2012 at 5:35 am #7698AmrithParticipantHi Ahmed,
Good Project, if you could do coding on your own you can learn much more, suggest you to start from your side i will support you to complete your project.
Learn below topics to start coding:
Basic AT commands for SMS.
Serial Communication(UART) through microcontroller.
All the Best !!!
May 10, 2012 at 5:35 am #7717AmrithParticipantHi Ahmed,
Good Project, if you could do coding on your own you can learn much more, suggest you to start from your side i will support you to complete your project.
Learn below topics to start coding:
Basic AT commands for SMS.
Serial Communication(UART) through microcontroller.
All the Best !!!
May 10, 2012 at 1:18 pm #7706Humad AhmedParticipantWell, This is the code i have come up with, but the problem is that the AT Commands keep on looping when i run simulation in Proteus…#include<pic.h>char gsmat1[3]=”ATr”;char gsmat2[10]=”AT+CMGF=1r”;char gsmat3[22]=”AT+CMGS=”03219396419″r”;char gsmat4=26;void SerialInit(){TRISC6=0;TRISC7=1;TX9=0;SPBRG=64;BRGH=1;SYNC=0;SPEN=1;TXEN=1;RX9=0;CREN=1;}void delay(unsigned long y){int i=0;for(i;i<y;i++);}void SerialTX(unsigned char c){while(TXIF==0);TXREG=c;}void send(unsigned char *s){int i=0;while(s!=’