Skip to content

KD-MM2/ESP32-HWOTP

Repository files navigation

ESP32-HWOTP

ESP32 Hardware OTP (Generator)

Overview

ESP32-HWOTP is a hardware-based One-Time Password (OTP) generator built on the ESP32 platform. It features a color LCD, trackball navigation, and real-time clock, supporting multiple OTP apps and Wi-Fi configuration.

Components

  • ESP32-WROVER (Recommended: 16MB FLASH / 4MB or 8MB PSRAM)
  • ST7789(V) SPI LCD (135x240)
  • BB Arduino Trackball
  • DS3231 RTC
  • 3.7v battery
  • DC-DC Buck converter, charger, etc.

Features

  • Multiple time-based OTP apps
  • App selection via trackball
  • Add new OTP secrets via Wi-Fi
  • Update RTC time via Wi-Fi

Project Structure

  • src/ - Main source code (core logic, network, storage, UI)
  • data/ - Database and web assets for Wi-Fi configuration
  • assets/ - Hardware reference images and prototype photos
  • prototype/ - PCB schematics and designs (EasyEDA format)
  • include/, lib/ - Additional headers and libraries
  • platformio.ini - PlatformIO build configuration

Getting Started

  1. Hardware Setup: Assemble ESP32-WROVER, LCD, trackball, RTC, and power components.
  2. PCB Design: Use the provided EasyEDA files in prototype/ folder for PCB fabrication.
  3. Software Build: Use PlatformIO to build and upload firmware.
  4. Wi-Fi Configuration: Connect to device AP, access web UI to add OTP secrets and set RTC time.

PCB Design Files

The prototype/ folder contains:

  • Schematic: 1-Schematic_ESP32-HW-OTP-NEW.json - Circuit schematic in EasyEDA format
  • PCB Layout: 1-PCB_PCB_ESP32-HW-OTP-NEW.json - PCB design in EasyEDA format

To open these files:

  1. Go to EasyEDA Editor
  2. File → Open → EasyEDA...
  3. Select the JSON file to import the design

Usage

  • Use the trackball to select OTP apps.
  • Add new secrets and update time via the built-in Wi-Fi web interface.

Images

Component References

ESP32-WROVER LCD Front LCD Back Trackball RTC

Prototype Images

Prototype 1 Prototype 2 Prototype 3 Prototype 4 Prototype 5 Prototype 6 Prototype 7

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages