Skip to content

Instantly share code, notes, and snippets.

@Tech500
Tech500 / Deep-Sleep-Function.md
Created August 30, 2025 17:28
EoRa PI Foundation --Receiver --Deep Sleep function
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...");
@Tech500
Tech500 / EoRa PI Serial Montor.txt
Last active August 19, 2025 09:44
~175 uA Eora PI Foundation --Receiver Serial output
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
@Tech500
Tech500 / 74HC73.md
Last active August 5, 2025 22:56
74HC73 Data

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) |
@Tech500
Tech500 / gist:6c9f1216a5564a3341910d8780677078
Last active August 4, 2025 00:58
Latest EoRa PI Foundation --Receiver with WOR, puts LoRa module in listen mode, wakes deep sleeping ESP32
/*
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.
@Tech500
Tech500 / Eora-PI---test.ino
Last active July 28, 2025 21:37
Power Management for Ebyte's EoRa-S#-900TB development board
#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 = {
@Tech500
Tech500 / Serial Monitor Observations.txt
Last active August 29, 2025 05:56
Serial Monitor Obwervations --EoRa PI Project
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
@Tech500
Tech500 / Modification.txt
Last active July 14, 2025 19:46
Modification?
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];
}
@Tech500
Tech500 / Deepsleep.ino
Last active July 15, 2025 00:57
SX1262-Arduino library Deepsleep.ino example temp file
/**
* @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.
@Tech500
Tech500 / WOR_SX1262_LoRa_Receiver.ino
Last active July 14, 2025 02:59
WOR SX1262 LoRa Receiver
//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>
@Tech500
Tech500 / EoRA_PI_Transmitter.ino
Last active July 11, 2025 20:48
Full Receiver EoRa PI
//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