Introduction: GPS Route Tracking V2

Project: GPS Itinerary Tracking V2

Date: May - June 2022

UPDATE

The first adaptation of this project, patc it worked in principle, had a number of faults which needed to be fixed. Firstly I did not equal the box so I have replaced it with some other. Secondly the calculations for zip and distance where non precise. Additional field tests with the unit placed inner a fomite and allowed to mapping the route and then this mapped path was mapped onto GPS Visualizer and Google Globe Pro with fantabulous results both in damage of actual road mapped and space calculated measured against the "ruler" selection in Globe In favor of.

To boot the circuitry was updated so that the 18650 batteries supplied power directly to the ESP32 DEV board, while the NEO7M GSP unit was powered directly from the Step Down module rather than via the DEV board. This produced a more stable system. The software was more often than not tidied up, with the E-mail option and ulterior connection to the topical anesthetic Router only performed if the unit establish a charge or files on tap to ship. One final improvement was to shift the "gps.location.isValid" test to "gps.location.isUpdated" this ensured that only updated GPS locations where saved inside the road charge, rather than tenfold GPS locations each having the same latitude and longitude.

I would note at this point that this is the get-go GPS based scheme I take up created, and subsequent versions would for the most part supercede the existing wiring with a PCB based board. To control that all of the conducting wire connections do not fail, during rough handling, all of these connections have been glued.

I have updated the ICO and Fritzing files and added other photos to show the changes I have made.

OVERVIEW

This project was a accomplished reorientation for me, moving away from Nixie Clocks, and WiF based Robots. The use of a Global Positioning System based Arduino module has intrigued me for sometime and as I had some free time wait for additional parts for the main project I am also workings connected, I distinct to build a GPS Path trailing gimmick, battery powered, light weight down, portable, and able to conveyance its road information either via a micro SD carte du jour or, if a WLAN network was available, via E-Mail and a attached file. This project required the manipulation of four components that I had not used ahead, namely a 0.96" oLED screen, SD-Card reader, GPS Module, and the ESP32 Development Board. The final size of the unit of measurement, piece certainly portable, could be further reduced, by a full 25-50%, if the wiring I used was replaced with a PCB control panel attached directly to the ESP32 Development Get on and the 18650 batteries and step-down module where replaced with a suitable Li-ion 5V battery pack.

Supplies

1. ESP32 Development Instrument panel

2. DS3231 RTC Time with battery support

3. Small SD Card SPI based reader, with 1GB micro SD Card

4. 0.96" organic light-emitting diode I2C based screen

5. NEO-7M-0-000 GPS Module

6. 10uF capacitor

7. 2 x 10K resistors, 4.7K resistor

8. DC-DC footstep down transformer

9. 2 x 18650 batteries

10. Two-baser 18650 battery holder

11. Single punt switch

12. Momentary push switch

13. 2 x 100mmx50mmx65mm project boxes

14. Dupont wires, hot glue.

Footprint 1: Grammatical construction

The attached Fritzing diagram shows the layout of the circuit. The two 18650 batteries and the tread-drink down module could be replaced with an Atomic number 3-ion battery jam providing 5V straightaway. I recommend the NEO-7M module with the integrated SMA external transmitting aerial spark plug which allows you to add a simple piece of wire 30cm in length which peck the outer information, this often takes a few transactions after the unit is ab initio switched on. The lower of the two protrude boxes has openings ready-made for the screen, GPS antenna, change, and Mount Rushmore State-card, information technology also contains the RTC clock, SD-Card reader, 0.96" oLED screen, push, GPS module, and PCB board. The upper project loge contains the ESP32 Developing board, 18650 batteries and barrage fire holder, step-depressed module, and a unvarying curtain raising for the various magnetic pole switch. The tip of this project box is held in situ with four counter sunk screws which can be removed to allow the two 18650 rechargeable batteries to live removed, emotional, and and so replaced. The unit is non irrigate proof, however it could be made so. A suitable USB based barrage charger could also be installed inside this top stick out box, with a suitable beginning, to allow the batteries inwardly to be positively charged without the need to remove the box's cover. While the GPS mental faculty can provide the time and date, as obtained from the satellite, I decided that the local time and date would be more suitable so I added a RTC mental faculty.

Some of the construction photos appearance the early development of this project where I was using a WeMos D1 R2 control panel and a simple 16x2 LED display, both of these where replaced in the final version.

Step out 2: SOFTWARE

The reason for the ESP32 based Arduino board was that later on whatever research I found that the ESP32 butt with success e-post to a G-Mail account, providing the account's settings are denaturized so that it allows "less secure E-Mails to be received", this requires a change in the G-Mail account settings. To accession this, go to the "Do Google Accounting" menu option, then choose "Security" and finally scroll down till you figure "Fewer secure app Memory access", switch this feature on.

You will need to download and install the following include files:TinyGPS++.h, SoftwareSerial.h, "RTClib.h", "ESP32_MailClient.h", "SPIFFS.h", WiFiClient.h, math.h, Cable.h, SPI.h, SD.h, Adafruit_GFX.h, and Adafruit_SSD1306.h.

The program was developed using version 1.8.12 of the Arduino IDE, and the board elect was the "DOIT ESP32 DEVKIT V1".

Due to the size of the program you cannot develop this program on an Arduino UNO, also when downloading the package, it is necessary to remove the TX wire from the GSP faculty otherwise the download will fail. A 10uF capacitance was attached to the "EN" and "GND" pins of the ESP32 board so that IT was not necessary for the "EN" button to be pressed each time a new software program was downloaded.

The Arduino software was developed to allow the user of the system to either record a itinerary or routes inside the building block so remove the Mount Rushmore State-Card and upload them via a PC based card reader, or to select the Netmail menu selection and have all of the route files held on the unit conveyed to a G-Mail account statement, one route attached to apiece E-Postal service. The path files are formatted within the Social unit and behind take the mould of two distinguishable styles, "GPX" format which ass be directly viewed by using "Global Positioning System Looke" a google lotion available free-to-consumption happening the Net, or "KML" initialize which can exist at once viewed away victimization the "Google Earth Pro" application available to download from the Internet. This same application can likewise learn and display the "GPX" based route files. Both these file formats are freely available as file format schematics and can be found along the cyberspace at Wikipedia. Once the electronic mail or e-mails throw been transmitted the unit will render to the route monitoring, nevertheless it wish nonpayment to the GPX file format. The push is used to select the E-Chain armour option, choose either GPX Beaver State KML file away data format, and to start and stop the route transcription. In route monitoring mode the oLED screen wish display the longitude and latitude of the current position so on a forward screen display the current time, date, altitude in meters, number of satellites beingness used, f number in Km, and ultimately course given Eastern Samoa incomparable of the cardinal compass points. While in the route recording mode the screen wish display the route file it has opened, then in addition to the two previously described screens a thirdly screen volition be displayed which inside information the route file existence used, the number of waypoints it has recorded, and finally the outdistance covering in Km.

The favorable images show how the e-mails, created and sent past the unit, are received and displayed by G-Mail.

Stone's throw 3: CONCLUSION

I give birth nonheritable much from developing this project, however this unit of measurement can only be considered a "book binding end" to an App based system which takes the GPX or KML files are displays them. Using third company software package was an acceptable disjunctive to foster development of this software. The availability of the "To a lesser extent Secure App" menu option in the Google Account Management computer menu may be limited as changes May occur in June of 2022, if this is the case and then re-directing the e-mail to an secondary account may be necessary or by exploitation the 586 port wine connected the mail host.

Step 4: GPS and KML File Formats

The succeeding shows a typical file content for each type of file the unit generates, (the line of latitude and longitude values don't change much in these examples due to the unit organism stationary). Some files contain the minimum header and footer data required past GPS Viewer and Google Earth pro to display a simple black line exhibit the path taken:

The KML register:

The GPX file:

Be the First to Share

Recommendations