Navigation

    LILYGO

    • Register
    • Login
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups

    T-OI plus ESP32-C3

    Product information
    1
    1
    101
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • C
      ckuehnel last edited by

      The red LED should be switched off to get minimum current consumption during deep sleep.
      A solder bridge would be helpful.
      At default initialization I get the following value reading the TOUT:

      E (798844) tsens: Do not configure the temp sensor when it's running!
      E (798844) tsens: Temperature sensor is already running or not be configured
      ADC analog value = 2954
      ADC millivolts value = 1407
      Core temperature = 44.6 °C

      I expect 1/2 VBAT, also about 1900 mV.
      Why I get the two messages tsens: ...

      This is my program:

      void setup() 
      {
        Serial.begin(115200);
        
        analogReadResolution(12);
        analogSetAttenuation(ADC_11db); 
      }
      
      void loop() 
      {
        // read the analog / millivolts value for GPIO2:
        int analogValue = analogRead(2);
        int analogVolts = analogReadMilliVolts(2);
        float temp = temperatureRead();
        
        // print out the values you read:
        Serial.printf("ADC analog value = %d\n",analogValue);
        Serial.printf("ADC millivolts value = %d\n",analogVolts);
        Serial.printf("Core temperature = %3.1f °C\n\n", temp);
        
        delay(2000);  // delay in between reads for clear read from serial
      }
      
      1 Reply Last reply Reply Quote 0
      • First post
        Last post
      Powered by NodeBB | Contributors