Skip to content
ショップ

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.

Use the following leaves.

TypeNameQ’ty
AP02ESP32 MCU1
AV042V~4.5V1
AX07Back to back1
AX0829pin header1
AZ62Connector Cover 2
AZ63Nut Plate2
AAA battery holder1
AAA battery3
M2*15mm screw4
φ10x2mm magnet1

Assemble the leaves as shown in the figure below.

assemble1

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

  1. Insert the batteries into the AAA battery box and turn on the ESP32 leaf power switch.
  2. Connect to the following Wi-Fi with your PC or smartphone
    • SSID: Leafony_ESP32-AP
    • Password: password
  3. Launch a web browser on your PC or smartphone and go to http://192.168.4.1.
  4. 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.)

Wi-FiTouch-Sensor-Test_1-300x222.png


  1. When you touch pin 26, the browser display will change as shown below. 

Wi-FiTouch-Sensor-Test_2.png