GPS speedometer and clock
A bike or car speedometer that needs no wheel sensor: satellites do the measuring.
Shop by category
Shop all componentsA SIM800C board puts a quad-band 2G modem on a small PCB with a SIM holder. A Nano talks to it with plain AT commands over SoftwareSerial. When the HC-SR501 PIR detects someone, the Nano sounds a buzzer and sends 'Movement detected' by SMS, then waits a minute before it can alert again. It works anywhere with mobile coverage, which makes it useful for shops, farms and store rooms.
Tick anything you already have and the total updates.
SIM800C GSM/GPRS module with antenna
Follow the colours: red is power, dark grey is ground, blue is a signal.
5 V 2 A adapter for the SIM800C; the Nano can share it through its 5V pin.
sms_alarm.inoVerify & upload in Electrolark#include <SoftwareSerial.h>
SoftwareSerial gsm(10, 11); // RX, TX
const char* PHONE = "+91XXXXXXXXXX";
const int PIR = 2, BUZZER = 6;
unsigned long lastAlert = 0;
void at(const char* cmd, int wait = 500) { gsm.println(cmd); delay(wait); while (gsm.available()) Serial.write(gsm.read()); }
void sendSms(const char* text) {
at("AT+CMGF=1"); // text mode
gsm.print("AT+CMGS=\""); gsm.print(PHONE); gsm.println("\"");
delay(500);
gsm.print(text);
gsm.write(26); // Ctrl+Z sends
delay(5000);
}
void setup() {
Serial.begin(9600);
gsm.begin(9600);
pinMode(PIR, INPUT); pinMode(BUZZER, OUTPUT);
delay(15000); // let the module register
at("AT"); at("AT+CSQ"); at("AT+CREG?");
}
void loop() {
if (digitalRead(PIR) == HIGH && millis() - lastAlert > 60000UL) {
lastAlert = millis();
digitalWrite(BUZZER, HIGH);
sendSms("Movement detected at the store room");
delay(3000);
digitalWrite(BUZZER, LOW);
}
}
It needs up to 2 A in bursts; use a 5 V 2 A supply and short, thick wires.
No network: check 2G coverage, the antenna and that the SIM has no PIN.
Check the number format (+91...) and SMS balance; watch the replies in the serial monitor.
No, the SIM800C is 2G only; check that your operator still runs 2G in your area.
Yes, send ATD+91XXXXXXXXXX; to ring the phone.
Yes, door reed switches on spare pins can send their own messages.
7 parts: Generic Nano CH340 Development Board (Soldered), SIM800C GSM GPRS Module Development Board 5V/3.3V TTL w/ IPEX Antenna, HC-SR501 PIR Motion Detector Sensor Module, Buzzer Module 3.3–5V, DC Power Adapter (5.5x2.1mm), 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 7 steps.
No. This page has the complete, tested code (sms_alarm.ino).
About ₹979 for the parts at the prices on this page. Quantity price breaks lower the cost when you build several.
AT commands for SMS; Powering a GSM module: 2 A peaks; Debouncing alerts with a hold-off time.
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.