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
- DFR0216 DFRduino UNO R3 x 1
- TEL0089 SIM800C GSM/GPRS Shield V2.0 x 1
- FIT0056 USB Cable A-B for Arduino Uno/Mega x 1
- 12V DC power x 1
Software Preparation
- Download Arduino IDE: Click to download Arduino IDE
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
- 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).
- It is necessary to pull up the “jumper” on the module during the burning program, because the burning code will occupy the serial port.
- 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?
