|
|
nRF52840-QIAA-F-RNordic Semiconductor
|
x 1 | |
|
|
AT42QT1010-MAHRMicrochip Technology
|
x 1 |
|
KiCADKicad
|
DIY FIDO2 USB Security Key Using nRF52840 and OpenSK
Introduction
Build your own USB FIDO2 hardware security key using the Nordic nRF52840 microcontroller and Google's open-source OpenSK firmware!
This project demonstrates a compact USB security key that supports FIDO2 and WebAuthn authentication. It uses hardware-based cryptography to securely handle authentication credentials, providing an additional layer of protection against password theft and phishing attacks.
Read the complete project tutorial on Circuit Digest:
https://circuitdigest.com/videos/diy-fido2-security-key
Hardware Overview
The security key is built around the Nordic nRF52840, featuring an Arm Cortex-M4 processor, 1 MB Flash, 256 KB RAM, native USB connectivity, and CryptoCell-310 hardware cryptographic acceleration.
The custom hardware includes:
- Nordic nRF52840-QIAA microcontroller
- USB Type-C connector for host connectivity
- AT42QT1010 capacitive touch sensor for user presence detection
- SP0503BAHTG TVS diode for USB ESD protection
- 32 MHz Murata crystal
- RGB LED for status indication
- Tactile DFU button for firmware updates
The complete circuit is implemented on a compact 2-layer PCB measuring just 26.5 mm × 11 mm.
How It Works
The device runs a modified version of Google's OpenSK firmware, an open-source implementation of a FIDO2 security authenticator.
When connecting the security key to a compatible computer, it communicates through USB HID. During authentication, the nRF52840 handles the cryptographic operations locally, and the private credentials remain on the device.
A capacitive touch sensor provides physical user-presence confirmation, while the RGB LED indicates the device status.
Circuit Diagram of NRF52840 OpenSK

The Brain of the Circuit is this nordic nRF52840 microcontroller. This chip is responsible for everything the security key does. The USB-C connector J1 is used to connect our custom key to the computer. Right after J1, there's a SP0503BAHTG TVS diode used to protect the USB data and power lines from transient voltage spikes and ESD. Next, we have Y1, a 32 MHz crystal, sitting close to the microcontroller. The crystal provides the clock pulse to the NR52840, which is necessary for it to function when the clock source is selected as external. The load capacitors right next to Y1, C12 and C13, help it oscillate correctly. Spread across the board, you'll also see a bunch of small capacitors- those power-filtering capacitors, keeping the supply clean and stable so the chip always gets smooth, reliable power. Now here's the interesting part: instead of a normal push button for login approval, our design uses U2, the AT42QT1010 touch sensor chip. It connects to J2, which is the connector for the actual touch pad on the PCB. So instead of physically pressing a button to approve a login, we can simply touch the pad, and U2 detects it.
There's also SW1, a tactile push button on the board. It is used to put the board into DFU mode for firmware programming or updating. We have also included an RGB LED on the board for visual feedback.
PCB Design
The custom PCB is designed as a compact USB dongle with all the essential components arranged on a small two-layer board.
The design includes dedicated SWD programming access for initial bootloader installation. Subsequent firmware updates are supported through USB using the UF2 bootloader.

Firmware
The project uses Google's open-source OpenSK firmware, modified to work with the custom nRF52840 hardware and its peripherals.
The firmware supports FIDO2 authentication over USB HID and UF2-based firmware updates.
Project Files and Documentation
The complete project resources, including the circuit schematic, PCB Gerber files, BOM, firmware files, and detailed programming instructions, are available in the original Circuit Digest tutorial.
Full Tutorial and Downloads:
https://circuitdigest.com/videos/diy-fido2-security-key
Visit the original article for the complete step-by-step guide to building, programming, and testing this DIY FIDO2 security key.
Conclusion
This project is a practical demonstration of hardware-based authentication using an open-source firmware platform and a custom-designed PCB. It is also a great way to explore embedded USB development, cryptography, FIDO2 authentication, and compact PCB design.
Note: This is an experimental DIY implementation and is not a certified commercial security key.
DIY FIDO2 USB Security Key Using nRF52840 and OpenSK
Project images are for reference only. Actual production is based on the manufacturing files on the project page.
Please review the designer's notes (e.g., PCB thickness) and select the appropriate options.
PCBWay is not responsible
for issues caused by unsuitable parameter selections.
For more important ordering information, please refer to
Read More
Raspberry Pi 5 7 Inch Touch Screen IPS 1024x600 HD LCD HDMI-compatible Display for RPI 4B 3B+ OPI 5 AIDA64 PC Secondary Screen(Without Speaker)
BUY NOW- Comments(0)
- Likes(0)
- 0 USER VOTES
- YOUR VOTE 0.00 0.00
- 1
- 2
- 3
- 4
- 5
- 6
- 7
- 8
- 9
- 10
- 1
- 2
- 3
- 4
- 5
- 6
- 7
- 8
- 9
- 10
- 1
- 2
- 3
- 4
- 5
- 6
- 7
- 8
- 9
- 10
- 1
- 2
- 3
- 4
- 5
- 6
- 7
- 8
- 9
- 10
More by Jobit Joseph
-
DIY FIDO2 USB Security Key Using nRF52840 and OpenSK
IntroductionBuild your own USB FIDO2 hardware security key using the Nordic nRF52840 microcontroller...
-
How to build a Wearable Air Quality Monitor Pendant using STM32 & SGP40 Sensor
This DIY Wearable Air Quality Monitor Pendant is a compact, battery-powered device designed to conti...
-
Smart Digital Ludo Game Board with Multicolour PCB
Ludo, a beloved childhood game, holds a special place in our hearts with its simple and engaging gam...
-
Electronic Dice with BLE Connectivity
Many of us fondly remember the joy of playing board games like Snakes and Ladders or Ludo during our...
-
3D printed Enclosure Backplate for Riden RD60xx power supplies
3D printed Enclosure for Riden RD60xx power supplies such as RD6006, RD6012, RD6018, RD6024 and RD60...
-
3D printed Enclosure for Riden RD60xx power supplies
3D printed Enclosure for Riden RD60xx power supplies such as RD6006, RD6012, RD6018, RD6024 and RD60...
-
Suzuki Ignis Universal Armrest No Screw Adapter
I own a 2024 Suzuki Ignis. When I searched for an armrest for my car I couldn't find any domesticall...
-
Wireless Potentiostat for Electrochemical Analysis
This wireless potentiostat is based on the ADuCM355 SoC from Analog Devices, tailored for portable e...
-
160 Channel Configurable DAC Controller
The DAC controller board features 160 individually controllable 16-bit DAC output. It can output vol...
-
ESP32 IoT Water Flow Meter with Real-Time Monitoring
OverviewThis project demonstrates how to build a smart water flow meter using an ESP32 microcontroll...
-
DIY GSM GPS Location Tracker with Arduino
Project OverviewThis project demonstrates how to build a simple and reliable location tracking syste...
-
IoT GPS Tracker with NodeMCU and Google Maps
OverviewThis project demonstrates how to build an IoT-based GPS tracking system using a NodeMCU (ESP...
-
ESP32 Retro Game Console with OLED Display
OverviewThis project demonstrates how to build a compact, handheld retro gaming console using the ES...
-
High Power Boost Converter Using TL494
OverviewThis project demonstrates the design and implementation of a high-power, high-efficiency DC-...
-
DIY ESP32 Oscilloscope Project
OverviewThis project demonstrates how to build a simple and affordable oscilloscope using an ESP32. ...
-
ESP32 Desktop Weather Station
Project OverviewBuild a compact desktop weather station using an ESP32 that measures temperature, hu...
-
ESP32 Capacitive Touch Home Automation
OverviewMechanical switches wear out over time and can be prone to failure due to dust, moisture, or...
-
ESP32-Powered Smart Energy Meter for Real-Time Monitoring
ESP32-Powered Smart Energy Meter for Accurate Consumption TrackingIn modern electronics and IoT appl...
-
-
-
-
BorePilot - ESP32-S3 Smart Borewell Pump Controller
277 0 0 -
-
-
AudioLink – USB & Bluetooth LE Audio / Auracast Receiver with Balanced Line Outputs (nRF5340)
437 0 1 -
-
-
-
Émetteur Récepteur Optique Expérimental (communication UART ATtiny + fibre optique)
446 0 1 -







