- 29a Bùi Xuân Phái, P.Tây Thạnh, Quận Tân Phú, TPHCM
- linhkienduchuy2018@gmail.com
- 0942954739
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
+ 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:
3,000₫
5,000₫
180,000₫
95,000₫
40,000₫
15,000₫
2,000₫
6,000₫
6,000₫
7,000₫
13,000₫
25,000₫
45,000₫
25,000₫
25,000₫
170,000₫
90,000₫
150,000₫
40,000₫
45,000₫
40,000₫
40,000₫
40,000₫
150,000₫
40,000₫
400,000₫
600,000₫
18,000₫
20,000₫
40,000₫
75,000₫
355,000₫
280,000₫
550,000₫
355,000₫
280,000₫
70,000₫
165,000₫
165,000₫
90,000₫
Bình luận