Skip to content
Shop

Wi-Fi touch sensor

Explore with your favorite AI

Gemini & other AI

Copy this page’s context into your AI to explore how it works and what you can build.

Open Gemini

Copy the prompt, then paste it into Gemini’s message box.

View prompt

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 three AAA batteries into the ESP32 Wi-Fi Kit and turn on the power switch.
    Battery installation and power switch
  2. Search for nearby Wi-Fi networks on your PC, smartphone or tablet, and connect to the following network.
    • 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 increases and the value decreases. When the value is 20 or lower, “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.)

Touching pin 26


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

Wi-FiTouch-Sensor-Test_2.png


  1. The ESP32 Wi-Fi Kit has a magnet attached to its Nut Plate. Try mounting it on a metal wall or another metal surface.

    Magnet attached to the Nut Plate