Logic Labs Consulting

Our Work

Smart RFID Card Scanner

3D render of the Smart RFID Scanner circuit board with its square printed antenna at the top and the electronics below

How we designed a wall-mounted RFID attendance reader from the antenna up: a custom board and a firmware pipeline that publishes card taps to AWS IoT.

  • IoT Hardware
  • RFID
  • Cloud Connected

Overview

The Smart RFID Card Scanner is a small Wi-Fi reader that sends the ID of an RFID card to the cloud the moment it is tapped. The idea is simple: an ESP32 controller reads a card and publishes the result online. We built it to give another system online attendance, so a student taps a card on arrival and the attendance platform records it.

The same reader works for any job that starts with "who just tapped, and when". Door access, equipment sign-out, event check-in and time tracking all need the same three steps: read a card, send it to the cloud, show the user an answer.

Angled 3D render of the Smart RFID Scanner board showing the printed loop antenna, the reader chip, the power section and the USB-C edge
The rev 2.0 board: antenna on top, electronics below, USB-C on the bottom edge

The Brief

The reader had to suit a classroom wall or a front desk, so the requirements were practical:

  • Simple to use. One tap, one light. A single RGB LED shows whether the tap was accepted.
  • Cheap to install. Power comes from a standard USB-C 5 V supply, and Wi-Fi is the only network connection.
  • Reliable over time. The reader runs unattended for years, so it has to recover from dropped Wi-Fi and stay secure.
  • Easy to build in volume. Single-sided assembly, with parts that the board manufacturer keeps in stock.

System Architecture

A tap travels through four stages.

  1. Reader. An HX522-Q reader chip, a pin-compatible equivalent of the NXP MFRC522, drives the antenna at 13.56 MHz and reads the card's unique ID. It supports the common ISO/IEC 14443A cards: MIFARE Classic, MIFARE Ultralight and NTAG.
  2. Controller. An ESP32-S3 module collects the ID over I2C and runs the application on FreeRTOS.
  3. Cloud link. The ESP32-S3 connects to AWS IoT Core over Wi-Fi with encrypted MQTT and publishes the tap together with the site and classroom it belongs to.
  4. Answer. The cloud checks the tap and replies. The reader flashes green for an accepted tap and red for a rejected one.

Behind the reader sits a cloud backend that stores each attendance event and exposes it to the attendance platform through an authenticated API.

The Board

The board is 60 × 90 mm and uses two copper layers. The top 48 mm holds the antenna and the bottom 42 mm holds the electronics, with the USB-C connector centred on the bottom edge. The layout keeps the electronics clear of the antenna.

Top-down 3D render of the Smart RFID Scanner board: a four-turn rectangular antenna above the reader chip, power regulator, USB-C edge and ESP32-S3 module footprint
Top view of the board. The ESP32-S3 module and the USB-C receptacle are shown as footprints only

Designing the Antenna

The antenna is the part of an RFID reader that decides whether it feels good or frustrating. Ours is a rectangular loop etched into the board itself, so it costs nothing extra to make. We designed it as a modelled and simulated RF system, not a copied reference layout.

In simulation the design reads a card at around 4 cm in free air and holds a useful range through a plastic enclosure lid. Early pre-compliance estimates put its emissions well inside the FCC and ETSI limits. These are simulated results, and formal testing on real hardware will confirm them.

Firmware

The firmware runs on ESP-IDF and FreeRTOS. A dedicated task handles card taps, so reading cards never competes with Wi-Fi, updates or provisioning.

  • Interrupt-driven reads. The reader chip raises an interrupt when a card enters the field. The interrupt handler only passes the card ID to a queue, and a task does the rest.
  • Debounce. A card that was just accepted is ignored for a few seconds, so a hand resting on the reader doesn't create duplicate records. A rejected card can be tapped again straight away.
  • Honest offline behaviour. If the reader isn't connected to the cloud, it drops the tap and does not queue it. An attendance system should never silently record a tap with the wrong time.
  • Response timeout. If no answer arrives in time, the tap counts as rejected and the LED flashes red.
  • Memory-aware. The debounce table lives in the module's external RAM. If that memory ever fails to initialise, the firmware falls back to a smaller table, reports the degraded mode to the cloud and blips the LED red so the fault is visible on the wall.
  • Easy setup. A mobile app sends the Wi-Fi details and the site and classroom assignment to the reader over Bluetooth, and the reader stores them.

Cloud Backend

Each tap is published over MQTT with the site and classroom. A serverless function adds the time, the reader's serial number and the site, and checks the card with the attendance platform. The reply goes back to the reader and the result appears on its LED.

The backend is defined as code, so changes can be reviewed and moved from a development account to production without manual console work. Attendance records are stored in a database, and an authenticated API gives the attendance platform read access to them.

Engineering Challenges

  • RF on a compact, low-cost board. The antenna, a 13.56 MHz reader and a Wi-Fi radio share one small board, and they must not disturb each other.
  • Unattended reliability. The reader must recover on its own from dropped Wi-Fi, bad taps and slow cloud responses.
  • Security after deployment. Units on a wall are physically reachable, so security is designed in from the start.
  • Manufacturability. The board is designed for single-sided assembly and checks cleanly against the manufacturer's rules.

Where It Stands

The rev 2.0 board is fully designed, and its manufacturing files, parts list and 3D model are generated. The schematic and layout pass their automated checks and all 17 simulation checks pass. A few parts are still being confirmed with the supplier before the first order. About 70 % of the firmware was already working before this revision.

Next come the first prototypes: measuring and tuning the antenna, confirming the read range through a real enclosure, completing the firmware and sending the product for pre-compliance testing.

Why It Matters

Online attendance needs hardware that people trust to work every time. A reader that sends a card tap to the cloud, shows a clear answer and survives years on a wall depends on getting the antenna, power, firmware and security right together.

The platform is not tied to attendance. Because the reader publishes standard cloud messages, the same hardware can serve access control, asset tracking or check-in, with only the cloud logic changing.

Frequently Asked Questions

What cards does the reader support?

It reads ISO/IEC 14443A cards at 13.56 MHz, including MIFARE Classic, MIFARE Ultralight and NTAG tags and cards.

How does the reader get its data to the cloud?

An ESP32-S3 reads the card ID from the reader chip and publishes it over Wi-Fi to AWS IoT Core using encrypted MQTT.

What happens if Wi-Fi is down?

The reader drops the tap rather than storing it, so no attendance record is created with the wrong time. The LED shows the connection state.

Can the reader be used for something other than attendance?

Yes. Access control, asset tracking, event check-in and time tracking all use the same card-tap flow, and only the cloud logic needs to change.

Can Logic Labs Consulting build a connected device like this?

Yes. We design the electronics, firmware and cloud backend together, from first prototype to production. Get in touch to discuss your project, or see our embedded systems services.

Have a Project in Mind?

Let's bring your vision to life with our expertise

Get Started