ESP32 Touch

Posts: 7
Joined: Mon Aug 28, 2017 1:42 am

ESP32 Touch

Postby harishjp » Mon Aug 28, 2017 8:17 am


I tried using esp32 touch sensors and have a few problems. I tried following the instructions in the esp32 datasheet: Appendix A - Touch Sensor. The diagram shows a capacitor b/w ground and esp32 pin. But as soon as I add a capacitor the system immediately registers a touch? Is there any documentation on what the value of capacitor should be? Is that diagram even correct?

I also noticed that the sensitivity is really low. You have to really touch and press for this to activate. And it does not work well at a few mm distance. Most online touch hacks are really using touch on an electrode which is separated by a small dielectric like a tape and no capacitor. Has anyone tried to do this at 3-5mm distance? I want to add a glass/fibre panel and use touch from that.

The documentation also tells not to have any components below and near the electrodes. I want to use an led to indicate the status of of the touch switch. Preferably as a circular led light. Is this possible?

Last edited by harishjp on Mon Aug 28, 2017 11:28 pm, edited 1 time in total.

Posts: 60
Joined: Thu Dec 10, 2015 1:11 pm

Re: ESP32 Touch

Postby Franco » Mon Aug 28, 2017 5:50 pm

The touch sensors must be covered by an insulator (forming the capacitor dielectric). In general this is the plastic cover of the front panel, with the PCB and the electrodes right behind. If you cannot stick the PCB behind the panel, you can use springs. I think I have a nice document about capacitive sensors design, if I retrieve it I will send you a link to my cloud storage.

Posts: 7
Joined: Mon Aug 28, 2017 1:42 am

Re: ESP32 Touch

Postby harishjp » Mon Aug 28, 2017 11:48 pm

Thanks Franco. The design doc for capacitive sensor design would be much appreciated.

Posts: 5
Joined: Wed May 08, 2019 2:11 pm

Re: ESP32 Touch

Postby giordanocm » Wed May 08, 2019 2:16 pm

Good morning, friends.

I have been looking for the same info: the touch sensor capacitance. Is there any docs from Espressif that tells us this information? Actually, is there any internal capacitor for the touch sensor hardware? Does it do hardware-calibration?

Thanks in advance.

Posts: 9
Joined: Mon Nov 18, 2019 5:55 pm

Re: ESP32 Touch

Postby j4e8a16n » Thu Nov 21, 2019 9:06 pm

Arduino 1.8.10; Windows 10; ESP32 VROOM

Who is online

Users browsing this forum: No registered users and 61 guests