Every weekend, Lao Jin plays single-player games with his two kids. One day, a thought crossed his mind to use a chip to create a simulated joystick with his daughter.
He first gave his daughter a brief introduction to the names of the components: ESP32 chip, dual-axis XY sensor module, button module, breadboard.
Popularizing the pin configuration of the ESP32 needed for this project.
Connecting the XY dual-axis sensor module to the ESP32 for power supply.
After initializing serial communication, use print to send numbers to the computer.
Effect of opening the serial port. (The dual-axis sensor contains two potentiometers that detect movement along the X and Y axes.)
With the groundwork laid, the wiring of the three modules begins. Despite the tedious circuit assembly, his daughter managed to stay patient and listen attentively. The wiring process was filled with mistakes, but that’s okay. Learning is all about trial and error.
A quick look at the progress.