This project utilizes the TTgo T-Call ESP32 module to perform various tasks such as making calls, sending and receiving SMS messages, checking battery status, and more. The project is implemented using Arduino and the TinyGSM library, allowing communication with the SIM800 modem on the TTgo T-Call module.
The TTgo T-Call ESP32 module is a powerful IoT development board that integrates the ESP32 microcontroller and the SIM800 modem, allowing cellular communication. This project provides a basic implementation of interacting with the SIM800 modem using AT commands and performing essential functionalities like making calls, sending SMS, checking battery status, and managing received messages.
To run this project, you will need the following hardware components:
The project relies on the following libraries, which need to be installed in your Arduino IDE:
To get started with the project, follow these steps:
TTgo_T-Call_ESP32_Module_Project.ino
file in the Arduino IDE.MOBILE_No
constant to your desired mobile number.Before uploading the sketch to your TTgo T-Call module, you may need to modify certain configurations:
simPIN
constant with your SIM card's PIN code. If there is no PIN, leave it as an empty string.Once the sketch is uploaded to your TTgo T-Call module, you can use the Serial Monitor to interact with the module. The following commands are available:
call
: Initiate a call to the mobile number specified in the MOBILE_No
constant.sms: <message>
: Send an SMS with the specified <message>
to the mobile number in the MOBILE_No
constant.module
: Check for unread messages and display the last received message and its index.battery
: Check the battery voltage of the TTgo T-Call module.The project uses AT commands to communicate with the SIM800 modem. Here are some useful AT commands that you can use:
// List all SMS messages
AT+CMGL="ALL"
// Read SMS message at index 1
AT+CMGR=1
// Delete SMS message at index 1
AT+CMGD=1
// Enable missed call notification
AT+CLIP=1
// Make a call to +923354888420
ATD+923354888420;
// Hang up the current call
AT+CHUP
// Check if registered to the network
AT+CREG?
// Check signal quality
AT+CSQ
// Check battery voltage
AT+CBC
// Enable verbose error messages
AT+CMEE=2
// Disable verbose error messages
AT+CMEE=0
// Check if verbose error messages are enabled
AT+CMEE?