Daniel Botchway

ProjectsFig. 04

Two-Step Attendance System

Lecturers lose time to attendance sheets, and a sheet cannot tell who actually signed it. During GlobalCode 2025, a three-week programming camp at the University of Ghana, my team built an attendance system that checks twice: a student taps their ID card, then a camera confirms it is really them before they are marked present. I set up the MQTT messaging and the Linux services that connect the devices.

Year
2025
Discipline
Embedded systems
Role
MQTT messaging and Linux services, in a team
Tools
Raspberry Pi 4, camera, RC522 RFID reader, facial recognition, Python (Flask), PostgreSQL, MQTT, Linux
Code
github.com/08ops/Biometric

Photographs

04Drag or use the arrows. Select the middle photograph to enlarge it.

Plate 01 / 04The two modules: the camera module in a junction box (left) and the ID module with the RC522 reader (right).

How to read this pageScroll and the drawing builds itself chapter by chapter. Underlined words point at parts. Drag the drawing to turn it.

01 / 07

Two steps to mark attendance

The system is two modules wired together. The ID module sits at the base, where a student taps their card. The camera module sits at eye level, so the same student is already facing it when the card is read. The stand here shows how the two are meant to be mounted; ours sat side by side on a desk.

02 / 07

The camera module

A Raspberry Pi 4 in a weatherproof junction box runs the system. Its camera looks out through a small hole in the lid, and a display behind the larger window tells the student what to do next. The cable down to the ID module carries the reader’s signals and power.

03 / 07

The ID module

The ID module is a card box with an RC522 RFID reader behind a window in the front. Inside, a perfboard carries the header for the reader and a buzzer that beeps once the attendance has been recorded, so the student knows they can walk on. Tapping a student ID is the first step, and it tells the system who the camera should expect to see.

04 / 07

Step one: the student ID

The student taps their card on the reader. The ID travels up the cable to the Pi, and the display asks the student to look at the camera. A card on its own only proves someone is holding it, so this step only says who to check for.

05 / 07

Step two: the face

The camera wakes and checks the student’s face against the person the card belongs to. Only when both match is the student marked present: the Pi sends the card’s ID and a live photo to the attendance server, which stores the record against the session that is running, and the buzzer in the ID module beeps to tell the student it is done. A borrowed card is no longer enough to sign in for a friend.

06 / 07

The lecturer’s side

Behind the kiosk is a small web app. The lecturer starts a session with a course code, presses Begin Attendance, and watches each student appear in the log with the time, their card and their registration number. Students, sessions and attendance live in a PostgreSQL database; each record keeps the live photo, and a student can only be marked once per session. Commands reach the Pi over MQTT.

07 / 07

Parts list

Every part in the drawing. Hover a row to find it.

No.PartSpecificationQty
1Raspberry Pi 4In its case; face recognition and the attendance service1
2CameraOn a ribbon cable, behind a hole in the lid1
3DisplayPrompts behind the lid window1
4Junction boxIP64, holds the camera module1
5RC522 RFID readerReads the student ID cards1
6Perfboard with buzzerReader header; the buzzer beeps when attendance is recorded1
7Card boxHolds the ID module1
8CableJoins the two modules1
9StandDrawn to show the intended mounting1

Specifications

Step oneStudent ID card on an RC522 RFID reader
Step twoFace check with a camera on a Raspberry Pi 4
DashboardFlask web app: start and end a session by course code, begin attendance, watch the log
RecordsPostgreSQL: students with their card UID and photo, sessions, and one attendance record per student per session with the live photo
MessagingMQTT commands to the Pi (topic attend/cmd/<pi-id>), with Linux services on the Pi
ConfirmationThe ID module’s buzzer beeps once attendance is recorded
ModulesCamera module (junction box) and ID module (card box), wired together
Built atGlobalCode 2025, University of Ghana, 15 September – 3 October 2025

Outcome

In three weeks we went from an idea to a working prototype: tap a card, look at the camera, and the record appears in the lecturer’s log. Splitting the system into an ID module and a camera module kept each part simple, and the second step closes the obvious gap in card-only attendance, signing in for someone else.

Contact

Get in touch

I welcome conversations about internships, research collaborations and robotics competitions.

botchwaydanielkwekudade@gmail.com

LinkedInGitHub

Phone
+233 53 808 0342
Location
Accra, Ghana