Built by Johan JoeThomas

Touchpad Password-Protected Device Using Python STEM Board

Help your child build this too
Student project

The maker

Johan JoeThomas

I am a 6th grader from California and I love to read and code.

About the Project:

Have you ever thought of having your own digital locker to protect the things you treasure? Like a digital locker for your treasure box, yes, it’s possible! When you enter the correct password in the digital locker’s touchpad, the box gets opened; otherwise, it’s kept closed, and your things are safe.

You could build a digital locker using a Python STEM Board, which has a cool touchpad LED screen and more,  this board could be programmed using Micro-Python.

You can also enhance the locker by adding lights and sound effects and you could even set an alarm for entering the wrong password!

Components Needed

  1. ESP-WROOM-32 dual-core Python Board (The main component we will use)
  2. USB cable (For connecting it to the computer)
  3. Computer (For coding)
  4. OLED screen (To show the output on the board)
  5. Touchpads (To enter the password)
  6. RGB LEDs and Buzzer (Optional, for light sound effects and alarm)

The Key Programming-Steps

1. Initialize:

2. Display Instructions:

3. Input Detection:

4. Password Attempts:

5. Feedback:

6. Optional Enhancements:

Python
Initialize mPython libraries

Initialize touchpads, OLED, RGB LEDs

Display instructions on OLED: "Enter your password" and "using Touchpad"

Define password as ["Y", "N", "P", "T", "H", "O"]

Set i to 0 (index of password)

While i < 6:

    Check if any touchpad is pressed

    If touchpad pressed, compare input with the password at position i

        If wrong, exit loop (wrong password)

    If correct, increment i

    Wait for 1 second

If i < 6 (wrong password):

    Set RGB LEDs to red

    Display "WRONG PASSWORD" on OLED

Else (password correct):

    Set RGB LEDs to yellow

    Display "Device unlocked!!!" on OLED

Live 1:1 classes

Your child can build projects like this

Expert instructors guide kids through real coding, AI, and robotics projects — not worksheets.

Book a free trial class

Online coding, AI, and robotics classes that help kids ages 6–18 build real skills — and confidence — one project at a time.

Book a Free Trial

No commitment · Live class with an expert teacher

© ItsMyBot 2026. All Rights Reserved.