GPS speedometer and clock
A bike or car speedometer that needs no wheel sensor: satellites do the measuring.
Shop by category
Shop all componentsA cheap RC522 reader and an ESP32 make a classroom or workshop attendance logger. When a card is tapped, the ESP32 sends its UID to a small Google Apps Script web app you create, and the script adds a row with the date and time. A buzzer beeps to confirm. The Apps Script and the sheet are free. You can map UIDs to names in a second sheet tab.
Tell students and staff that attendance is being logged.
Tick anything you already have and the total updates.
Follow the colours: red is power, dark grey is ground, blue is a signal.
USB phone charger. The RC522 runs from 3.3 V only.
rfid_sheet.inoVerify & upload in Electrolark#include <WiFi.h>
#include <HTTPClient.h>
#include <WiFiClientSecure.h>
#include <SPI.h>
#include <MFRC522.h>
const char* WIFI_NAME = "YOUR_WIFI";
const char* WIFI_PASS = "YOUR_PASSWORD";
String SCRIPT_URL = "https://script.google.com/macros/s/YOUR_ID/exec";
const int SS_PIN = 5, RST_PIN = 22, BUZZ = 25;
MFRC522 rfid(SS_PIN, RST_PIN);
void beep(int ms) { digitalWrite(BUZZ, HIGH); delay(ms); digitalWrite(BUZZ, LOW); }
void setup() {
Serial.begin(115200);
pinMode(BUZZ, OUTPUT);
SPI.begin();
rfid.PCD_Init();
WiFi.begin(WIFI_NAME, WIFI_PASS);
while (WiFi.status() != WL_CONNECTED) delay(300);
Serial.println("Ready: tap a card");
}
void loop() {
if (!rfid.PICC_IsNewCardPresent() || !rfid.PICC_ReadCardSerial()) return;
String uid = "";
for (byte i = 0; i < rfid.uid.size; i++) {
if (rfid.uid.uidByte[i] < 0x10) uid += "0";
uid += String(rfid.uid.uidByte[i], HEX);
}
uid.toUpperCase();
WiFiClientSecure client;
client.setInsecure(); // fine for a hobby logger; pin the certificate for anything sensitive
HTTPClient http;
http.setFollowRedirects(HTTPC_STRICT_FOLLOW_REDIRECTS);
http.begin(client, SCRIPT_URL + "?uid=" + uid);
int code = http.GET();
Serial.printf("%s -> HTTP %d\n", uid.c_str(), code);
http.end();
if (code == 200) beep(150); else { beep(80); delay(80); beep(80); }
rfid.PICC_HaltA();
delay(1500);
}
apps_script.gsfunction doGet(e) {
var sheet = SpreadsheetApp.getActiveSpreadsheet().getActiveSheet();
sheet.appendRow([new Date(), e.parameter.uid || "unknown"]);
return ContentService.createTextOutput("ok");
}
Check that the web app is deployed with access set to Anyone and that SCRIPT_URL is the /exec address.
Check the 3.3 V supply and the SPI wiring. The RC522 is not 5 V tolerant.
Keep the card away after the beep. The 1.5 second delay stops most repeats.
Yes. Add a second tab with UID and Name columns and use a lookup formula in the log tab.
Yes. A normal Google account is enough for the sheet and the Apps Script.
Basic MIFARE cards are not secure. Use this for attendance, not for access to anything valuable.
5 parts: ESP32-WROOM-32 38-Pin Development Board, RC522 RFID Reader Writer SPI Module with Card & Tag, Buzzer Module 3.3–5V, 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 (rfid_sheet.ino and apps_script.gs).
About ₹544 for the parts at the prices on this page. Quantity price breaks lower the cost when you build several.
Reading card UIDs with the MFRC522 library over SPI; Making an HTTPS request from an ESP32; Receiving data with a Google Apps Script web app.
Tell students and staff that attendance is being logged.
Ideas that reuse this build: RFID card attendance logger. They are listed under Take it further on this page.
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.
Learning project. Check every circuit and the datasheet of each part before you power it up.