Skip to content

TOUCH8 gives very different values after some time #2625

Closed
@koromkorom

Description

@koromkorom

Hardware:

Board: ESP32 Dev Module
IDE name: Platform.io
Flash Frequency: 40Mhz
PSRAM enabled: no
Upload Speed: 115200?
Computer OS: Ubuntu

Description:

After some time reading touch sensors, TOUCH8 gives very different values.
Some bias just comes up out of nowhere.
This only happens for TOUCH8.
See output below.

Sketch:

#include <Arduino.h>

uint16_t sens;
int touch_inputs [10] = {T0, T1, T2, T3, T4, T5, T6, T7, T8, T9};

void setup()
{
    Serial.begin(115200);
    for(int i=0;i<10;i++){
        sens = touchRead(T8);
        Serial.print(String(sens) + " ");
        delay(1000);
    }
    Serial.println();

}

void loop()
{   
    for(int i=0;i<10;i++){
        sens = touchRead(T8);
        Serial.print(String(sens) + " ");
        delay(1000);
    }
    Serial.println();
    for (int i = 0; i<10; i++){
        sens = touchRead(touch_inputs[i]);
        Serial.print(String(sens)+ " ");
        delay(1000);
    }
    Serial.println();
    delay(1000);
}

Serial Output. I marked all TOUCH8 outputs as bold.

53 61 60 60 60 60 60 60 60 60
61 61 61 61 61 61 61 61 61 61
79 49 73 79 87 85 89 95 60 102
105 105 105 105 105 106 106 106 105 105
80 49 74 79 88 86 89 95 104 102
104 104 105 104 104 105 105 105 105 105
80 49 74 80 88 86 89 95 105 102
105 104 104 104 104 104 104 104 105 105

Activity

stale

stale commented on Aug 1, 2019

@stale

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

stale

stale commented on Aug 15, 2019

@stale

This stale issue has been automatically closed. Thank you for your contributions.

self-assigned this
on Jan 19, 2022
added a commit that references this issue on Feb 3, 2022
0ea485e
added a commit that references this issue on Feb 4, 2022
2be27a3
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

Status: StaleIssue is stale stage (outdated/stuck)

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

    Development

    Participants

    @koromkorom@SuGlider

    Issue actions

      TOUCH8 gives very different values after some time · Issue #2625 · espressif/arduino-esp32