How to use SIM800L GSM Module using Arduino | Make or Answer Voice Calls
Introduction
Here we will further our exploration with the SIM800L GSM Module by testing the voice call capability.
To make a voice call:
- Send ATD+ZZxxxxxxxxxx;<CR><LF>
– this is tell the GSM module to dial the following mobile number
ZZ – the country code of the mobile number you want to call
xx – is the 10-digit mobile number
; – don’t forget semi-colon, it will error without the semi-colon
CR – Cariage Return, ASCII character 13 or r
LF – Line Feed, ASCII character 10 or n
To answer the incoming voice call:
- Send ATA<CR><LF>
– this tells the GSM module to answer the incoming voice call
CR – Cariage Return, ASCII character 13 or r
LF – Line Feed, ASCII character 10 or n
To reject the incoming call or terminate ongoing call:
- Send ATH<CR><LF>
– this tells the GSM module to hang up the call.
CR – Cariage Return, ASCII character 13 or r
LF – Line Feed, ASCII character 10 or n
Video Demonstration
Source Code
1#include "SoftwareSerial.h"
2
3SoftwareSerial mySerial(2, 3);
4
5void setup() {
6 Serial.begin(9600);
7 mySerial.begin(9600);
8}
9
10void loop(){
11 while (Serial.available())
12 {
13 mySerial.write(Serial.read());//Forward what Serial received to Software Serial Port
14 }
15 while(mySerial.available())
16 {
17 Serial.write(mySerial.read());//Forward what Software Serial received to Serial Port
18 }
19}
Call To Action
If you found this tutorial helpful, please do Like and Share this to your friends so that many could benefit from it.
Also please do not forget to Subscribe to my Youtube channel: Click this to Subscribe
Thank you and have a good day.
Posts in this series
- How to Get Started with ATTiny85 in Arduino IDE
- Tutorial: How to use MFRC522 RFID module using Arduino
- SOS Flasher Using Millis Function with Enable Switch
- Tutorial: How to use DS3231 RTC in Arduino
- Tutorial: How to use 0.96 OLED - a small and cute display
- Tutorial: Getting Started with the NRF24L01 | How to use | Arduino
- Tutorial: How to use SIM800L GSM Module for Controlling Anything | Arduino
- Tutorial: How to use Keypad | Text Entry Mode | Arduino
- Tutorial: How to use 4x4 Keypad | Arduino
- Project Idea: Arduino Voltmeter
- Project Idea: Door Lock Security | Arduino
- Multitasking with Arduino | Relay Timer Controller | using millis
- Tutorial Understanding Blink Without Delay | How to millis
- Arduino Simple LCD Menu
- Tutorial: How to Use Arduino Uno as HID | Part 2: Arduino Mouse Emulation
- Tutorial: How to Use Arduino Uno as HID | Part 1: Arduino Keyboard Emulation
- Tutorial: How to use SIM800L DTMF to Control Anything | Arduino
- Tutorial: Arduino EEPROM
- How to use SIM800L GSM Module | Arduino | Send and Receive SMS
- 16x2 LCD Menu for Arduino
- Tutorial: Arduino GPIO | How to use Arduino Pins
- MIT App Inventor for Arduino
- RC Car using L298N, HC-06, and Arduino Uno
- How to Use LCD Keypad Shield for Arduino
- How to Use Arduino Interrupts
- Project: Automatic Alcohol Dispenser
- TUTORIAL: How to use HC-SR04 Ultrasonic Sensor with Arduino
- Source Code: Astronomia Meme and Funeral Dance | melodies the Arduino way
- How to Get Started with L293D Motor Driver Shield with Arduino
- How to Get Started with L298N Motor Driver module using Arduino
- Part 2: Wav Music Player with Lyrics Using Arduino and SD Card
- Interfacing Infrared to Arduino Uno
- Part 1: Wav Music Player Using Arduino Uno and SD Card
- How to Interface Stepper Motor to Arduino Uno
- How To Play MP3 Files on Arduino from SD Card
- What is Arduino Software Serial
- How to Interface SD card to Arduino (without SD card shield)?
- Playing Melodies Using Arduino
- 8 Degrees Of Freedom (DOF) Robot Using Arduino Uno
- How to Interface PS2 Controller to Arduino Uno
- Part 3: DF Player Mini Tinkering with Arduino Nano and LCD
- How to Interface HC-06 to Arduino
- How to make a Remote Control RC car using Arduino and HC-06 bluetooth module
- Part 2: DF Player Mini Tinkering with Arduino Nano
- Part 1: DF Player Mini - a mini cheap mp3 player
No comments yet!