-
Notifications
You must be signed in to change notification settings - Fork 34
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
Wemos D1 Mini S2 touch support disabled #4411
Comments
What's your board configuration? ( Previously: #4194 |
Thanks for the information. esphome:
name: foobar3
friendly_name: foobar
esp32:
board: lolin_s2_mini
variant: esp32s2 |
I'm having the exact same issue. I traced the code a little further, and it seems to be coming from here: while Edit: Here are the errors I get when forcing the validation to pass:
|
I'm working on this -- should have a PR ready to try later this week. 😇 |
@kbx81 I have tried this on the latest Esphome release (2023.8.2) and I can't seem to get any coherent readings with a LOLIN S2 MINI. The project compiles and uploads just fine, and I can see the values with setup_mode: true but the value will never change (whether up or down, it just stays the same) no matter what I do. The same setup is working fine for a regular ESP32 WROOM. |
@TaruDesigns that's...odd...I'm running it on an S2 here myself and it's working great. Maybe join us on Discord and some of us can help you there. If the values you see reported with |
So thanks to @kbx81 we managed to find the issue: The default "measurement duration" parameter (which is also used if it's not specified) is simply too fast to get any coherent values. A value of 100us gives pretty good results, the full config using filters can be as follows:
|
Thanks for circling back with the solution @TaruDesigns! 🍻 In general, for others/for posterity, the key takeaway here is what's noted at the bottom of the documentation. In particular:
The S2 & S3 are different from the original ESP32 when it comes to capacitive touch. This experience reflects that pretty directly. 😇 |
The problem
The datasheet for the S2 (esp32) chip shows that touch sensors are available on pins 1-14
See section 3.3.4 in the datasheet
If you attempt to enable the
esp32_touch
, it gives the following error:Which version of ESPHome has the issue?
2023.3.2
What type of installation are you using?
Docker
Which version of Home Assistant has the issue?
No response
What platform are you using?
ESP32
Board
Wemos D1 Mini S2
Component causing the issue
esp32_touch
Example YAML snippet
https://www.wemos.cc/en/latest/s2/s2_mini.html
Anything in the logs that might be useful for us?
No response
Additional information
No response
The text was updated successfully, but these errors were encountered: