Khác

MODULE SIM800A (SẢN PHẨM ĐƯỢC TEST KIỂM TRA ĐẢM BẢO, YÊN TÂM SỬ DỤNG)

Mã sản phẩm: MODULE SIM800A (BẢN NÂNG CẤP TỪ SIM900A) - TRUYỀN DỮ LIỆU KHÔNG DÂY QUA SMS/GSM/GPRS
+ Mạch GSM GPRS SIM800A (SIM900A upgrade) tích hợp nguồn xung có thiết kế nhỏ gọn nhưng vẫn giữ được các yếu tố cần thiết để mạch hoạt động ổn định: Mạch nguồn xung dòng cao, IC giao tiếp RS232 MAX232, khe sim chuẩn và các đèn led báo hiệu,...
210,000₫
Số lượng
 
1
 
Thêm vào giỏ Mua ngay

Dịch vụ & Khuyến mãi

Giao miễn phí trong nội thành TPHCM đối với đơn hàng trên 1 triệu đồng

Tặng ngay 50.000đ cho đơn hàng trên 2 triệu đồng

Chi tiết sản phẩm

+ Mạch GSM GPRS SIM800A (SIM900A upgrade) tích hợp nguồn xung có thiết kế nhỏ gọn nhưng vẫn giữ được các yếu tố cần thiết để mạch hoạt động ổn định: Mạch nguồn xung dòng cao, IC giao tiếp RS232 MAX232, khe sim chuẩn và các đèn led báo hiệu, mạch còn đi kèm với Anten GSM.

+ Mạch GSM GPRS SIM800A (SIM900A upgrade) tích hợp nguồn xung giao tiếp với Vi điều kiển qua giao tiếp UART (lưu ý với Vi điều khiển sử dụng 5VDC cần mắc thêm mạch chuyển mức Logic hoặc trở phân áp sang 3.3VDC để tránh làm cháy mạch), thích hợp với các ứng dụng gọi điện nhắn tin SMS, GSM, GPRS,...

CODE GIAO TIẾP ARDUINO + SIM800A:

#include <SoftwareSerial.h>
SoftwareSerial mySerial(9, 10);// 9:RX, 10:TX TRÊN ARDUINO
char msg;
char call;

void setup()
{
  mySerial.begin(9600);   // Setting the baud rate of GSM Module  
  Serial.begin(9600);    // Setting the baud rate of Serial Monitor (Arduino)
  Serial.println("GSM SIM800A BEGIN");
  Serial.println("Enter character for control option:");
  Serial.println("h : to disconnect a call");
  Serial.println("i : to receive a call");
  Serial.println("s : to send message");
  Serial.println("c : to make a call");  
  Serial.println("e : to redial");
  Serial.println();
  delay(100);
}

void loop()
{  
  if (Serial.available()>0)
   switch(Serial.read())
  {
    case 's':
      SendMessage();
      break;
    case 'c':
      MakeCall();
      break;
    case 'h':
      HangupCall();
      break;
    case 'e':
      RedialCall();
      break;
    case 'i':
      ReceiveCall();
      break;
  }
 if (mySerial.available()>0)
 Serial.write(mySerial.read());
}

void SendMessage()
{
  mySerial.println("AT+CMGF=1");    //Sets the GSM Module in Text Mode
  delay(1000);  // Delay of 1000 milli seconds or 1 second
  mySerial.println("AT+CMGS=\"+84942954739\"\r"); // Replace x with mobile number
  delay(1000);
  mySerial.println("sim900a sms");// The SMS text you want to send
  delay(100);
   mySerial.println((char)26);// ASCII code of CTRL+Z
  delay(1000);
}

void ReceiveMessage()
{
  mySerial.println("AT+CNMI=2,2,0,0,0"); // AT Command to recieve a live SMS
  delay(1000);
  if (mySerial.available()>0)
  {
    msg=mySerial.read();
    Serial.print(msg);
  }
}

void MakeCall()
{
  mySerial.println("ATD+84942954739;"); // ATDxxxxxxxxxx; -- watch out here for semicolon at the end!!
  Serial.println("Calling  "); // print response over serial port
  delay(1000);
}


void HangupCall()
{
  mySerial.println("ATH");
  Serial.println("Hangup Call");
  delay(1000);
}

void ReceiveCall()
{
  mySerial.println("ATA");
  delay(1000);
  {
    call=mySerial.read();
    Serial.print(call);
  }
}

void RedialCall()
{
  mySerial.println("ATDL");
  Serial.println("Redialing");
  delay(1000);
}

GIAO TIẾP MODULE SIM800A VỚI ARDUINO:

GIAO TIẾP MODULE SIM800A VỚI RS232:

 

GIAO TIẾP MODULE SIM800A VỚI USB-TTL:

 



 

Bình luận

Không có sản phẩm nào trong giỏ hàng của bạn

Không có sản phẩm nào trong giỏ hàng của bạn

Cửa hàng linh kiện điện tử Đức Huy
Cửa hàng linh kiện điện tử Đức Huy