This Arduino project configures a GSM module to perform HTTP GET requests to a server.
M'Crai Laydam
08/04/2024
- ESP32 TTGO T-Call
- GSM Module SIM800
- Additional sensors and modules (if needed)
This code configures a GSM module to connect to a GPRS network and send an HTTP GET request to a specified server. The server's response information is displayed on the serial monitor.
Here are the essential connections for the project:
-
GSM Module:
MODEM_RST: GPIO 5MODEM_PWKEY: GPIO 4MODEM_POWER_ON: GPIO 23MODEM_TX: GPIO 27MODEM_RX: GPIO 26
-
I2C Pins (to keep the SIM800 module running):
I2C_SDA: GPIO 21I2C_SCL: GPIO 22
-
Outputs:
OUTPUT_1: GPIO 13OUTPUT_2: GPIO 15
-
Hardware Setup:
- Connect the GSM module to the ESP32 TTGO T-Call following the connections described above.
-
Software Setup:
- Download and install the Arduino IDE if not already installed.
- Add the
TinyGsmClientlibrary to your Arduino IDE. This can be done via the library manager in the IDE. - Open the
.inofile of this project in the Arduino IDE.
-
APN Settings:
- Make sure to update the APN settings in the code to match your service provider.
const char apn[] = "internet"; // APN (ORANGE: orangenet, TELMA: internet, AIRTEL: internet)