PunchKit (ESP32)

← Back to Projects

Created 07/13/26

A custom RFID employee time clock built from scratch on the ESP32, with an OLED screen and buzzer feedback.

  • C++
  • Arduino IDE
  • ESP32
  • RFID
  • Electronics

PunchKit is an experiment in creating my first useful electronics device, beyond simply learning how to make LEDs blink or buzzers go off.

I first delved into electronics in 2025, having picked up an Arduino kit and worked through examples in the book. I became intrigued and wanted to learn more. Eventually, I began to feel more confident that I could create something small; I just wasn’t sure what. At that time in the office where I worked, I noticed some recurring patterns in employees’ handwritten timesheets: missing entries, miscalculated hours, etc., and I thought this would be the perfect situation to help with.

Some years prior, I had suggested to my employer that we look into a timekeeping system, but the interest never really escalated. So I asked if I could try to come up with my own solution, which would be cheaper and (hopefully) just as efficient, and help me learn at the same time. They said yes, and that is how this project began.

The prototype is an ESP32 on a breadboard with an RC522 RFID reader, a small SSD1306 OLED screen, a DS3231 real-time clock, and a buzzer. Scanning a registered fob or card clocks that employee in or out based on their current status, and the screen shows their name, IN or OUT, and the time. Each result gets its own beep pattern, so it’s clear without looking whether a punch worked, came from the admin card, or came from an unknown card. A short cooldown keeps a single tap from punching twice. The clock stores UTC and converts to local time with one offset constant, so a daylight saving change is a one-line edit. I also reworked the buzzer, screen, and cooldown to use non-blocking timing, so the device stays responsive instead of freezing while a beep plays.

It’s still a work in progress, and the rest is planned. Punches will be saved to a database, or possibly synced to Google Sheets, instead of only being shown on screen. Fobs and cards will be registered and unregistered from the device, and the admin card will trigger a timesheet report on a small dashboard. Last comes an enclosure that keeps moisture out while still letting heat escape. It’s been a fun way to learn electronics, and it’s headed toward something the office can actually use.