Skip to content

Instantly share code, notes, and snippets.

@Tech500
Tech500 / Receiver.ino
Last active May 1, 2024 18:38
ESP32 Wake by radio, switch battery, and monitor; solar charged battery.
//Modified for INA226 Battery Monitor
//E220_Transceiver_Videofeed_Receiver.ino
//William Lucid 5/1/2024 @ 14:36 EDT
/*
* EBYTE LoRa E220-900T30D
* Stay in sleep mode and wait a wake up WOR message
*
* You must configure the address with 0 3 23 with WOR receiver enable
@Tech500
Tech500 / E220_Transceiver_Videofeed_Receiver.ino
Last active March 13, 2024 22:58
E220_VideoFeed_Remote_Switch --Power switch for video camera to conserve battery
//E220_Transceiver_Videofeed_Receiver.ino
//William Lucid 3/11/2024 @ 17:17 EDT
/*
* EBYTE LoRa E32
* Stay in sleep mode and wait a wake up WOR message
*
* You must configure the address with 0 3 23 with WOR receiver enable
* and pay attention that WOR period must be the same of sender
@Tech500
Tech500 / Sleep_Mode_WOR_Wakeup.ino
Last active March 1, 2024 13:22
Renzo Mischianti's EBYTE Loara E32 Stay in sleep mode and wait a wake up WOR message.
/*
* EBYTE LoRa E32 ---Receiver code-----
* Stay in sleep mode and wait a wake up WOR message
*
* You must configure the address with 0 3 23 with WOR receiver enable
* and pay attention that WOR period must be the same of sender
*
*
* https://mischianti.org
*
@Tech500
Tech500 / ESP32_nRF24L01_IRQ_Receiver.ino
Last active February 5, 2024 13:18
Pair of nRF24L01's remotely controlling a relay by web server --with ESP32 deep sleep
// ESP32_nRF24L01_IRQ_Receiver.ino William Lucid 02/04/2024 @ 21:07 EST
// Based on RF24 library example "InterruptConfigure"
// https://github.com/nRF24/RF24/blob/update-irq-example/examples/InterruptConfigure/InterruptConfigure.ino
// Example: Author: Brendan Doherty (2bndy5)
// Addition code, references, guidance, and lots of help: Google's Bard.
#include <SPI.h>
#include <nRF24L01.h>
#include <RF24.h>
#include <printf.h>
@Tech500
Tech500 / Switch --TeraTerminal.log
Last active January 31, 2024 02:28
nRF24L01 demo of remote switch control with ESP32 Deep Sleep
[2024-01-30 20:34:31.540] @ zä
[2024-01-30 20:34:31.553] X¬/1Á3 C
[2024-01-30 20:34:31.709]
[2024-01-30 20:34:31.709]
[2024-01-30 20:34:31.724] nRF24L01+ IRQ_Receiver
[2024-01-30 20:34:31.740] Receving...
[2024-01-30 20:34:31.756]
[2024-01-30 20:34:31.756] Wakeup was not caused by deep sleep: 0
[2024-01-30 20:34:31.803] Boot number: 1
@Tech500
Tech500 / TeraTerminal log.txt
Created January 28, 2024 12:49
IRQRadio 0 Transmit Panic
Rebooting...
ets Jul 29 2019 12:21:46
rst:0xc (SW_CPU_RESET),boot:0x13 (SPI_FAST_FLASH_BOOT)
configsip: 0, SPIWP:0xee
clk_drv:0x00,q_drv:0x00,d_drv:0x00,cs0_drv:0x00,hd_drv:0x00,wp_drv:0x00
mode:DIO, clock div:1
load:0x3fff0030,len:1184
load:0x40078000,len:13260
load:0x40080400,len:3028
@Tech500
Tech500 / nRF24L01_Receiver.ino
Last active January 25, 2024 23:14
nRF24L01 Remote switch control
//IRQ_Receiver_Arduino.ino William Lucid 1/24/2024 @ 16:23 EST
//ChatGPT conversation: https://chat.openai.com/share/0113184d-8e25-4632-a985-39ea7722d24c
//Work in progress; being developed to remotely control a switch. Code is for webserver that turns on the switch; countdown timer
//turns off the switch.
// See library downloads for each library license.
#include <SPI.h>
#include <nRF24L01.h>
#include <RF24.h>
@Tech500
Tech500 / nRF24L01_Receiver.ino
Created January 19, 2024 15:03
nRF24L01 IRQ wwith ESP32 DEVKIT V! board
//Communication 1 way receiver
//firstly download library https://github.com/nRF24/RF24
#include <SPI.h>
#include <nRF24L01.h>
#include <RF24.h>
//#include <esp_wifi.h>
#include "esp_sleep.h"
#include <driver/rtc_io.h>
#include <driver/gpio.h>
@Tech500
Tech500 / Oneway_nRF25L01_Transmitter
Last active January 13, 2024 14:57
ESP32 DEVKIT V1 nRF24L01+ Transciever and Receiver --Remote Battery Switch
//Communication 1 way transmitter
//Download library https://github.com/nRF24/RF24
//Based on lightthedreams project: https://projecthub.arduino.cc/lightthedreams/nrf24l01-for-communication-1-way-and-2-way-4da921
#include <SPI.h>
#include <nRF24L01.h>
#include <RF24.h>
RF24 radio(21, 5); // CE,CSN
const byte address[6] = "00001"; //Byte of array representing the address. This is the address where we will send the data. This should be same on the receiving side. int ledPin 26;
@Tech500
Tech500 / Details.txt
Last active February 26, 2024 05:22
nRF24L01 Project for use with ESP32 DEVKIT V1
//Getting Started exammple: Details Radio_0 and Radio_1.
RF24/examples/GettingStarted
Which radio is this? Enter '0' or '1'. Defaults to '0'
radioNumber = 0
*** PRESS 'T' to begin transmitting to the other node
SPI Frequency = 10 Mhz
Channel = 76 (~ 2476 MHz)
Model = nRF24L01+
RF Data Rate = 1 MBPS