ESP32 Codelock With Touchscreen

Introduction: ESP32 Codelock With Touchscreen

A lot of people asked me for a very simple code example for ArduiTouch to test their work and also as starting point for own developments. This very simple codelock will demonstrate the basic functions of Arduitouch without any bells and whistles and can be extended with additional features of your choice...

Step 1: Tools & Materials



  • Soldering iron
  • Side cutting pliers
  • Needle nose pliers
  • Medium cross slot screwdriver
  • thin solder wire


  • Arduino IDE

Step 2: Assembly of Arduitouch

Please follow the attached assembly instruction for the assembly of the ArduiTouch kit.

Step 3: Installation of Additional Libraries

Install the following libraries through Arduino Library Manager

You can also download the library also directly as ZIP file and uncompress the folder under yourarduinosketchfolder/libraries/

After installing the Adafruit libraries, restart the Arduino IDE.

Step 4: Source Code

You will find the latest version of the source code on Github

In the source code you can set the code number :
#define codenum 42

(of course 42 is the answer for everything, but you can change this to any number between 0 and 999999.)

Step 5: Run the Demo

Please open this sample in the Arduino IDE. After compilation and upload you will see the keypad. Now you can enter a code number and confirm with „OK“ button.

Be the First to Share


    • Make It Modular: Student Design Challenge

      Make It Modular: Student Design Challenge
    • Home and Garden Contest

      Home and Garden Contest
    • Origami Speed Challenge

      Origami Speed Challenge



    Reply 2 years ago

    I'm not critizing you I'm only trying to bring awareness to the fact that there are so many unofficial/cloned/fake "NodeMCU" boards out there. Much of what happens in China will remain forever foggy for us.
    The official spec sheet uses the NodeMCU logo and name. However, whether that is a pretty brazen copyright violation or whether they obtained usage rights is unclear.


    Reply 2 years ago

    thx for this information. it was new for me that "NodeMCU" is a brand. I was thinking this is only a description for ESP8266 and ESP32 modules in the same form factor...
    (because so many modules called "NodeMCU" are on the market ;-)