• Skip to main content
  • Skip to primary sidebar

RNTLab.com

The Ultimate Shortcut to Learn Electronics and Programming with Open Source Hardware and Software

  • Courses
  • Forum
    • Forum
    • Ask Question
  • Shop
  • Account
  • Blog
  • Login

Waking up TTGO LoRa SX1278 OLED

Q&A Forum › Category: ESP32 › Waking up TTGO LoRa SX1278 OLED
0 Vote Up Vote Down
Carlos Domingue Boiza asked 2 years ago

Hi Sara and Rui!
 
I am currently working on a project involving TTGO Lora SX1278, very similar to the SX1276 and I want to make them sleep and then waking them up again using an external interruption.
I am using the GPIO_NUM_12 in order to wake up these modules. I copy here part of the code:
 
//Increments boot number and prints it every reboot
bootCount++; 
Serial.println(“Boot number: “+String(bootCount));
 
sendData(); //sends the data….
//deep sleep
 

esp_sleep_enable_ext0_wakeup(GPIO_NUM_12,HIGH); // interruption in the pin 12 ,wake up when this pin 12 in                                                                                              // TTGOgoes to HIGH
Serial.println(“Entering deep sleep mode”);   //
Serial.print(“Setup ESP32 to sleep until it is waken up thanks to GPIO_NUM_12”);
Serial.println(“Going to sleep now”);
Serial.flush();   // waits for the transmission of outgoing serial data to complete 
delay(10000);
esp_deep_sleep_start();
Serial.println(“This will never be printed”);
}

void loop() {
}
void sendData(){
  Serial.println (“Sending packet: “);The problem is …I can’t wake them up :(. When I power on the modules, 
//MORE CODE
 
When I power the module for the first time, it sends the data properly and the receiver prints in its OLED screen the data received and the transmitter goes to sleep as expected, but as I said I can’t wake it up :(.
 
Have you ever worked with the TTGO this way???
 
Thanks a lot for your help and above all, thanks a lot for your work!!
 

Question Tags: Deep sleep, ESP32, LORA
2 Answers
0 Vote Up Vote Down
Carlos Domingue Boiza answered 2 years ago

I answer myself, I can wake it up now! :-)…
I was using a map of the pinout that was wrong…in my desperation I tried to feed all the pins with 5 V until I found that with just the opposite pin I thought, it woke up properly, it’s a good thing that the GND and 5 V pins are shor-circuited with their opposite ones….
Thank you anyway! Rui and Sara!!…, great work!
Carlos.

0 Vote Up Vote Down
Sara Santos Staff answered 2 years ago

Great!
I’m glad you found out the solution.
I’ll mark this issue as resolved. If you need further help, you just need to open a new question in our forum.
Regards,
Sara

Primary Sidebar

Login to Ask or Answer Questions

This Forum is private and it’s only available for members enrolled in our Courses.

Login »

Latest Course Updates

  • [eBook Updated] SMART HOME with RPi, ESP32, and ESP8266 (version 1.2) March 8, 2023
  • [eBook Updated] ESP32-CAM Projects (version 1.3) January 7, 2023

You must be logged in to view this content.

Contact Support - Refunds - Privacy - Terms - MakerAdvisor.com - Member Login

Copyright © 2013-2023 · RandomNerdTutorials.com · All Rights Reserved

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.