All paths

Build a smart lock

A keypad with a constant-time check, RFID, a fingerprint, a relay-driven bolt, an EEPROM log and a three-factor door, with honest security notes.

Arduino Uno R3Free6 lessons5 h2 chapters1,511 XPMaker · Intermediate+150 XP

0 of 6 done

Start the course freeKeypad codesBuild it as a kitRetails for about $48, free on Mokxi.Lesson plan for teachers
What you will build

2 projects, built step by step

6 lessons in 2 chapters, about 5 hours on a simulated Arduino Uno R3. Free, in your browser, every step checked by the simulator.

Chapter 1 project

Fingerprint

Let an R30x fingerprint sensor match a finger against its own library, and open for enrolled fingers only.

Open it in the simulator
Chapter 2 project

Project: a three-factor door

Demand something you have, something you are and something you know, in order and in time, with the log and the lockout behind them.

Open it in the simulator
The map

Chapter by chapter

Each lesson opens when the one before it is done, and each chapter ends in a project.

Chapter 1

Ways in

A code, a latch, a card and a finger, each on its own.

  1. Open205 XP

    Keypad codes

    Take a code from a 4x3 keypad without echoing it, and compare it in constant time so the timing of a wrong guess gives nothing away.

    0 of 5 steps

  2. Locked174 XP

    The latch

    Switch a 12 V solenoid bolt through a relay for three seconds on the right code, and see why fail secure and fail safe are different promises.

    0 of 4 steps

  3. Locked174 XP

    RFID cards

    Read MIFARE card UIDs with an MFRC522, open for the one on the list, and learn why a UID on its own is a name, not a password.

    0 of 4 steps

  4. ProjectLocked348 XP

    Fingerprint

    Let an R30x fingerprint sensor match a finger against its own library, and open for enrolled fingers only.

    0 of 4 steps

4 questions, graded as you go.
Chapter 2

A door

Logs, lockouts and three factors together.

  1. Locked174 XP

    Logs and lockout

    Lock out three wrong codes in a row, for longer each time, and keep a ring of the last 16 events in EEPROM that survives the power going off.

    0 of 4 steps

  2. ProjectLocked436 XP

    Project: a three-factor door

    Demand something you have, something you are and something you know, in order and in time, with the log and the lockout behind them.

    0 of 6 steps

4 questions, graded as you go.
Syllabus

Every lesson in the course

All 6 lessons, in order, each with what it covers. Any of them opens in the editor right away.

Chapter 1

Ways in

  1. Keypad codesTake a code from a 4x3 keypad without echoing it, and compare it in constant time so the timing of a wrong guess gives nothing away.
  2. The latchSwitch a 12 V solenoid bolt through a relay for three seconds on the right code, and see why fail secure and fail safe are different promises.
  3. RFID cardsRead MIFARE card UIDs with an MFRC522, open for the one on the list, and learn why a UID on its own is a name, not a password.
  4. FingerprintLet an R30x fingerprint sensor match a finger against its own library, and open for enrolled fingers only.
Chapter 2

A door

  1. Logs and lockoutLock out three wrong codes in a row, for longer each time, and keep a ring of the last 16 events in EEPROM that survives the power going off.
  2. Project: a three-factor doorDemand something you have, something you are and something you know, in order and in time, with the log and the lockout behind them.
Keep going

The next course on your track

Build a smart lock is part of the maker track, a ladder of courses from zero to expert.

Next course

Build a space habitat controller

Keep a Mars crew alive on one Uno: CO2 and its scrubber, cabin pressure and leaks, an interlocked airlock and alarms that latch.

Open the next course
Track

Maker track

Follow the starter kit you already own, then build a claw machine, a balance bot, a handheld console or an LED cube, each a short course checked by the simulator.

See every course on the track
Kits

Build it on your bench too

Every lesson runs in the simulator with nothing to buy. When you want the real thing, these kits have the parts.

The kit for this course

Smart Lock Kit

An Uno, a keypad (4x3 telephone), an RFID reader (MFRC522), a fingerprint sensor (R30x / AS608) and a relay module: a door that opens only for you.

Open the kit
Have a kit already?

Find your kit

Pick the starter kit you own and run every lesson in its manual with the same parts on the same pins.

See every kit
Questions

About Build a smart lock

Is Build a smart lock free?

Yes. All 6 lessons of Build a smart lock are free and run in your browser, with nothing to install and no parts to buy before you start.

Do I need a real Arduino Uno R3?

No. Every lesson runs on a simulated Arduino Uno R3 with its parts on the canvas, and the simulator checks each step as you go. When you want to build it for real, the same wiring and code work on a real board.

How long does Build a smart lock take?

About 5 hours: 6 lessons in 2 chapters, each one a few short steps. Your progress is kept, so you can stop after any lesson and pick up where you left off.

What will I build?

Each chapter ends in a project that puts it together: Fingerprint and Project: a three-factor door.

Where do I start?

With "Keypad codes", and each lesson builds on the one before it. New to circuits? Electronics basics is the course that starts from zero.