Skip to content

Touch Pad Error #4313

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

Closed
Singein opened this issue Nov 21, 2018 · 9 comments
Closed

Touch Pad Error #4313

Singein opened this issue Nov 21, 2018 · 9 comments

Comments

@Singein
Copy link

Singein commented Nov 21, 2018

Touch pad error

>>> import machine
>>> from machine import Pin
>>> t = machine.TouchPad(Pin(32))
>>> t.read()
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
ValueError: Touch pad error

Originally posted by @fuermohao in #3531 (comment)

@Singein
Copy link
Author

Singein commented Nov 21, 2018

my board is NodeMCU-32S.

@nickzoic
Copy link
Contributor

Thanks! If you can please also add in details of which touch channels (all of them? only some of them?) are affected that'd help a lot.
ports/esp32/machine_touchpad.c:mtp_read() returns that error for any return from the ESP-IDF function touch_pad_read other than ESP_OK ... that might occur if the pin is not oscillating ... Is anything else attached or is this reproducible on just the bare board?

https://docs.espressif.com/projects/esp-idf/en/latest/api-reference/peripheral/touch_pad.html#_CPPv214touch_pad_read11touch_pad_tP8uint16_t

@Singein
Copy link
Author

Singein commented Nov 21, 2018

@nickzoic

If you can please also add in details of which touch channels (all of them? only some of them?) are affected that'd help a lot.

ok, but I still need some time to figure out.

@Singein
Copy link
Author

Singein commented Nov 21, 2018

@nickzoic
I only found this pin layout. As for schematic I didn't find it.

@Singein
Copy link
Author

Singein commented Nov 21, 2018

image

@nickzoic I tried this @MrSurly
It seems a little different from yesterday.

Further, I found that when I touch the touchpad, an error is triggered and it will not be released.
image

@Singein
Copy link
Author

Singein commented Nov 21, 2018

image
here is my breadboard wiring diagram

@nickzoic
Copy link
Contributor

nickzoic commented Nov 21, 2018 via email

@Singein
Copy link
Author

Singein commented Nov 21, 2018

oh!I got it... I am so stupid...
I removed it, now GPIO32 works fine.
So let's just shutdown this issue.

@Singein Singein closed this as completed Nov 21, 2018
@nickzoic
Copy link
Contributor

nickzoic commented Nov 21, 2018 via email

kamtom480 pushed a commit to kamtom480/micropython that referenced this issue Mar 3, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants