GPS speedometer and clock
A bike or car speedometer that needs no wheel sensor: satellites do the measuring.
Shop by category
Shop all componentsThe T-Call puts an ESP32 and a SIM800L 2G modem on one board with a battery power chip. It works where there is mobile coverage but no Wi-Fi, such as a godown or farm shed. A reed switch on the door changes state when the magnet moves away. The ESP32 powers up the modem with its control pins, waits for the network and uses the TinyGSM library to send an SMS.
Tick anything you already have and the total updates.
LilyGO T-Call ESP32 SIM800L with antenna
Reed switches with magnets
Follow the colours: red is power, dark grey is ground, blue is a signal.
5 V USB with the 18650 as backup; the modem draws 2 A peaks when transmitting.
door_sms.inoVerify & upload in Electrolark#define TINY_GSM_MODEM_SIM800
#include <TinyGsmClient.h>
#include <Wire.h>
#define MODEM_PWKEY 4
#define MODEM_RST 5
#define MODEM_POWER_ON 23
#define MODEM_TX 27
#define MODEM_RX 26
const char PHONE[] = "+91XXXXXXXXXX";
TinyGsm modem(Serial1);
bool wasOpen = false;
void setup() {
Serial.begin(115200);
pinMode(13, INPUT_PULLUP);
Wire.begin(21, 22); // keep the IP5306 power chip on under load
Wire.beginTransmission(0x75); Wire.write(0x00); Wire.write(0x37); Wire.endTransmission();
pinMode(MODEM_PWKEY, OUTPUT); pinMode(MODEM_RST, OUTPUT); pinMode(MODEM_POWER_ON, OUTPUT);
digitalWrite(MODEM_PWKEY, LOW); digitalWrite(MODEM_RST, HIGH); digitalWrite(MODEM_POWER_ON, HIGH);
Serial1.begin(115200, SERIAL_8N1, MODEM_RX, MODEM_TX);
delay(3000);
modem.restart();
Serial.println(modem.waitForNetwork(60000) ? "Network OK" : "No network");
}
void loop() {
bool open = digitalRead(13) == HIGH; // magnet away
if (open && !wasOpen) {
delay(2000); // still open after 2 s?
if (digitalRead(13) == HIGH) modem.sendSMS(PHONE, "Door opened");
}
wasOpen = open;
delay(100);
}
The SIM's network has no 2G here, or the SIM needs its PIN removed in a phone first.
The supply cannot give 2 A peaks; use a good adapter and the 18650.
Increase the 2 s check or move the magnet closer.
Some networks still run 2G; check coverage with a basic phone before installing.
Yes, TinyGSM can dial a number with callNumber().
No, it uses only the mobile network.
6 parts: LilyGO T-Call ESP32 SIM800L 2G Module w/ PMU & Antenna, Generic Reed Switch 2×14mm Normally Open Magnetic Sensor (Pack of 10), 18650 Li-ion Rechargeable Cell, 18650 Battery Holder, 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-3 hours. The build on this page has 6 steps.
No. This page has the complete, tested code (door_sms.ino).
About ₹3,375 for the parts at the prices on this page. Quantity price breaks lower the cost when you build several.
Controlling a GSM modem with AT commands through a library; Modem power sequencing; Debouncing a door switch.
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.