Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
mtabo opened this issue May 3, 2024 · 1 comment

Comments

@mtabo
Copy link

mtabo commented May 3, 2024

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

@mtabo
Copy link
Author

mtabo commented May 21, 2024

Hi!, i have a few questions:

  • Anybody know where in the code is the touch button handling?
  • How can i see the logs of WLED? Adding #define WLED_DEBUG on wled.cpp is sufficient to see it in the serial console?
  • In the file settings_led.htm the field for write threshold have a min 0 and max 100, the max value is insufficient for some cases when a plastic material is between the plate and the finger, the limit to 100 is only there or there is a value check down in the code that set the variable?
    Best Regards!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants