Wi-Fi touch sensor
When shipped from the factory, Arduino sketches are written on the ESP32 MCU leaf, so the touch sensor values can be sent via Wi-Fi from a smartphone or PC, and the display will appear.
Leaf to use
Use the following leaves.
|AX07||Back to back||1|
|AAA battery holder||1|
Assemble the leaves as shown in the figure below.
Refer to the figure below for the pin assignment of each leaf.
The sketch to be used can be found in the GitHub repository below.
Leafony/Sample-Sketches/ESP32_AP_Touch - GitHub
- Insert the batteries into the AAA battery box and turn on the ESP32 leaf power switch.
- Connect to the following Wi-Fi with your PC or smartphone
- SSID: Leafony_ESP32-AP
- Password: password
- Launch a web browser on your PC or smartphone and go to http://192.168.4.1.
- Pins 7, 9, 22, 24, 26, and 28 of the 29-pin header are assigned to the touch sensor.
When the pin is touched, the capacitance decreases and the value decreases. When the value falls below the threshold of 20, “Touch detected” is displayed.
(Pin 24 is hidden in the sample sketch because it interferes with the RTC & microSD. The detection threshold can be changed in the sketch. In the following picture, I am touching pin 26 with my fingertip.)
- When you touch pin 26, the browser display will change as shown below.
Last modified 15.03.2021