This is A6 GSM/GPRS module. In this tutorial shall we learn how to connect the module with arduino uno and also work with “AT” Commands. This A6 module has the following features.
You can buy this A6 GSM module as
a full set. Therefore it is easy to make projects and connect other devices
with the module. The device can be powered using USB micro cable or directly to
the pins. The module has audio amplifier to enhance the sound level.
Features:
- Working frequency: quad-band network, 850 / 900 / 1800 / 1900MHz
- Working voltage: 4.8-9VDC(On-board voltage regulator circuit supply power for A6 module)
- Working Current: maximum of 2A
- Sleep Current: 5mA
- Onboard Micro SIM card holder, you can install Micro SIM card
- Onboard Micro USB interface for external power supply
- Communication Interface: TTL serial port / RS232 serial port
- Baud rate: 115200bps and it can also be set by AT command.
- Interface logic voltage: 3.3V
- Make and answer phone calls using a headset and electret microphone.
- Send and receive SMS messages.
- Send and receive GPRS data (TCP/IP, HTTP, etc.) .
- Be used to test the Ai-Thinker GPRS A6 module
- Pin pitch: 2.54mm
- Onboard antenna interface: SMA and IPX
If you connect this with arduino uno for AT commands, you need only 4 wires. I decided to use four difference colored wires for easy understandings.
1st insert a micro - sim card to A6 module
You have to connect A6 module with Arduino uno as per the following wiring.
Wire | A6 Module | Arduino Uno |
RED | VCC | +5V |
BLACK | GND | GND |
ORANGE | U_RXD | PIN 2 |
YELLOW | U_TXD | PIN 3 |
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)
> Type your massege and press CTRL+Z
There are thousands of AT commands, you can find those from the following link.
If you have any doubt, please put it in the comments below.
Stay with SetNfix.
hello, maybe do you can help me for give source code to connected the a6 gsm gprs module with arduino ?
ReplyDeleteHi
ReplyDeleteIs it possible to detect DTMF with A6 ..
just curious
Thanks
je suis de Tunisie , je suivi toutes les détails de cette page pour tester ma carte gsm/gprs a6 connotée a arduino . mais sans résultats
ReplyDeletey a t il peu être un problème des réseaux des communications chez nous a Tunis ou ça peut fonctionner avec n'importe réseaux
Vous devez d'abord vérifier le module.
Delete1.Insérez ceci dans le module
2 Donner 5v au module
3. attendre quelques secondes
4. prenez un appel téléphonique au module.
Si vous entendez la sonnerie, le module fonctionne bien.
Faites ensuite le câblage comme indiqué dans la vidéo. alors vous pouvez vérifier les commandes "AT". Il n'y a aucun problème si vous utilisez une carte SIM GSM / GPRS.
Is it possible to turn the module on/off programatically or put it on sleep?
ReplyDeleteThere is a PWR pin on the module, but I can not get use of it
Even though the GSM chip number is same, there are some+/- additional features with the product based on different manufactures. Ii is better to check the user manual of the module.
DeleteCan you provide link to the external libraries used ...
ReplyDeleteThank you