I didn't want my first ESP32 project to be boring, so I built an unlock key for my Windows PC
I now press a button instead of typing my password
Embarking on his ESP32 journey, the narrator sought a project that was both entertaining and practical. Instead of opting for typical beginner projects like a weather station or a simple server, he desired a creation that would serve him daily. Upon verifying that his newly acquired ESP32-S3 was functional, he decided to leverage it to unlock his Windows PC.
Among various methods available, he chose the most straightforward approach – programming the ESP32 to automatically input his Windows password upon pressing the BOOT button. This method, while less advanced, seemed ideal given his inexperience with the hobby.
To get started, he installed the Arduino IDE on his Windows computer and searched for a pre-existing code snippet to assist him. However, the closest example available, the KeyboardMessage example, did not perfectly align with his requirements. Undeterred, he turned to an AI chatbot, Gemini, for assistance. Gemini swiftly generated a suitable sketch that he integrated into the Arduino IDE.
The project required the ESP32 to be connected via the USB port in USB-OTG mode. Once configured, he customized the password line with his lock screen credentials and uploaded the final sketch to the board. Subsequently, he tested the project by locking his screen and pressing the BOOT button, successfully unlocking his PC within a second.
While he initially intended to use cryptographic methods for enhanced security, he ultimately decided to store his password in plaintext on the ESP32. Nonetheless, this project proved to be a valuable learning experience, introducing him to fundamental aspects of the ESP32 and its functions. Despite its simplicity, the project effectively addressed a daily inconvenience and opened doors to more complex projects in the future.
The narrator found satisfaction in solving a practical problem with a microcontroller, even if it was a basic endeavor. His enthusiasm for ESP32 projects remained undiminished, as he continued to explore more advanced applications.
Rewritten by urgent.news; may contain errors — check the original.
Source: xda-developers.com