ESP32 GPS Location Web Server with Google Maps

แชร์
ฝัง
  • เผยแพร่เมื่อ 2 ก.ย. 2020
  • In this video, I showed how to connect to google map api using esp32.
    code:drive.google.com/file/d/1BzM5...

ความคิดเห็น • 108

  • @ItsQ21
    @ItsQ21 ปีที่แล้ว

    I have a similar code, but my gt u7 gps module takes a very long time to start working, is that normal?

  • @Mr.Lemmer101
    @Mr.Lemmer101 10 หลายเดือนก่อน

    is it possible to use map API using ESP32 on offline mode in real time situation?

  • @raffaelebarlotti9017
    @raffaelebarlotti9017 7 วันที่ผ่านมา

    Hi, I can't compile the sketch because it always gives me the same error (#include ), how can I solve it? Thank you.

  • @qrosty_5294
    @qrosty_5294 ปีที่แล้ว +5

    Bro just showed his location but great job💀💀💀

    • @enesmahmutkulak
      @enesmahmutkulak  ปีที่แล้ว +4

      Ohh yea it was a mistake, but if you come to my house, we can drink a cup of tea😉

    • @qrosty_5294
      @qrosty_5294 ปีที่แล้ว

      @@enesmahmutkulak on my way 👌🥶

  • @premthakkar395
    @premthakkar395 2 หลายเดือนก่อน

    which sensor are you using

  • @Nur-ew7ot
    @Nur-ew7ot 2 ปีที่แล้ว

    Merhaba tekrardan sizi rahatsız ediyorum kusura bakmayın lutfen. Ben esp32sim800l kullanarak anlık konumu SMS atan ve arama yapan bir porje üzerinde çalışıyorum. Esp32 sim800l de herhangi bir sorun yaşamıyorum. Ancak GPS modülünu açık alanda kullanmama rağmen ışığı bile yanmıyor. Arduino ile gps modülünu kullandığımda ise tek seferlik bile olsa konumu doğru bir şekilde verdi.ve diğer denemelerimde konumu vermese bile en azından ışığı yanıyordu. Ancak dediğim gibi espde hiçbir türlü ne ışık alabildim ne de doğru konum bilgisi. Kullandığım kodun da daha önce uygulamasını yapan olmuş ve çalışan bir kod. Yardımcı olursanız çok sevinirim

    • @enesmahmutkulak
      @enesmahmutkulak  2 ปีที่แล้ว

      Tekrardan merhaba.Size attığım linkte gps modullerinin kullanimi var eğer bakmadiysaniz bir ona bakabilirsiniz.Normalde çalışıyorsa da bir esp ile açık tutun ve 1 2 saat bekleyin Yani açıp başka bir işle ilgilenin arada da kontrol edin.

    • @enesmahmutkulak
      @enesmahmutkulak  2 ปีที่แล้ว

      Kütüphaneyi indirdiniz mi?

  • @helios6926
    @helios6926 3 ปีที่แล้ว

    Oh man it is awesome .please also do kokorec spinner 😂😂

    • @arduinocreator2474
      @arduinocreator2474 3 ปีที่แล้ว

      stupid but good idea😂😂

    • @helios6926
      @helios6926 3 ปีที่แล้ว

      @@arduinocreator2474 he is mu friend . İ am joking. Understand?😀

    • @gizlikullanc713
      @gizlikullanc713 3 ปีที่แล้ว

      Oooo amerikan dublaj söyleyen bir turk

    • @helios6926
      @helios6926 3 ปีที่แล้ว

      @@gizlikullanc713 man what are you talking about

    • @gizlikullanc713
      @gizlikullanc713 3 ปีที่แล้ว

      @@helios6926 az önceki yorumu neden sildin keşke silmeseydin komikti

  • @blacker8604
    @blacker8604 ปีที่แล้ว

    Sorry bro, I have some problems with this.
    Serial port:
    rst:0x1 (POWERON_RESET),boot:0x13 (SPI_FAST_FLASH_BOOT)
    configsip: 0, SPIWP:0xee
    clk_drv:0x00,q_drv:0x00,d_drv:0x00,cs0_drv:0x00,hd_drv:0x00,wp_drv:0x00
    mode:DIO, clock div:1
    load:0x3fff0018,len:4
    load:0x3fff001c,len:1216
    ho 0 tail 12 room 4
    load:0x40078000,len:10944
    load:0x40080400,len:6388
    entry 0x400806b4
    E (43) psram: PSRAM ID read error: 0xffffffff
    What does it happen
    ?

  • @dienau6313
    @dienau6313 2 หลายเดือนก่อน

    the softwareserial library just used for arduino board, not for esp32

  • @user-lv4yy5zr7b
    @user-lv4yy5zr7b ปีที่แล้ว +1

    Great job! Is it OK to work offline, such as a downloaded map? thanks.

    • @enesmahmutkulak
      @enesmahmutkulak  ปีที่แล้ว +2

      The interface is on laptop so, you can use a downloaded map but if you don't have internet you can't get data from ESP32.

    • @user-lv4yy5zr7b
      @user-lv4yy5zr7b ปีที่แล้ว

      @@enesmahmutkulak Thanks for your reply.

  • @tabrezahmed1000
    @tabrezahmed1000 ปีที่แล้ว

    the google maps is not loading the location map anything i can do?

    • @enesmahmutkulak
      @enesmahmutkulak  ปีที่แล้ว

      Sorry for late reply, the google maps is related to your pc's internet.

  • @danielkibret8271
    @danielkibret8271 ปีที่แล้ว +1

    from which pins i connect the gps's rx and tx

    • @enesmahmutkulak
      @enesmahmutkulak  ปีที่แล้ว +1

      I think You can find this info in the project's code.
      SoftwareSerial ss(16,17);//arduino rx,tx

    • @danielkibret8271
      @danielkibret8271 ปีที่แล้ว +1

      @@enesmahmutkulak ok thank you

  • @marcovL1970
    @marcovL1970 2 ปีที่แล้ว

    this sketch is totaly not working and gives error at start

  • @enitalp
    @enitalp ปีที่แล้ว

    Thanks. You left your Google API Key in the code ;p

    • @enesmahmutkulak
      @enesmahmutkulak  ปีที่แล้ว

      Really, oh bro thanks. When ı shared this video ı was young. So I didn't pay more attention to such security vulnerabilities. Did you try to run the code?

    • @enitalp
      @enitalp ปีที่แล้ว

      @@enesmahmutkulak NP. No just bookmarked it for a project I have.

  • @leveantony1272
    @leveantony1272 8 หลายเดือนก่อน

    hi my map is blank did u use api key ? for this ?

    • @enesmahmutkulak
      @enesmahmutkulak  8 หลายเดือนก่อน

      hi, i cant remember correct but i didnt. Thats why the map looks kinda gray and says this is just for develeopment

  • @user-sy8wb8hg2i
    @user-sy8wb8hg2i 2 หลายเดือนก่อน

    can you show me the connection clearly

  • @gulsevimozen1370
    @gulsevimozen1370 3 ปีที่แล้ว

    Merhaba videonun altına bırakmış oldunuz kodu açamadım yardımcı olabilir misiniz

    • @enesmahmutkulak
      @enesmahmutkulak  3 ปีที่แล้ว +1

      Tabi ki yardımcı olabilirim
      Kodu bu yoruma yazıyım daha kolay olur.
      #include
      TinyGPS gps;
      #include
      SoftwareSerial ss(16,17);//arduino rx,tx
      #include
      const char* ssid = "";
      const char* password = "";
      WiFiServer server(80);
      String yazi;
      void setup()
      {
      Serial.begin(9600);
      ss.begin(9600);
      Serial.print("Connecting to ");
      Serial.println(ssid);
      WiFi.begin(ssid, password);
      while (WiFi.status() != WL_CONNECTED) {
      delay(500);
      Serial.print(".");
      }
      Serial.println("");
      Serial.println("WiFi connected");
      Serial.println("IP address: "); // this is the address to use for viewing the map
      Serial.println(WiFi.localIP());
      server.begin();
      }
      void loop(){
      smartdelay(1000);
      WiFiClient client = server.available(); // listen for incoming clients
      float flat, flon;
      unsigned long age;
      gps.f_get_position(&flat, &flon, &age);

      if (client) {
      Serial.println("new client");
      String currentLine = ""; // make a String to hold incoming data from the client
      while (client.connected()) {
      if (client.available()) { // if there's client data
      char c = client.read(); // read a byte
      if (c == '
      ') { // check for newline character,
      if (currentLine.length() == 0) { // if line is blank it means its the end of the client HTTP request

      yazi="My Google Map#map{height:400px;width:100%;} My Google Mapfunction initMap(){var options = {zoom:8,center:{lat:";
      yazi+=flat;
      yazi+=",lng:";
      yazi+=flon;
      yazi+="}};var map = new google.maps.Map(document.getElementById('map'), options);google.maps.event.addListener(map, 'click', function(event){addMarker({coords:event.latLng});});var markers = [{coords:{lat:";
      yazi+=flat;
      yazi+=",lng:";
      yazi+=flon;
      yazi+="}}];for(var i = 0;i < markers.length;i++){addMarker(markers[i]);}function addMarker(props){var marker = new google.maps.Marker({position:props.coords,map:map,});if(props.iconImage){marker.setIcon(props.iconImage);}if(props.content){var infoWindow = new google.maps.InfoWindow({content:props.content});marker.addListener('click', function(){infoWindow.open(map, marker);});}}}";


      client.print(yazi);
      // The HTTP response ends with another blank line:
      client.println();
      // break out of the while loop:
      break;
      } else { currentLine = ""; }
      } else if (c != '
      ') { // if you got anything else but a carriage return character,
      currentLine += c; // add it to the end of the currentLine
      }
      // here you can check for any keypresses if your web server page has any
      }
      }
      // close the connection:
      client.stop();
      Serial.println("client disconnected");
      }
      }
      static void smartdelay(unsigned long ms)
      {
      unsigned long start = millis();
      do
      {
      while (ss.available())
      gps.encode(ss.read());
      } while (millis() - start < ms);
      }
      Anlamadığınız bir yer veya yapamadığınız bir yer olursa tekrar yorum yazabilirsiniz.

    • @gulsevimozen1370
      @gulsevimozen1370 3 ปีที่แล้ว

      @@enesmahmutkulak çok teşekkür ederim. Kodu çalıştırdığımda ESP32 Wrover Module kartı için derleme hatası verdi. Bu hatayı nasıl düzeltebilirim. Bende böyle bir proje üzerinde çalışıyorum Esp32 sım800l kartını kullanıyorum konum bilgisini telefona mesaj olarak attıp google haritasına göstermeye çalışıyorum. Benim kodumda aynı hatayı vermişti. Bana yardımcı olursanız çok sevinirim.

    • @enesmahmutkulak
      @enesmahmutkulak  3 ปีที่แล้ว +1

      @@gulsevimozen1370 esp32 ile esp32 sim800l kütüphaneleri farklı olabilir.sizin kullandığınız kartı tanıtan internette herhangi bir Türkçe kaynak bulamadım.Ama th-cam.com/video/ps1m6bWwvEM/w-d-xo.html bu videoda sizin istediğini yapıyorlar.Bu videoda anlamadığınız yer olursa sorabilirsiniz.

    • @gulsevimozen1370
      @gulsevimozen1370 3 ปีที่แล้ว

      @@enesmahmutkulak bende bu videoda yararlanıyorum ama burda blynk diye bi uygulama var oraya konum bilgisini atıyor. Ben telefona mesaj olarak yollaması istiyorum. th-cam.com/video/ps1m6bWwvEM/w-d-xo.html bu videodaki kod ve sizin kodunuzda aynı derleme hatası veriyor. Sorunun kütüphanede olduğunu düşünmüyorum. Ama sorunun nerde olduğunu da anlamadım.

    • @enesmahmutkulak
      @enesmahmutkulak  2 ปีที่แล้ว

      @@gulsevimozen1370 tekrardan merhaba yorumunuzu görmemişim kusura bakmayın eğer sim800l yi çalıştıramıyorsanız o bozuk olabilir.

  • @Nur-ew7ot
    @Nur-ew7ot 3 ปีที่แล้ว

    merhaba. sizin kodu çalıştırırken hata alıyorum yardımcı olabilir misiniz?

    • @enesmahmutkulak
      @enesmahmutkulak  3 ปีที่แล้ว +1

      Tabi ki olur nasıl yardımcı olabilirim?

    • @Nur-ew7ot
      @Nur-ew7ot 3 ปีที่แล้ว

      @@enesmahmutkulak kütüphane yüklü olmasına rağmen kütüphane hatası veriyor. Kodda bir sıkıntı var sanırım zahmet olmazsa tekrar atabilir misiniz?

    • @enesmahmutkulak
      @enesmahmutkulak  3 ปีที่แล้ว +1

      @@Nur-ew7ot kodu linkten mi aldınız?

    • @Nur-ew7ot
      @Nur-ew7ot 3 ปีที่แล้ว

      @@enesmahmutkulak evet

    • @enesmahmutkulak
      @enesmahmutkulak  3 ปีที่แล้ว +1

      @@Nur-ew7ot diğer yorumlara bakarsanız kodu yorum olarak yazdım isterseniz bir de onu deneyin.Kodda olan hatayı bana yazın orada sizin değiştirmeniz gereken belli parametreler var mesela internet şifreniz internet adınız vb.

  • @milkegg9996
    @milkegg9996 2 ปีที่แล้ว

    sorry,i have gotten your code on Arduino,but it does not work;
    未使用: C:\Program Files (x86)\Arduino\libraries\WiFi
    exit status 1
    開發板 ESP32S2 Dev Module 編譯錯誤。

    • @enesmahmutkulak
      @enesmahmutkulak  2 ปีที่แล้ว

      I think you couldn't install libraries.did you install libraries?

    • @milkegg9996
      @milkegg9996 2 ปีที่แล้ว

      @@enesmahmutkulak sorry, i do not know how to get the librart?

    • @enesmahmutkulak
      @enesmahmutkulak  2 ปีที่แล้ว

      @@milkegg9996 i think you should search how install arduino library

    • @milkegg9996
      @milkegg9996 2 ปีที่แล้ว

      @@enesmahmutkulak ok,thanks bro,my is ESP32,maybe download all library for adding my arduino

    • @milkegg9996
      @milkegg9996 2 ปีที่แล้ว

      @@enesmahmutkulak can you tell me about arduino library how to download?

  • @arduinocreator2474
    @arduinocreator2474 3 ปีที่แล้ว

    When will the video come?

  • @danech7445
    @danech7445 9 หลายเดือนก่อน

    i got this error
    c:\Users\Deche\Documents\Arduino\libraries\SoftwareSerial\SoftwareSerial.cpp:41:10: fatal error: avr/interrupt.h: No such file or directory
    #include
    ^~~~~~~~~~~~~~~~~
    compilation terminated.
    exit status 1
    Compilation error: exit status 1

    • @enesmahmutkulak
      @enesmahmutkulak  9 หลายเดือนก่อน

      did you install required library?

    • @danech7445
      @danech7445 9 หลายเดือนก่อน

      @@enesmahmutkulak yes but do you have anything where i can send you pictures of the libraries i installed ?

    • @danech7445
      @danech7445 9 หลายเดือนก่อน

      @@enesmahmutkulak i have some code but instead of software serial its written with hardware serial, would you like to see it

    • @enesmahmutkulak
      @enesmahmutkulak  9 หลายเดือนก่อน

      @@danech7445 you can upload the photo to imgur.com and then share the link itself here

    • @arunaaa.t
      @arunaaa.t หลายเดือนก่อน

      Which library did you install??

  • @abhishekvarun9271
    @abhishekvarun9271 ปีที่แล้ว

    The code is not opening bro

    • @enesmahmutkulak
      @enesmahmutkulak  ปีที่แล้ว

      #include
      TinyGPS gps;
      #include
      SoftwareSerial ss(16,17);//arduino rx,tx
      #include
      const char* ssid = "";
      const char* password = "";
      WiFiServer server(80);
      String yazi;
      void setup()
      {
      Serial.begin(9600);
      ss.begin(9600);
      Serial.print("Connecting to ");
      Serial.println(ssid);
      WiFi.begin(ssid, password);
      while (WiFi.status() != WL_CONNECTED) {
      delay(500);
      Serial.print(".");
      }
      Serial.println("");
      Serial.println("WiFi connected");
      Serial.println("IP address: "); // this is the address to use for viewing the map
      Serial.println(WiFi.localIP());
      server.begin();
      }
      void loop(){
      smartdelay(1000);
      WiFiClient client = server.available(); // listen for incoming clients
      float flat, flon;
      unsigned long age;
      gps.f_get_position(&flat, &flon, &age);

      if (client) {
      Serial.println("new client");
      String currentLine = ""; // make a String to hold incoming data from the client
      while (client.connected()) {
      if (client.available()) { // if there's client data
      char c = client.read(); // read a byte
      if (c == '
      ') { // check for newline character,
      if (currentLine.length() == 0) { // if line is blank it means its the end of the client HTTP request

      yazi="My Google Map#map{height:400px;width:100%;} My Google Mapfunction initMap(){var options = {zoom:8,center:{lat:";
      yazi+=flat;
      yazi+=",lng:";
      yazi+=flon;
      yazi+="}};var map = new google.maps.Map(document.getElementById('map'), options);google.maps.event.addListener(map, 'click', function(event){addMarker({coords:event.latLng});});var markers = [{coords:{lat:";
      yazi+=flat;
      yazi+=",lng:";
      yazi+=flon;
      yazi+="}}];for(var i = 0;i < markers.length;i++){addMarker(markers[i]);}function addMarker(props){var marker = new google.maps.Marker({position:props.coords,map:map,});if(props.iconImage){marker.setIcon(props.iconImage);}if(props.content){var infoWindow = new google.maps.InfoWindow({content:props.content});marker.addListener('click', function(){infoWindow.open(map, marker);});}}}";


      client.print(yazi);
      // The HTTP response ends with another blank line:
      client.println();
      // break out of the while loop:
      break;
      } else { currentLine = ""; }
      } else if (c != '
      ') { // if you got anything else but a carriage return character,
      currentLine += c; // add it to the end of the currentLine
      }
      // here you can check for any keypresses if your web server page has any
      }
      }
      // close the connection:
      client.stop();
      Serial.println("client disconnected");
      }
      }
      static void smartdelay(unsigned long ms)
      {
      unsigned long start = millis();
      do
      {
      while (ss.available())
      gps.encode(ss.read());
      } while (millis() - start < ms);
      }

  • @gizlikullanc713
    @gizlikullanc713 3 ปีที่แล้ว

    Hocam video cekmeyi biraktin sanirim

    • @enesmahmutkulak
      @enesmahmutkulak  3 ปีที่แล้ว

      Yeni video yakında gelecek.

    • @gizlikullanc713
      @gizlikullanc713 3 ปีที่แล้ว

      @@enesmahmutkulak gecen haftada arduino creatore ayni cevabi vermistiniz

    • @enesmahmutkulak
      @enesmahmutkulak  3 ปีที่แล้ว

      @@gizlikullanc713 yeni video geldi😊

  • @acemg
    @acemg 10 หลายเดือนก่อน

    THANKSSS!

  • @saitanveesh5906
    @saitanveesh5906 2 ปีที่แล้ว

    Hi buddy,
    Can we use esp8266 instead of esp32

    • @enesmahmutkulak
      @enesmahmutkulak  2 ปีที่แล้ว

      I think yes,but you need to change some codes

    • @imadeloirdi4742
      @imadeloirdi4742 2 ปีที่แล้ว

      ​@@enesmahmutkulak please sir I worked with ESP8266 I manage to connect to the router but the maps appear empty if you can help me, maybe the choice of pins is wrong

    • @enesmahmutkulak
      @enesmahmutkulak  2 ปีที่แล้ว

      @@imadeloirdi4742 hi sir,you need to get api key.then you need to paste this code instead of "src='maps.googleapis.com/maps/api/js?key=AIzaSyDHNUG9E870MPZ38LzijxoPyPgtiUFYjTM&callback=initMap'>";"
      .just change the maps.googleapis.com/maps/api/js?key=AIzaSyDHNUG9E870MPZ38LzijxoPyPgtiUFYjTM&callback part

    • @imadeloirdi4742
      @imadeloirdi4742 2 ปีที่แล้ว

      @@enesmahmutkulak thank you sir,indeed I just created an API key but which service I must activate for the key, is it "Maps JavaScript API"?

    • @enesmahmutkulak
      @enesmahmutkulak  2 ปีที่แล้ว

      @@imadeloirdi4742 It's been almost a year since I uploaded the video so I don't remember exactly but I think "Maps JavaScript API"