Is there a way to reduce the sensitivity of the touch sensor? Either by software or hardware?
This is the test code I'm using:
Code: Select all
#include <esp_adc_cal.h>
const int touchSensor = 32; //pin number
const int touchThresh = 5; //was 15
void setup()
{
Serial.begin(115200);
}
void loop()
{
Serial.print("Touch: ");
if (touchRead(touchSensor) < touchThresh) {
Serial.print("yes");
}
else {
Serial.print("no");
}
Serial.print(" touch value: ");
Serial.println(touchRead(touchSensor));
delay(100);
}
All the best,
Dax.