SENDING SMS WITH ARDUINO M66

PROJECT DETAIL

Hello, In our study, we will send sms to another phone via our SIM card with the Quectel m66 that we have connected to the Arduino Uno card.

 

Materials We Use

1-Arduino Uno board (whichever you have)
2-Quectel M66 Gsm / Gprs module
3-SIM card

 

For detailed information about the Quectel M66, you can go to the previous location here

 

Horse commands we will use

 

AT + CMGF: This command sets the GSM module in SMS Text Mode or SMS PDU Mode.

In Text Mode, SMS messages are displayed as readable text. In PDU Mode, all SMS messages are displayed in binary strings encoded with hexadecimal characters.

Although the Text Mode is easier to use, the PDU Mode is more consistent on different GSM Modems.

AT + CMGS: The phone number to send the message to is the command written.

 

Circuit diagram

 

 

Arduino Code:

 

void setup() {
  // make sure your module corresponds to the baud rate
  Serial.begin(9600);
  // We wait 2 seconds for the GSM module to connect to the network
  delay(2000);
  sendSMS();
}

void loop() {

}

void sendSMS() {
  Serial.println("AT");
  Serial.println("AT");
  Serial.println("AT+CMGF=1"); // Sets the GSM Module to Text Mode
  delay(200);
  Serial.println("AT+CMGS=\"+90xxxxxxxxxx\"\r"); //Enter your mobile phone number to send a message
  delay(200);
  Serial.println("Muharremarslan.com");// SMS text you want to send
  delay(300);
  Serial.println((char)26);// CTRL + Z'nin ASCII Code
  delay(1000);
}

 

After sending the code to the arduino board, you will receive sms to the phone number you wrote, if sms has not arrived, it may be one of the reasons below.

 

  • Quectel M66 may not be receiving enough voltage and current.
  • You may have incorrectly connected the wiring diagram.
  • You may have typed the phone number incorrectly.
  • Make sure the baud rate between M66 and Arduino is the same.

 

If you still haven't received any sms after checking these reasons,

Don't hesitate to contact me

WhatsApp