Home
About Us
Achievement
Home
Raspberry-Pi Projects
_Raspberry Pi 4 Complete Guide
Arduino Project
_All Projects
Esp8266 Project
_All Projects
Esp32 Project
_Automation-with-feedback
Esp8266 Based GPS Location Tracker
Just Do Electronics
December 25, 2021
Circuit Diagram :-
Code :-
//Prateek //wwww.prateeks.in //https://www.youtube.com/c/JustDoElectronics/videos #include
#define BLYNK_PRINT Serial #include
#include
#include
const int RXPin = 4, TXPin = 5; const uint32_t GPSBaud = 9600; SoftwareSerial gps_module(RXPin, TXPin); TinyGPSPlus gps; WidgetMap myMap(V0); BlynkTimer timer; float gps_speed; float no_of_satellites; String satellite_orientation; char auth[] = "xxxxxxxxxxxxxxxxx"; char ssid[] = "justdoelectronics"; char pass[] = "123456789"; unsigned int move_index = 1; void setup() { Serial.begin(115200); Serial.println(); gps_module.begin(GPSBaud); Blynk.begin(auth, ssid, pass); timer.setInterval(5000L, checkGPS); } void checkGPS(){ if (gps.charsProcessed() < 10) { Serial.println(F("No GPS detected: check wiring.")); Blynk.virtualWrite(V4, "GPS ERROR"); } } void loop() { while (gps_module.available() > 0) { if (gps.encode(gps_module.read())) displayInfo(); } Blynk.run(); timer.run(); } void displayInfo() { if (gps.location.isValid()) { float latitude = (gps.location.lat()); float longitude = (gps.location.lng()); Serial.print("LAT: "); Serial.println(latitude, 6); Serial.print("LONG: "); Serial.println(longitude, 6); Blynk.virtualWrite(V1, String(latitude, 6)); Blynk.virtualWrite(V2, String(longitude, 6)); myMap.location(move_index, latitude, longitude, "GPS_Location"); gps_speed = gps.speed.kmph(); Blynk.virtualWrite(V3, gps_speed); no_of_satellites = gps.satellites.value(); Blynk.virtualWrite(V4, no_of_satellites); satellite_orientation = TinyGPSPlus::cardinal(gps.course.value()); Blynk.virtualWrite(V5, satellite_orientation); } Serial.println(); }
Github Link
Video :-
0 Comments
Newer
Older
ESP32 Interfacing With LDR Sensor
How To Make RFID & Keypad Based Door Lock
IoT Based Fingerprint Biometric Attendance System Using NodeMCU (Esp8266)
Esp32 Cam Based Face Unlock
NRF Based Servo Motor Control
Ultrasonic Sensor as a Counter with Arduino
ESP32 Led Blink With Push Button
How to Make a Conveyor Belt System | Counter Machine
IoT Based Patient Health Monitoring System Using Blynk App
Arduino ebook
YouTube
Like on Facebook
Follow on Twitter
Follow on Google+
Follow on Instagram
Subscribe on Youtube
Hi WelCome To My Website If you have a creative mind and want to learn Electronics even without studying it then FRIENDS this Website And Youtube Channel is for you, I am crazy creators who love making Electronics things. I have a bunch of more than 130 Tutorial Videos on My YouTube Channel and I upload a new Tutorial every Sunday.
Tags
Arduino Project
Esp32 Project
Esp8266 Project
0 Comments