Usage Example for Arduino-Making A Call-V2.0

Last revision 2025/12/29

This article demonstrates how to use an Arduino paired with a SIM800C GSM shield to make phone calls, detailing hardware and software preparation, code implementation, and essential tips for ensuring successful communication.

Hardware Preparation

Software Preparation

Code

/***************************************************
 * SIM800C GPRS/GSM  Shield V1.0
 *
 ***************************************************
 * This example show you how to use SIM800C GPRS/GSM  Shield V1.0 to make a call.
 *
 * @author Dongzi
 * @version  V1.0
 * @date  2016-9-1
 * All above must be included in any redistribution
 *This code is tested on SIM800C GPRS/GSM Shield V1.0.
 ****************************************************/
#define power_key 12       //power key is connected to digital pin 12
void inint();
void power_on();
void setup() {
  inint();
}
void loop() {
  Serial.println("ATD123456789;"); //If the phone number of the other party is 123456789, please never miss the last semicolon “”;
  while(1);
}
void inint()
{
  pinMode(power_key, OUTPUT);
  Serial.begin(115200);
  power_on();
  delay(500);
}
void power_on()
{
  digitalWrite(power_key,HIGH);
  delay(1500);
  digitalWrite(power_key, LOW);
  Serial.println("AT");
  delay(300);
  Serial.println("AT");
  delay(8000);
}
  • Note: Please notice the direction of the antenna during voice communication, or the voice communication quality will be affected

Result

  1. This program is combined with the above software startup program, and the module is controlled by sending AT instruction with arduino serial port to realize the function of making a call; “123456789” in the code. Here, you may modify any phone number that you want to dial (only if it is valid).
  2. It is necessary to pull up the “jumper” on the module during the burning program, because the burning code will occupy the serial port.
  3. After the program is burnt successfully, press “reset” for several seconds, and then there will be mobile customer service voice communication from the headset.....

Was this article helpful?

ON THIS PAGE

TOP