Mengkoneksikan Modul GSM A6 GPRS


Toko Jual Modul GSM GPRS A6 Quad Band Harga Murah
Toko Jual Modul GSM GPRS A6 Quad Band Harga Murah

SPECIFICATION:

– dimensions of 22.8 16.8 2.5mm;– Operating temperature -30 to + 80 ;– Operating Voltage 3.3V-4.2V;– Power voltage> 3.4V;– Standby average current 3ma less;– support the GSM / GPRS four bands, including 850,900,1800,1900MHZ;– Sensitivity <-105;– support voice calls;– support SMS text messaging;– Support GPRS data traffic, the maximum data rate, download 85.6Kbps, upload 42.8Kbps;– Supports standard GSM07.07,07.05 AT commands and extended commands Ai Thinker;– supports two serial ports, a serial port to download an AT command port;– command supports the standard AT and TCP / IP command interface;– support digital audio and analog audio support for HR, FR, EFR, AMR speech coding;– Support 2G 3G 4G mobile card Unicom card– support ROHS, FCC, CE, CTA certification;– the SMT 42PIN package;Module Pin Flag:VCC_IN: Power Supply Input 5V -9VGND: power groundU_TXD: A6 module to send (TTL level)U_RXD: A6 receiving module (TTL level)RS232_TX: 232 serial portRS232_RX: 232 serial port to receiveHTXD: Serial Interface UpgradeHRXD: Serial Interface UpgradeMIC- \ MIC +: microphone inputREC + \ REC-: Speaker outputINT: Control module is used to enter a low-power mode, high backOut into the lowPWR: power button,> 1.9V more than 2s to boot(Module hardware to do the processing, power is automatically turned on, eliminating the need for wiring trouble)EN: MP1584 power chip enable pin, pulled enable power chip, low enabled, this pin can be used as module reset pin enable


Modul Gsm ini membutuhkan tegangan 5V 
Jumper Pin UTX pada Sim A6 ke pin 2 arduino
Jumper Pin URX pada Sim A6 ke pin 3 arduino
Jumper Vccin pada Modul Sim A6 ke pin 5v Arduino
Jumper Gnd pada Modul Sim A6 ke pin GND  Arduino

Berikut Ini merupakan Codingan Send SMS dan Receive SMS Dari Modul A6

#include <SoftwareSerial.h>


SoftwareSerial SIM900A(2,3);

void setup()
{
  SIM900A.begin(115200);   // Setting the baud rate of GSM Module  
  Serial.begin(115200);    // Setting the baud rate of Serial Monitor (Arduino)
  Serial.println ("SIM900A Ready");
  delay(100);
  Serial.println (" Ketik 's' untuk Mengirim SMS dan 'r' untuk Membaca SMS masuk");
}


void loop()
{
  if (Serial.available()>0)
   switch(Serial.read())
  {
    case 's':
      SendMessage();
      break;
    case 'r':
      RecieveMessage();
      break;
  }

 if (SIM900A.available()>0)
   Serial.write(SIM900A.read());
}


 void SendMessage()
{
  Serial.println ("SIM900A Mengirim SMS");
  SIM900A.println("AT+CMGF=1");    //Sets the GSM Module in Text Mode
  delay(1000);  // Delay of 1000 milli seconds or 1 second
  Serial.println ("Set SMS Number");
  SIM900A.println("AT+CMGS=\"081318301535\"\r"); // Replace with your mobile number
  delay(1000);
  Serial.println ("Set SMS Content");
  SIM900A.println("TEST A6 GSM GPRS");// The SMS text you want to send
  delay(100);
  Serial.println ("Finish");
  SIM900A.println((char)26);// ASCII code of CTRL+Z
  delay(1000);
  Serial.println (" ->SMS Selesai dikirim");
}


 void RecieveMessage()
{
  Serial.println ("SIM900A Membaca SMS");
  delay (1000);
  SIM900A.println("AT+CNMI=2,2,0,0,0"); // AT Command to receive a live SMS
  delay(1000);
  Serial.write (" ->Unread SMS Selesai dibaca");
 }

SHARE

About Unknown

    Blogger Comment
    Facebook Comment

0 comments:

Post a Comment