void goToSleep(void) {
Serial.println("=== PREPARING FOR DEEP SLEEP ===");
Serial.printf("DIO1 pin state before sleep: %d\n", digitalRead(RADIO_DIO1_PIN));
Serial.printf("Wake pin (GPIO16) state before sleep: %d\n", digitalRead(WAKE_PIN));
// Set up the radio for duty cycle receiving
radio.startReceiveDutyCycleAuto();
Serial.println("Configuring RTC GPIO and deep sleep wake-up...");
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
EoRa PI Foundation --Receiver | |
Ebyte's EoRa-S3-900TB Dev Board | |
ESP32-S# dev board with SX1262 LoRa module | |
175 uA LoRa rmote receiver --Load Controller | |
Deep Sleep with external wake up by radio!!! | |
00:24:02.366 -> ESP-ROM:esp32s3-20210327 | |
00:24:51.761 -> initBoard | |
00:24:51.761 -> Cold Boot or Other Start-up |
CD74HC73E (Dual JK Flip-Flop with Reset, PDIP-14
# CD74HC73E Pinout (PDIP-14)
| Pin | Name | Description |
|-----|--------|--------------------------------------|
| 1 | 1CLR | Asynchronous Clear (Flip-Flop 1) |
| 2 | 1CLK | Clock Input (Flip-Flop 1) |
| 3 | 1J | J Input (Flip-Flop 1) |
| 4 | 1K | K Input (Flip-Flop 1) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
Claude's version 112 Latest code with J-K Flip-Flop (74HC73) untested. Part on order. Code is | |
a works in progress. Cold boot is working, repeating cycle after cold boot is not working, | |
DIO1 signal is too fast; this is where the 74HC73 comes in to toggle and hold the wake up pulse | |
from the LoRa radiop module. DIO1 signal is used for Wake on Radio, puts radio into listen | |
mode and wakes Deep Sleeping ESP32 using external wake up.. | |
Project uses Ebyte's, provided "boards.h" board configuration and "utilites.h" pin assignments. | |
Coded by Claude with Design and prompting code execuyion. Troubleshooting provided by Claude | |
and William Lucid. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include "eora_s3_power_mgmt.h" | |
void setup() { | |
Serial.begin(115200); | |
delay(2000); | |
Serial.println("No-I2C Power Test"); | |
// Test config - don't touch ANY GPIOs | |
eora_power_config_t config = { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
18:19:52.354 -> //<------------------- Power on ------------------------ | |
18:19:52.354 -> | |
18:19:52.354 -> FS init: ok | |
18:19:52.354 -> CPU Frequency: 80 MHz //<------------------ Power saving by slowing microcontroller | |
18:19:52.354 -> initBoard //<------------------------------ Init caused by reset reason ESP_RST_POWERON | |
18:19:53.360 -> [SX126x] Initializing ... success! | |
18:19:53.391 -> [SX126x] Starting to listen ... success! //<--------- Need to establish listening duty cycle | |
18:19:53.391 -> | |
18:19:53.391 -> === PREPARING FOR DEEP SLEEP === | |
18:19:53.391 -> DIO1 pin state before sleep: 0 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Does this need modification to use with DeepSleep.ini? | |
void OnRxDone(uint8_t *payload, uint16_t size, int16_t rssi, int8_t snr) { | |
Serial.println("WOR wake triggered: Packet received"); | |
// Convert payload bytes to String | |
String packet; | |
for (uint16_t i = 0; i < size; i++) { | |
packet += (char)payload[i]; | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* @file DeepSleep.ino | |
* @author Bernd Giesecke (bernd.giesecke@rakwireless.com) | |
* @brief Low power example for ESP32 and SX1262 | |
* | |
* This examples shows LoRa P2P communication with a ESP32 using the | |
* sleep function of the ESP32 to lower the power consumption. | |
* The ESP32 goes into sleep after initializing the SX1262 to listen | |
* using the RxDutyCycle mode. In this mode, the SX1262 is sleeping as | |
* well, only waking up to check if any preamble signal is detected. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//New Ebyte, EoRa PI (EoRa-S3-900TB) LoRa development board 915.0 Mhz | |
//WifiManager library + setup for WiFiManage tzpau (sp?) | |
//William Lucid in colboration with Copilot, ChatGPT, Gemini 07/11/2025 @ 20:24 EDT | |
//Ardino IDE: ESP32S3 Dev Module | |
//Board Manager: 2.0.18 | |
#include <Arduino.h> | |
#include <SPI.h> | |
#include <SX126x-Arduino.h> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//EoRa_PI_Transmitter.ino --a work-in-progress | |
//New EoRa PI Radio 915.0 Mhz (EoRa-S3-900TB) | |
//Only changes new radio and GPIO pins used for SDA, SCL, KY002S, and INA226 | |
//WifiManager library + setup for WiFiManage tzpau (sp?) | |
//William Lucid in colboration with ChatGPT 07/09/2025 @ 23:43 EDT | |
//Ardino IDE: ESP32S3 Dev Module | |
//Board Manager: 2.0.18 | |
//EoRa_PI_Transmitter |
NewerOlder