GSM WIRELESS SENSOR INTERFACE USING ARDUINOย 

 

 

๐Ÿ“กย GSMย Interfaceย with Arduino โ€“ Short Note

Overview:

A GSM module (like SIM800L, SIM900A) allows an Arduino to send and receive SMS, make or receive calls, and connect to mobile networks. It is widely used for remote monitoring, security systems, and IoT applications.

โš™๏ธ How It Works:

  • The GSM module communicates with Arduino via Serial Communication (TX/RX) using AT commands.

  • A valid SIM card is inserted into the GSM module.

  • The module connects to the cellular network and operates over 2G.

โœ…Working Principle:

  • The gas sensor contains a chemical-sensitive material that changes resistance based on gas concentration.

  • Outputs:

    • Analog Output (A0) โ€“ Gas concentration level

    • Digital Output (D0) โ€“ High/Low signal based on threshold (adjustable via potentiometer)

 

๐Ÿ”ŒConnection:

  • GSM MODULE

  • POWER Adapter.
  • Arduino Board

  • Jumper Wires

 

GSM ModuleArduino
VCC5V (or 4.2V for SIM800L)
GNDGND
TXD7 (SoftwareSerial RX)
RXD8 (SoftwareSerial TX)


๐Ÿ”Œ
Circuit Diagram:

 

 

๐Ÿ“ Sample Arduino Code:

#include <SoftwareSerial.h>

// GSM module connected to pins 2 (RX) and 3 (TX)
SoftwareSerial mySerial(2, 3);

void setup() {
mySerial.begin(9600); // GSM module baud rate
Serial.begin(9600); // Serial Monitor
Serial.println(“Welcome to GSM Interface”);

// Send initial SMS
sendSMS();
}

void loop() {
Serial.println(“Hi”);
sendSMS(); // Call function to send SMS
Serial.println(“****How Are You****”);
delay(10000); // Wait 10 seconds before sending again
}

void sendSMS() {
mySerial.println(“AT+CMGF=1”); // Set SMS text mode
delay(1000);

mySerial.println(“AT+CMGS=\”+91XXXXXXXXXX\””); // Replace with actual phone number
delay(1000);

mySerial.println(“Hello from Arduino!”); // SMS content
delay(1000);

mySerial.write(26); // Ctrl+Z to send
delay(3000); // Wait for message to send
}

โœ… Key Fixes:

  • Moved void loop() out of setup() โ€” it was wrongly nested.

  • Improved delay timings for GSM response handling.

  • Added comments for clarity.

  • Used mySerial.write(26) instead of mySerial.println((char)26) for better control-Z signaling.

Let me know if you want to:

  • Receive SMS

  • Trigger actions based on received messages

  • Control appliances via SMS

โœ… Applications:

  • Burglar alarm system

  • Fire detection alert system

  • Weather data SMS alert

  • Vehicle tracking

 

๐Ÿ“ž For More Details & Project Support:

 

Power Integrated Solutions
Networks | Electronics | Home Automation | Water Automation | IoT | PLC | Embedded | DBMS

๐Ÿ“ Location:
10A/3, Radhakrishnan Colony,
Sasthri Road, Tennur,
Tiruchirappalli, Tamil Nadu โ€“ 620017


๐Ÿ“ View on Google Maps

๐Ÿ“ง Email:

๐Ÿ“ฑ Phone / WhatsApp:
+91 76393 85448
+91 82488 85959

๐ŸŒ Letโ€™s Build the Future with Innovation in Education & Technology!