Forum Replies Created
-
AuthorPosts
-
rupaParticipant
void setup(){
Serial.begin(9600);
delay(200);
}
void loop()
{
Serial.println("AT");
delay(1000);
Serial.println("AT+CMGF=1");
delay(100);
Serial.println("AT+CMGS="+9779804495672"r");
delay(1000);
Serial.println("sms from arduino");
delay(100);
Serial.println(char(26));
delay(1000);
}
here is it simcom900a need external 12 volts supply after giving supply press the power button until u can seen led with blue light blinks it means ur sim is working connect tx to tx and rx to rx pins of arduino and check it
rupaParticipantif u dont need brightness dont connect 15 and 16 pins
if u want to vaey the brightness to a 100k variable resistor and using it will vary the brightness for sure
thank you
rupaParticipantif u dont need brightness dont connect 15 and 16 pins
if u want to vaey the brightness to a 100k variable resistor and using it will vary the brightness for sure
thank you
rupaParticipantu just need a variable resistor of 10K which need to be connnected arduino
rupaParticipantbut u dont find anything going on serial monitor but u will get sms to ru phone
#include <SoftwareSerial.h>SoftwareSerial mySerial(9, 10);void setup(){mySerial.begin(9600);Serial.begin(9600);delay(2000);//set GSm to test mode}void loop(){if (Serial.available()>0)switch(Serial.read())mySerial.println("AT+CMGF=1");delay(1000);mySerial.println("AT+CMGS="+918885751592"r");delay(1000);mySerial.print("test messsage from arduino ….hello…how r u");delay(1000);mySerial.println((char)26);//sends ctrl+z end of messagedelay(1000);}rupaParticipant#include<LiquidCrystal.h>LiquidCrystal lcd(2,3,4,5,6,7,11);#define vibrate_sense 9#define buzzer 12char str[70];char test[]="$GPGGA";char logitude[10];char latitude[10];int i,j,k;int temp;//int Ctrl+z=26; //for sending msgint led=13;void setup(){lcd.begin(16,2);Serial.begin(4800);pinMode(vibrate_sense, INPUT);pinMode(led, OUTPUT);pinMode(buzzer,OUTPUT);lcd.setCursor(0,0);lcd.print("GPS Besed Vehicle ");lcd.setCursor(0,1);lcd.print("Tracking System");delay(3000);}void loop(){if (digitalRead(vibrate_sense) == HIGH){for(i=18;i<27;i++) //extract latitude from string{latitude[j]=str;j++;}for(i=30;i<40;i++) //extract longitude from string{logitude[k]=str;k++;}digitalWrite(buzzer,HIGH);lcd.setCursor(0,0); //display latitude and longitude on 16X2 lcd displaylcd.print("Lat(N)");lcd.print(latitude);lcd.setCursor(0,1);lcd.print("Lon(E)");lcd.print(logitude);delay(100);Serial.begin(9600);Serial.println("AT+CMGF=1"); //select text modedelay(10);Serial.println("AT+CMGS="8@@@@@@@@""); // enter receipent numberSerial.println("Vehicle Accident Happend at Place:");Serial.print("Latitude(N): "); //enter latitude in msgSerial.println(latitude); //enter latitude value in msgSerial.print("Longitude(E): "); //enter Longitude in MsgSerial.println(logitude); //enter longitude value in msgSerial.print("Help Please");Serial.write(26); //send msg Ctrl+z=26temp=0;i=0;j=0;k=0;delay(20000); // next reading within 20 secondsSerial.begin(4800);}else{for(i=18;i<27;i++) //extract latitude from string{latitude[j]=str;j++;}for(i=30;i<40;i++) //extract longitude from string{logitude[k]=str;k++;}lcd.setCursor(0,0); //display latitude and longitude on 16X2 lcd displaylcd.print("Lat(N)");lcd.print(latitude);lcd.setCursor(0,1);lcd.print("Lon(E)");lcd.print(logitude);delay(100);Serial.begin(9600);Serial.println("AT+CMGF=1"); //select text modedelay(10);Serial.println("AT+CMGS="8@@@@@@@@""); // enter receipent numberSerial.println("Vehicle location Place:");Serial.print("Latitude(N): "); //enter latitude in msgSerial.println(latitude); //enter latitude value in msgSerial.print("Longitude(E): "); //enter Longitude in MsgSerial.println(logitude); //enter longitude value in msgSerial.write(26); //send msg Ctrl+z=26temp=0;i=0;j=0;k=0;delay(200000); // next reading within 20 secondsSerial.begin(4800);}}void serialEvent(){while (Serial.available()) //Serial incomming data from GPS{char inChar = (char)Serial.read();str= inChar; //store incomming data from GPS to temparary string str[]i++;if (i < 7){if(str[i-1] != test[i-1]) //check for right string{i=0;}}if(i >=60){break;}}}rupaParticipantcan i have the program for it i have tried so many but i havent got the right one
rupaParticipanthey bro i dont need lcd display with that.
i need without lcd display where i can see in serial monitor it will be good
-
AuthorPosts