Skip to content

Some sort of calibration for the touch pad on ESP32 for the Threshold value. #3956

Open
@mtabo

Description

@mtabo

Currently you can only set the threshold value of the touch pin with values between 1 and 100, but we have no way of knowing how the button responds to being pressed and not, so I can not determine a fairly accurate value for it, as an example ESPHome has a "setup" mode (link) that shows you in the log the values of the touch sensor, with that you press and release it and you can infer an approximate threshold value between the average value when you press it and when you release it and apply it to the threshold of the button.

I think it would be useful to have a calibration button, that makes you do two steps, one that measures the button without pressing and makes an average of those values, then do the same when it is pressed and with those two average values take the average value as threshold.

Is it possible to do this?

Best Regards

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions