Example Code for Arduino-Receive Voice Call (Library)
Last revision 2026/01/24
This article offers a practical guide on integrating Arduino with the SIM808 module to receive voice calls, featuring detailed hardware setup, software installation, and example code for automatic call answering.
Hardware Preparation
- DFR0355 SIM808 with Leonardo mainboard x1
- GSM & GPS Antennas (Included) x1
- External power supply (7-23V, DC) x1
- SIM card (GSM/GPRS) x1
- FIT0265 Micro USB Cablex1
Software Preparation
- Download and install the Arduino IDE: Click to Download Arduino IDE
- Download and install the SIM808 library: SIM808 library
Preparations
- Install library to
Arduino-1.5.*\libraries(not Documents\Arduino\Library) - Upload sample sketch
File > Examples > SIM808 > ReceiveCall - Open Serial Monitor (9600 baud, Newline)
- Make a call to the SIM card on the module after you got the message Waiting for a call
- The module would answer the coming call automatically, and you will get the message
- You can send a Newline to hang up
Result

Function Explanation
- Vcs.retrieveCallingNumber (): Get the call number
- Vcs.answerCall (): Answer the call
Was this article helpful?
