SIM808 GPS / GSM Locator with Arduino
HTML-код
- Опубликовано: 4 окт 2024
- Hi guys, this is my simulation of the SIM808 GPS / GSM Module with Arduino.
Thanks to alselectro for his awesome tutorial about sim808 www.google.com...
As for the module that I used in this video, it is actually part of a school project of my friend (Tom de los Santos ) :) to be incorporated in a mobile solar power tracking system that will also report the battery charge level status and location of the solar panel. Well that's his problem statement that was required by his professor.
If you need codes, you can just email me at gabrielecramos@gmail.com or message me on my fb messenger gabs1216 . Enjoy!
Reference AT Commands:
AT+CMGF=1 -configure SIM to TEXT mode
AT+CGNSPWR=1 -Turn on GPS(GNSS - Global Navigation Satellite System)
AT+CGNSSEQ=RMC -configure GPS settings
AT+CGPSSTATUS? - check if GPS fix is already available (should be either 2d or 3d fixed location)
AT+CGNSINF - get the GPS location
AT+CMGS="phone number" -Send message. Followed by the message. Terminated/ended by a special symbol from Notepad++ (combination of ALT+026) "SUB" symbol.
Also refer to my other video regarding some useful AT commands:
• Some SIM808 AT Command...
Also refer to my sample simulation of vehicle GPS tracker using the same concept:
• Mobile Phone Triggered...
Also refer to my other video related to the SIM808 setup.
• SIM808 GPS/GSM AT Comm...
Idol tlga sir gabs! Well explained! Continue inspiring people in electronic world like us sir gabs! Godbless sir!
Thanks Jet😁
Hello sir, can i ask why it shows "gps initializing..." on my serial monitor? I followed the code on your reference. Can you help me?
Here are the things to check :
1. Make sure that you use 12v 2Amp or 1Amp power supply for the barrel jack.
2. Double check the wiring using a multimeter. Or you can verify by replacing the jumper wires with a new one
thank you so much , you are so cooperation
You're welcome.
Great Tutorial - Thanks for sharing!!!
Thank you
Hi Gabriel,
I get a message on my smartphone but not the link to google maps! where am I wrong ??
This is great work.
I like it
Thanks
I emailed you for the Source Code, ByTheway nice work
clear and straight to the point....
any chance I can get a copy of the code sir?
Yes of course you can get a copy. Emai me at gabrielecramos@gmail.com so I can send you the code and the schematics
please i don't know why but my sim808 module gives me inaccurate positions by far
Hello, make sure you have positioned the antenna with the top mark "GPS" facing the sky and/or near the window.. You can test the GPS status by entering the AT command : AT+CGPSSTATUS? In the serial monitor. And then the expected result should be either 2D or 3D fix location
I am trying to get the message but it's not coming, which library were you using, it's not clear in the video
my gps led is not blinking. its taking time to connect what might be the issue?
Try checking the following :12v 1Amp supply, GPS antenna connection, arduino wiring, antenna location must be near or outside the window
Can you share source code ? its urgent
Thank you for this awesome Explination, Can you provide me Source code?
Hi sir ,
Can you share me Source code of this project ? Thank you
I have an issue with the GPS AT comands, they all return Error, Just the GPS cant even attach the gps with AT+CGPSPWR
You now what could it be?
Do you have an email? I can send you codes
@@gabs1216 yes it's jorgevv08@gmail.com it would be really helpful
Assuming you have the same module as mine, enter the following AT commands:
AT+CGNSPWR=1 this will power up your GPS. But ensure that you already pressed the small power button for about 2 seconds on the module.
Then AT+CGNSSEQ=RMC this will configure the GPS sentence to be returned.
Then AT+CGPSSTATUS? This will determine the GPS status. Ideal result should either be 2d or 3d fixed location.
Then AT+CGNSINF this will retrieve the GPS NMEA sentence.. Let me know how it goes
I'll send you the code when got home
Hi Good Evening,before i upload,i have press reset button to see my seriel monitor the first is AT command until location 3D fix and last sentence is 1.get a location 2.Clear messages 3.Help then A.I did not receieve any messages to my phone.Please help on this
hi...i manage the code but i cant send and receive message. can help? thanks
Hi, can you send me your code. I'll check it out. Thanks
@@gabs1216 i have send via email.
Muito bom. do you have any video about the SIM868 ?
No I don't have any. But I think it uses the same AT commands as the sim808
Interesting. I am excited to ask if this supports 3G sim cards?
As long as it supports GSM network, yes it does. I am using a 4G LTE Sim card on this video
Hi Gabriele, I just emailed you a request for your code. Thank you for your awesome video! You've got a subscriber in me!
Hi,
Code and diagram sent! Thanks for subscribing.
@@gabs1216 you're welcome! thanks for being so fast!
@@deygana3787 thanks
When I disconnect the power on GSM, I need to press the start button again and usually raise the code again. Is there a solution to this problem
Yes there is a solution to that. Simply look for D9 pin(mostly, it is a hole or via connection on the SIM808 pcb) and connect the D9 into the arduino 5v.
sir, okay lang po ba gamitin yung battery na 3.7V 2A para i power yung SIM808 Module?
Pwede nmam gamitin ang 3.7v pero Doon mo I connect sa supply input ng lithium battery
@@gabs1216 Thank you sir.
can I use 9v battery to power the sim808 instead using a charger?
Yes but only in a short period of time. The sim808 consumes a lot of current when operating
@@gabs1216 alright tq for the answer👍🏼
sir how to onn a sim808 because when we press the button the sim808 is on but when we insert a sim so they suddenly off sir please solve this kind of problem help me
Insert the Sim first before turning on the button. You can email me for more details
@@gabs1216 ok sir sure
Hello and hey..is there a way i can communicate with you except email.i have a trouble.
Hi, I do have messenger but I cannot respond quickly. I'd like to answer questions via email instead
@@gabs1216hi.i got the code you sent.but in the character phone that need to change it into my number in the code, do i need to put the sim card phone number that i put into the sim808 or my sim card number that in my phone?
Sir ano pong band network gamit nyu po? 4g po ba?
Nice video sir, Would you mind sharing the code?
Sure no problem
@Arjo Enriquez if you have code then share it with me. Email:atg.tus1@gmail.com
Sir, bat po laging "GPS initializing" yung narereceive kung prompt sa Serial Monitor?
Hi Dennis,
Make sure you have the done the following on your setup:
1. Power supply requires 12v 2A or 1A will also do
2. Connection must be wired such that the sim808 TX is connected to arduino RX, while sim808 RX is connected to arduino TX and both grounds are also connected.
3. Power switches must be working. Both slide switch and button
It should be working.
Perhaps you can email me at gabrielecramos@gmail.com so I can help you out.
Hi Dennis,
Make sure you have the done the following on your setup:
1. Power supply requires 12v 2A or 1A will also do
2. Connection must be wired such that the sim808 TX is connected to arduino RX, while sim808 RX is connected to arduino TX and both grounds are also connected.
3. Power switches must be working. Both slide switch and button
It should be working.
Perhaps you can email me at gabrielecramos@gmail.com so I can help you out.
@@gabs1216 Hello sir. 3.7V Li-ion battery tsaka 2A rated po siya. Same po yung pin connections ko sa sim808 tsaka sa Arduino UNO. Same padin po. Clone lang po yung Arduino UNO ko.
@@gabs1216 Okay na sir. Gumagana na yung text pero hindi umiilaw yung led para sa GPS status. Walang location na nakukuha yung module sir. Yung link sa google maps lang walang latitude at longitude. P.S. May GPS antenna siya na nakaattach sir.
@@grIMAG3 Eto naman I check mo:
1. Antenna must be placed such that it is facing the sky and or near the window. Mas maganda kapag sa open area.
2. I think your supply cannot serve the GPS requirement.
3. Observe mo after 30mins kung makakasagap ba sya ng signal. Usually kapag sa unang subok, medyo matagal
Klo location not fix gk kedetek itu gmn ya min pdhl udh dcoba dluar
Hi Caesar, Please read my reply on your email for more details.
Very informative guide sir. Please how can I get the code
Hello, I wanted to know if you can share your code because I have a similar project and wanted to help me with yours, please would be very helpful thanks
Sir i get Sim808 init error
Here are the things to check :
1. Make sure that you use 12v 2Amp or 1Amp power supply for the barrel jack.
2. Double check the wiring using a multimeter. Or you can verify by replacing the jumper wires with a new one
Hello dear this device can send generel text sms?
Yes it can.you only need to program it in order to send it the way you want
@@gabs1216 Ok thanks Dear I will make program using python
@@mr.roboter that would be great. Please share your code too.
Sir possible po ba na magtetext lang ang gsm module kapag nag text ako ng command sa kanya for example nag text ako ng word na "location" sa gsm tsaka pa lang mag sesend saakin ng location yung gsm? Balak ko sana ilagay sa motor
Oo pwedeng pwede.
@@gabs1216 pwede po makahingi ng tulong?
@@gabs1216 Sir nakita ko po yung channel niyo at nakapag subscribe na din po ako tanong ko lang po kung pwedeng magpatulong? Kasi may balak po akong gawing project na medyo may hawig sa mga project mo balak ko po sana is gumawa ng gps tracker na may 4 na features lalagay ko po sa motor. so ganito po ang siste (1st feature) tuwing mag tetext po ako sa gsm ng word na "location123" mag rereply po ng link location yung gsm na magdidirect sa google map app katulad po ng sa project mo. (2nd feature)Then mag lalagay din ng maliit na mic parang yung sa isang vid mo po tapos anytime pwede din tawagan yung gsm tapos kusa itong sasagot at maririnig ko na yung mga pinag uusapan or any sounds na malapit sa motor if ever man na manakaw. (3rd feature) is mag lalagay din ng isang 5v 1channel relay and kapag nag text po ako sa gsm ng word na "electricityoff101" the 5v 1channel relay will turn HIGH and if its is done mag rereply po yung gsm saakin ng "done". At last the (4th feature) for example magtetext po ako sa gsm ng "100m" yung gps po ay mag seset ng boundaries na 100 meters diameter from the current location nung device noong nag text po ako ng word na "100m" at kapag lumagpas po yung device sa 100 meter rage mag tetext po agad sa akin yung gsm na "your device reach the 100m mark". ang 100m po ay hindi fix pwede po sana itong mabago bago ng kahit anong range. Pasensya na po kung medyo mahaba sana po matulungan niyo po ako. MARAMING SALAMAT PO
@@gabs1216 nag pm na po ako sayo sa messenger
@@HiHello-xx5dt please send me a message on fb messenger. Di ko kasi nakita pm mo
Sir how to fix the inaccurate gps location in gsm gps sim808 shield
place your antenna such that it is facing up the sky. if you are located inside the house, make sure that your antenna is near the window
It does not necessarily need an internet to obtain a GPS location.. You only need to make sure that the antenna is facing the sky. It will usually take few minutes or even longer on the first time to get a fixed 2d or 3d location when you place an at command AT+CGPSSTATUS?
Once you got a fixed location, it simplY means that the GPS satellite has got your module located
@@gabs1216 thank so much sir
thank you so much sir for your help[
i keep getting State :1AT+CMGS="+234"
ERROR
Send me more details so I can help you out with that
Sir may manual kau ng sim808 module na yan? Pashare naman po
Informational video.
Thank you
Salamat!
Thats an interesting project dude! :)👍🏻🤔😍
Thank you Johnny 😊
paps bakit po kaya sim808 int error lumalabas sakin? thanks po
send mo nga code mo sa email ko
ano po email mo
@@darzsanjose7690 gabrielecramos@gmail.com
sir pa help po gumagana naman po kaso wala po nakalagay sa latitude tska longitude po kaya di po ma deteck location ko pano po kaya yun.
okay na po pla ty.
what is the source code of sim 808 aurdino uno without serial port
Hi, you can email me so I can send you the code. Thanks
@@gabs1216 your email id please?
@@fidaahmed3036 gabrielecramos@gmail.com
@@gabs1216 thanks
@@fidaahmed3036 you're welcome
Very informative sir. Would you mind sharing the code?
Code sent. let me know howe it goes
Thank you so much, I emailed you a request for the code can you please send it to me ☺️
Sure. Please check out your email and let me know how it goes.
@LAMA bro if you have code kindly Email me: atg.tus1@gmail.com
@@MrIhsan789 okay check your email
Can you please email me the code innocentkafunga@gmail.com
@LAMA
I emailed you for the Source Code,Please share the project code with me, thank you.
Hello, can I get the code please?
how to make sms go on a call?
Hi, there is a certain command that you need to embed on the code in order to perform SMS and Calls
@@gabs1216 please tell me
@@user-pv1zz6rj8v I have it on my other video. Please also read the video details because it contains commands that you're looking for.
ruclips.net/video/UjJXU-X5OXQ/видео.html
@@gabs1216 ok thanks
@@gabs1216 will this code work?
#include
SoftwareSerial sim808(7,8);
char phone_no[] = "xxxxxxx"; // replace with your phone no.
String data[5];
#define DEBUG true
String state,timegps,latitude,longitude;
void setup() {
sim808.begin(9600);
Serial.begin(9600);
delay(50);
sim808.print("AT+CSMP=17,167,0,0"); // set this parameter if empty SMS received
delay(100);
sim808.print("AT+CMGF=1
");
delay(400);
sendData("AT+CGNSPWR=1",1000,DEBUG);
delay(50);
sendData("AT+CGNSSEQ=RMC",1000,DEBUG);
delay(150);
}
void loop() {
sendTabData("AT+CGNSINF",1000,DEBUG);
if(sim808.find("RING")){
Serial.println("State :"+state);
Serial.println("Time :"+timegps);
Serial.println("Latitude :"+latitude);
Serial.println("Longitude :"+longitude);
sim808.print("AT+CMGS=\"");
sim808.print(phone_no);
sim808.println("\"");
delay(300);
sim808.print("maps.google.com/maps?q=loc:");
sim808.print(latitude);
sim808.print(",");
sim808.print (longitude);
delay(200);
sim808.println((char)26); // End AT command with a ^Z, ASCII code 26
delay(200);
sim808.println();
sim808.flush();
sim808.println("ATH0");
} else {
Serial.println("GPS Initializing…");
}
}
void sendTabData(String command , const int timeout , boolean debug){
sim808.println(command);
long int time = millis();
int i = 0;
while((time+timeout) > millis()){
while(sim808.available()){
char c = sim808.read();
if (c != ',') {
data[i] +=c;
delay(100);
} else {
i++;
}
if (i == 5) {
delay(100);
goto exitL;
}
}
}exitL:
if (debug) {
state = data[1];
timegps = data[2];
latitude = data[3];
longitude =data[4];
}
}
String sendData (String command , const int timeout ,boolean debug){
String response = "";
sim808.println(command);
long int time = millis();
int i = 0;
while ( (time+timeout ) > millis()){
while (sim808.available()){
char c = sim808.read();
response +=c;
}
}
if (debug) {
Serial.print(response);
}
return response;
}
nice project idol.
Thank you 😊
Would you please send the code
Sure. Send me an email so I can send you the code
por favor el código
Hi, please email me at gabrielecramos@gmail.com so I can send you the code link
Can u share the code plz!
hello code?
Hi, you can email me for the code. Thanks
Thanks for this video .
would you please send the source code.
Thanks. Please send me an email so I can send you the code
@@gabs1216 SORRY FOR THAT , hossain22215@gmail.com
@@hstechnology7349 Email sent. Please let me know how it goes. Thanks
sir, can sim 808 connect to raspberry pi 3 B+? can you do video of it thankyou
I think yes. It can be done since the SIM808 module is a GSM module and it can be called via serial communication. But unfortunately, I don't have a Raspberry Pi. I would try to build one in order to simulate if I have. Try searching for sim808 and Raspberry Pi keywords in the internet
Please sir give the code
noted. i'll send it to your email
Would you please send the code. I've emailed you already.
Done. Please check your email and let me know how it goes.
@Muhammad Afham done.
Please check out your email. Thanks
Anung name mo sir sa fb?
gabs1216
Gabs Ramos
Am sendig an emil to you just send me the code of this project #your channel it deserve to be SUBSCRIBED, theks bro keep going
POGI MO KYAH SABI NI FELIZA ANAVE FROM BSCPE 2201
Alguien que me pueda pasar el codigo
Hi please email me so I can reply with the code and the wiring diagram. Thanks
Thank you so much for this video. Pwede po makahingi ng code sir?
Hi, please email me at gabrielecramos@gmail.com so I can send you the code
can I get the code please. By the way informative video.
Thanks for watching. Email me at gabrielecramos@gmail.com so I can send you the code
Code sent! Thank you for watching. Please don't forget to subscribe
Hello sir any chance I can get the code too? It will be great help for me because Im working on the same project. Thanks!@@gabs1216
would you mind sharing the codes and can it be an else if statement for a certain sensor?
Hi, send me an email so I can send you the code. My email is
gabrielecramos@gmail.com
@@gabs1216 i already sent u a message
@@aeronfranco5091 haven't received any email from you yet. What is your email address
hey friend i have trouble with my project because i cant send the message ... but the gps is working please help me ... thank you so much .
Hello, send me your code so I can check it out
ok Gabriele could you give me a email to send the code and the image of execution of same ... thank you men.
@@danielfelipesosaperez2017 gabrielecramos@gmail.com
Plz send me the code
hi, email me at gabrielecramos@gmail.com so I can send you the code
Sir pwede po ba gamitin code mo:(
Pwede. Email mo ako sa gabrielecramos@gmail.com
Thank you good sir I emailed you a request for the code
Okay I'll reply to your email
i emailed you too, please can you send the code
Hi sir, pwede po ba hingiin ang codes nyu sir? Hehe..
Sure. Send me an email. Para isend ko sayo
@@gabs1216
Ito po sir..
Veoxat12803@gmail.com
Thank you :3
@@theveoxat1406 code sent! Kindly check your email. Let me know how it goes. Thanks
@@gabs1216 ty sir i like ur content keep it up :))
@@theveoxat1406 thanks
MAHAL KA PO NI JOSUA DELGADO FROM BSCPE 2101 BCP
sim init error paano maayos sir?
Check the following :
1. Rx to TX, TX to RX, ground to ground. Use multimeter if necessary.
2. Power supply must be 12v 2Amps
3. Power On by pressing the button for about 2-3 seconds
Kuya patulong naman po hindi po kasi umi-ilaw ang D5 led sa sim808 ko parehas naman tayo sa module bat ayaw niya gumana pati sa code at AT command ay walang response ano ba ang sira ang hardware po ba oh ang pag set-up ko? Pasend na din sa code nyo go.joshuanic@gmail.com SALAMAT po
PLEASE RESPONSE ASAP
Pm mo ko sa gabs1216 fb messenger. Dun ko I send yung code para matulungan na rin kita
@@gabs1216 Nag PM na po ako sa facebook salamat.
please enable captions (subtitle) :
Hello, I can't add a caption on this video. If you need help, just email me so I can guide you.
Hello gabriele i have send u an email to get the code
hi
very nice.
Thank you.
Sir can you send me your code pls?
Hi you can email me so I can send you the code
@@gabs1216 live008@mail.ru
@@chingiszhamantayev8738 code sent. Please check your email
Sir send me the codes pls
Sure. Send me an email. I will send you the code
@@gabs1216 rusellemostaza16@gmail.com thankyou sir
@@rusellemostaza9905 email sent. please check your mail. :)
That's so awesome !! I'll really appreciate if yoy shared the code with me sir please, i sent a email to you
hey can you please check your email
Yep. Got it. Check out your email for my reply
could you pass me the code please
Sure. I already sent you the code.
hi sir good evening nag message po ako sa inyo sa messenger.. hoping you would reply thank you
I see. Na replyan ko na Yung email mo
Hi sir ,
Can you share me Source code of this project
its very Urgent
Sure no problem
Very informative sir. Would you mind sharing the code?
Sure and Thanks. Email me at gabrielecramos@gmail.com so I can send you the code and schematics
@@gabs1216 Sure l will