SetNFix
Published © LGPL

A6 GSM GPRS Module AT Commands

How to connect A6 GSM GPRS module with Arduino and also work with “AT” commands.

BeginnerFull instructions provided20,573
A6 GSM GPRS Module AT Commands

Things used in this project

Hardware components

Arduino UNO
Arduino UNO
×1
A6 GPRS Module
×1
Jumper wires (generic)
Jumper wires (generic)
×1

Hand tools and fabrication machines

Mastech MS8217 Autorange Digital Multimeter
Digilent Mastech MS8217 Autorange Digital Multimeter

Story

Read more

Schematics

Wiring

Code

Code

Arduino
Once the wiring is completed, you can start programming.


How to work with AT commands.?


#include <SoftwareSerial.h> 

SoftwareSerial A6MODULE(2,3);

void setup() {
  // put your setup code here, to run once:
 Serial.begin(9600);
delay(1000);
  A6MODULE.begin(9600);
delay(1000);
}

void loop() {
 
 while(A6MODULE.available()){
  Serial.write(A6MODULE.read());
 }

  
 while(Serial.available()){
  A6MODULE.write(Serial.read());
 }

}

After Uploading codes, run the serial monitor.

Now type AT and press enter. If all the things are in order, Serial monitor will say OK

HOW TO CALL?
ATD command is used for dial a phone call.

Eg: Type ATD+123456789 then enter (your phone number)

 HOW TO SEND SMS?
Type AT+CMGF = 1  then enter  Answer should be OK

Then Type AT+CMGS = +123456786 then enter (your phone number)

Credits

SetNFix

SetNFix

12 projects • 16 followers
I am an accountant in profession but, I would more prefer to work with electronics based innovations.

Comments

Add projectSign up / Login