GPS speedometer and clock
A bike or car speedometer that needs no wheel sensor: satellites do the measuring.
Shop by category
Shop all componentsElecrow's Crowtail A7670E module has a SIMCom A7670E LTE Cat-1 modem with a built-in GNSS receiver. An ESP32 talks to it over UART with AT commands. The sketch turns on GNSS, reads the position, and when the button is pressed sends an SMS with a Google Maps link. It is the core of a vehicle or bag tracker.
Only track people or vehicles with their consent.
Tick anything you already have and the total updates.
Elecrow Crowtail-4G A7670E module with GPS
Follow the colours: red is power, dark grey is ground, blue is a signal.
5 V 2 A USB supply into the ESP32; the modem draws bursts of current when transmitting.
gps_sms.inoVerify & upload in Electrolark#define PHONE "+91XXXXXXXXXX"
HardwareSerial modem(2);
String lastFix = "";
String at(const String& cmd, unsigned long wait = 1000) {
modem.println(cmd);
unsigned long t = millis(); String r;
while (millis() - t < wait) while (modem.available()) r += (char)modem.read();
Serial.print(r);
return r;
}
// +CGNSSINFO: mode,gps,glo,bds,gal,lat,N/S,lon,E/W,...
String parseFix(const String& r) {
int p = r.indexOf("+CGNSSINFO:");
if (p < 0) return "";
String f = r.substring(p + 11); f.trim();
String v[10]; int n = 0, s = 0;
for (int i = 0; i <= (int)f.length() && n < 10; i++)
if (i == (int)f.length() || f[i] == ',') { v[n++] = f.substring(s, i); s = i + 1; }
if (n < 9 || v[5].length() == 0) return "";
String lat = (v[6] == "S" ? "-" : "") + v[5];
String lon = (v[8] == "W" ? "-" : "") + v[7];
return lat + "," + lon;
}
void setup() {
Serial.begin(115200);
modem.begin(115200, SERIAL_8N1, 16, 17);
pinMode(4, INPUT_PULLUP);
delay(5000);
at("AT"); at("AT+CMGF=1"); at("AT+CGNSSPWR=1", 3000);
}
void loop() {
static unsigned long t = 0;
if (millis() - t > 10000) { t = millis(); String f = parseFix(at("AT+CGNSSINFO")); if (f.length()) lastFix = f; }
if (digitalRead(4) == LOW) {
String msg = lastFix.length() ? "Tracker here: https://maps.google.com/?q=" + lastFix : "Tracker: no GPS fix yet";
modem.println("AT+CMGS=\"" PHONE "\"");
delay(500);
modem.print(msg); modem.write(26);
delay(5000);
}
}
Check TX and RX are crossed and wait a few seconds after power-up.
Check the SIM has SMS credit and AT+CREG? shows it is registered.
GNSS has no fix yet; move the antenna to open sky.
It uses LTE bands B1, B3, B5 and B8, which Indian carriers use; check your SIM's coverage.
Yes, send on a timer instead of the button, or when a reed switch opens.
Yes, the modem also supports HTTP over its data connection.
5 parts: Elecrow Crowtail-4G SIM A7670E Module w/ GPS GLONASS BDS, ESP32-WROOM-32 38-Pin Development Board, Tactile Push Button Switch, Solderless Breadboard and Dupont Jumper Wires (40 pcs). On this page you can tick the parts you already have and add only the rest to your cart.
It is a intermediate project and takes about 2 hours. The build on this page has 6 steps.
No. This page has the complete, tested code (gps_sms.ino).
About ₹3,902 for the parts at the prices on this page. Quantity price breaks lower the cost when you build several.
Controlling a modem with AT commands; Reading GNSS position from a modem; Sending SMS from a microcontroller.
Only track people or vehicles with their consent.
A bike or car speedometer that needs no wheel sensor: satellites do the measuring.
Records where you went every five seconds, ready to open on a map.
Two boards, two radios: press the button at the gate and it rings indoors.
Check temperature, humidity and pressure from any phone on your Wi-Fi.
Lessons are free to read. Maker (₹499/month) and Pro add quizzes, worked problems and certificates, paid with your Geekobot account. See plans
Learning project. Check every circuit and the datasheet of each part before you power it up.