Xinyuan-LilyGO / LilyGO-T-A76XX

LilyGo A7670X A7608X SIM7670G series
MIT License
128 stars 57 forks source link

DeepSleep problem #134

Closed Architect8 closed 1 month ago

Architect8 commented 2 months ago

T-SIM7670E - ver 1.2

I want to put the ESP32 to sleep for 600 seconds. Additionally, while the ESP is sleeping, I want to be able to wake it up using GPIO39 or GPIO36 because they are not connected to any additional pins. Unfortunately, if I connect any wire or button leg to the pin without connecting the other side to GND or VCC, the device immediately resets—what am I doing wrong?

void setup(){  
  pinMode (39, INPUT_PULLDOWN);
  Serial.begin(115200);

  //Go to sleep now
  Serial.println("Going to sleep now");  
  esp_sleep_enable_ext0_wakeup(GPIO_NUM_39,1);
  esp_sleep_enable_timer_wakeup(600 * 1000000);  // 10min
  esp_deep_sleep_start();  
}

void loop(){
  //This is not going to be called
}
lewisxhe commented 2 months ago

There is no T-SIM7670E version. You should be talking about the ESP32 version of A7670E.

If it is the ESP32 version, you must add external pull-up resistors to use GPIOs above GPIO33 as inputs, because these GPIOs do not have internal pull-down and pull-up functions.

github-actions[bot] commented 1 month ago

This issue is stale because it has been open for 30 days with no activity.

github-actions[bot] commented 1 month ago

This issue was closed because it has been inactive for 14 days since being marked as stale.