LinkSprite ATWIN Quad-band GPRS/GSM Shield for Arduino
  • LinkSprite ATWIN Quad-band GPRS/GSM Shield for Arduino

  • SKU:14326
    (0 reviews)   Write a review(Get Thanksbuyer Points!)
  • Availability: In Stock     Reward Points: 4
  • Price:$35.34
  • Price in reward points: 353
  • Buy more, save more
  • Quantity 3+ units 10+ units 30+ units 50+ units More
    Price /Unit $34.63 $33.93 $32.87 $31.45 Contact US

LinkSprite ATWIN Quad-band GPRS/GSM Shield for Arduino

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

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.

Related Products
What other people are saying

Write a review

Your Name:
Your Review:
Note: HTML is not translated!
Rating:
Bad    
Enter the code in the box below:

Copyright © 2012-2015 ThanksBuyer.com . All rights reserved.