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
Materials:
Tools:
- Soldering iron
- Side cutting pliers
- Needle nose pliers
- Medium cross slot screwdriver
- thin solder wire
Software:
- 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
- Adafruit GFX Library https://github.com/adafruit/Adafruit-GFX-Library/...
- Adafruit ILI9341 Library https://github.com/adafruit/Adafruit_ILI9341
- XPT2046_Touchscreen by Paul Stoffregen https://github.com/adafruit/Adafruit_ILI9341
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
- ESP32 https://github.com/HWHardsoft/ArduiTouch-Codelock...
- ESP8266 https://github.com/HWHardsoft/ArduiTouch-Codelock...
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.
4 Comments
3 years ago on Step 4
Nice instructable but there is no such thing as "ESP32 NodeMcu". There are only two NodeMCU development boards, both with ESP8266: 0.9 aka V1 and 1.0 aka V2. See https://frightanic.com/iot/comparison-of-esp8266-nodemcu-development-boards/ by yours truly for details.
Reply 3 years ago
the official name is NodeMCU-32S:
http://www.logicware.com.au/assets/alt_1/IF_844058D5.jpg?1561526738
Reply 3 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 http://wiki.ai-thinker.com/_media/esp32/docs/nodemcu-32s_product_specification.pdf uses the NodeMCU logo and name. However, whether that is a pretty brazen copyright violation or whether they obtained usage rights is unclear.
Reply 3 years ago
hi,
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 ;-)
BR
Hartmut