E BIKE - logo1Arduino GPRS Module Nrog PCB kav hlau txais xov
Qauv: SIM800L GPRS
Cov neeg siv phau ntawv

E BIKE VISION AML9175 2 0 PowerPack 612 Wh 17Ah rau Baosh Classsic-

Kev piav qhia ntawm pins:

Lub npe pins Description
5v Fais fab interface Fais fab lub module
Txuas rau DC5v
GND
VDD TTL UART interface Lub TTL UART serial interface, koj tuaj yeem txuas MCU zoo li 51MCU lossis ARM, lossis MSP430 ncaj qha. Tus pin ntawm VDD yog siv los ua kom haum rau voltage TTL.
SIM_TXD
SIM_RXD
GND yog tias tus pin no tsis siv, qhib qhib
RST RST lub module, yog tias tus pin no tsis siv, qhib
Lub npe pins Description 5v Fais fab interface Fais fab lub module
Txuas rau DC5v
GND
VDD TTL UART interface Lub TTL UART serial interface, koj tuaj yeem txuas MCU zoo li 51MCU lossis ARM, lossis MSP430 ncaj qha. Tus pin ntawm VDD yog siv los ua kom haum rau voltage TTL.
SIM_TXD
SIM_RXD
GND yog tias tus pin no tsis siv, qhib qhib
RST RST lub module, yog tias tus pin no tsis siv, qhib

Pinout:

E BIKE VISION AML9175 2 0 PowerPack 612 Wh 17Ah rau Baosh Classsic-fig1

Arduino Sample Code:

Hauv qab no yog ARDUINO SKETCH rau qhov qauv no siv nrog LM35 TEMPERATURE
SENSOR xa qhov ntsuas kub rau koj lub xov tooj ntawm tes.
#ncig teb chaws
# suav nrog
String lat = “52.6272690”;
String lng = "-1.1526180";
SoftwareSerial sim800l(10, 11); // RX, TX
ntab sensorValue;
const int buttonPin = 7;
int buttonState = 0;
ntab tempC;
ntab tempCavg;
int avgcount = 0;
void setup()
{
pinMode(buttonPin, INPUT);
sim800l.begin(9600);
Serial.begin(9600);
ncua (500);
}
void loop( )
{
buttonState = digitalRead(buttonPin);

yog tias (buttonState == 0) {
thaum(avgcount <50){
sensorValue = analogRead(A0);
tempC = sensorValue * 5.0;
tempC = tempC / 1024.0;
tempC = (tempC – 0.05) * 100;
tempCavg = tempCavg + tempC;
avgcount++;
}
ncua (300);
Serial.println(tempCavg/ 50);
tempCavg = tempCavg / 50;
SendTextMessage();
}
yog (sim800l.available()){
Serial.write(sim800l.read());
}
}
tsis muaj dab tsi SendTextMessage()
{
Serial.println(“Xa ntawv…”);
sim800l.print("AT+CMGF=1\r"); // Teem lub thaiv rau SMS hom ncua (100);
sim800l.print(“AT+CMGS=\”+44795*******\”\r”);
ncua (200);
// sim800l.print(“http://maps.google.com/?q=”);
// sim800l.print(lat);
// sim800l.print(“,”);
// sim800l.print(lng);
sim800l.print("Qhov kub yog: ");
sim800l.print(tempCavg);
sim800l.print("degree C");
sim800l.print(“\r”); // cov ntsiab lus ntawm cov lus
ncua (500);
sim800l.print((char)26);// ASCII code ntawm ctrl+z yog 26 (yuav tsum tau raws li cov ntaub ntawv)
ncua (100);
sim800l.println();
Serial.println(“Text Xa.”);
ncua (500);
tempCavg = 0;
avgcount = 0;
}
void DialVoiceCall()
{
sim800l.println(“ATD+4479********;”); // hu tus lej, yuav tsum suav nrog lub tebchaws
ncua (100);
sim800l.println();
}

Cov ntaub ntawv / Cov ntaub ntawv

ARDUINO SIM800L GPRS Module nrog PCB kav hlau txais xov [ua pdf] Tus neeg siv phau ntawv
SIM800L GPRS Module nrog PCB kav hlau txais xov, Module nrog PCB kav hlau txais xov, SIM800L GPRS

Cov ntaub ntawv

Cia ib saib

Koj email chaw nyob yuav tsis raug luam tawm. Cov teb uas yuav tsum tau muaj yog cim *