shakir635
Newbie level 1
Hi everybody.
I am working on my engineering FYP and got stuck at this point. I am going to connect SIMCOM SIM900A to arduino Mega 2560. When i run the code the serial moniter shows
No response
No response
No response.
I am adding the photos of the connections.
Also I am following this video for help.
https://www.youtube.com/watch?v=wex9UCnPyYw
Note: The code I am using is as follows.
I am working on my engineering FYP and got stuck at this point. I am going to connect SIMCOM SIM900A to arduino Mega 2560. When i run the code the serial moniter shows
No response
No response
No response.
I am adding the photos of the connections.
Also I am following this video for help.
https://www.youtube.com/watch?v=wex9UCnPyYw
Note: The code I am using is as follows.
Code C - [expand] 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 #include "SIM900.h" #include <SoftwareSerial.h> #include "sms.h" SMSGSM sms; int numdata; boolean started=false; char smsbuffer[160]; char n[20]; char sms_position; char phone_number[20]; char sms_text[100]; int i; void setup() { Serial.begin(9600); if (gsm.begin(9600)) { Serial.println("\nstatus=READY"); started=true; } else Serial.println("\nstatus=IDLE"); if(started) { if (sms.SendSMS("+300000000000", "Arduino SMS")) { Serial.println("\nSMS sent OK."); } else { Serial.println("\nError sending SMS."); } } }; void loop() { if(started) { sms_position=sms.IsSMSPresent(SMS_UNREAD); if (sms_position) { Serial.print("SMS postion:"); Serial.println(sms_position,DEC); sms.GetSMS(sms_position, phone_number, sms_text, 100); Serial.println(phone_number); Serial.println(sms_text); } delay(2000); } };
Last edited by a moderator: