LinkSprite ATWIN Quad-band GPRS/GSM Shield for Arduino

LinkSprite ATWIN Quad-band GPRS/GSM Shield for Arduino

Keywords:LinkSprite ATWIN Quad-band GPRS/GSM Shield for Arduino

Part No.:PES011

China Original Supplier | DC Motor Controller | Stepper Motor Controller | AC Motor Controller | Brushless Motor Controller

This LinkSprite GSM/GPRS shield has PCB etched antenna, so no need for external antenna.

Download:

 

 

Tutorial:

 

The shield must be powered by a wall adapter with 12V, 1A, like this one: http://www.cutedigi.com/product_info.ph ... ts_id=4184

First Tutorial:

1. RX jump to MRX, TX jump to MTX, and remove the atmega328P from arduino. 

By doing this, we can directly monitor serial port output using the USB port.

The default baud rate is 115200.

2. Install X-CTU serial terminal console:
http://www.cutedigi.com/pub/software/setup_xctu_5100.exe


Second Tutorial:

Now we are going to use atmega328P's UART to talk to USB, and soft serial of atmega328P to talk to ATWIN.

Before we do that, we have to change ATWIN's data rate to 9600 as soft serial can't go to 119200.
In first tutorial setup, do: AT+IPR=9600 to set the baud rate to 9600.

Now set the jumper RX to D3, and TX to D2. SO that atmega328P's UART to talk to USB and soft serial of atmega328P to talk to ATWIN:

 

CODE: SELECT ALL
/*
*/
#include   //Include the NewSoftSerial library to send serial commands to the cellular module.
#include          //Used for string manipulations
char incoming_char=0;      //Will hold the incoming character from the Serial Port.
NewSoftSerial cell(2,3);  //Create a 'fake' serial port. Pin 2 is the Rx pin, pin 3 is the Tx pin.
void setup()
{
  //Initialize serial ports for communication.
Serial.begin(9600);
cell.begin(9600);
Serial.println("Starting ATWIN Communication...");
}
void loop()
{
//If a character comes in from the cellular module...
if(cell.available() >0)
{
incoming_char=cell.read();    //Get the character from the cellular serial port.
Serial.print(incoming_char);  //Print the incoming character to the terminal.
}
//If a character is coming from the terminal to the Arduino...
if(Serial.available() >0)
{
incoming_char=Serial.read();  //Get the character coming from the terminal
cell.print(incoming_char);    //Send the character to the cellular module.
}
}

 

 

 

Click to view the video instruction.