Page 1 of 1

ESP32 DEVKIT V1: nRF24L01 Switch remote, battery on/off

Posted: Mon Jan 15, 2024 1:21 pm
by ab9nq-william
Using a pair of nRF24L01 transceivers, have coded a way to switch a battery remotely, put the ESP32 to deep sleep and wake-up using external 0, RTC_GPIO.

Coded a way to accomplish task of remotely switching a battery, switching is by Async web server request. Request determines on/off option. “Control” variable selects on or off option. Each option has two tasks: task one, --switches battery power, task two, --switches deep sleep state. Have not “field” tested project; tested with multimeter monitoring current of transceiver, piggyback adapter connected to 5 Volt power supply.

Github repository for project code Updated 02/20/2024

Less than ten dollars US; two, 2.4 GHz transceivers, can be purchased.

Couple of recommendations; identify ground pin using a multimeter, purchase a nRF24L01 piggyback voltage adapter; allows use of five volt power. Some boards have trouble supplying required transceiver current. Do not let early failures stop your project or ask to return defective transceivers. Fully explore reasons for failures. Mine turned out to be coding errors. If the code is not allowing transceiver to exchange data, check your code! Fault hardware last!

5 Volt piggyback, power adapter for nRF24L01 Transceivers

William

Re: ESP32 DEVKIT V1: nRF24L01 Switch remote, battery on/off

Posted: Thu Jan 18, 2024 4:11 pm
by ab9nq-william
Have a working Web-server with a nRF24L01 controlling a remote battery switch. Prepared a under two minute video of processing web request for “Camera View.” Asyncwebserver request turns on switch by triggering a 60 second countdown timer and sending data = 1 to the first nRF24L01. Second nRF24L01 recevies data = 1; powers up the 2nd NRF24L0, turns on switch, wakes ESP32 from Deep Sleep (using External 0, RTC_GPIO wakeup pin). Process is reversed when 2nd nRF24L01 receives data = 2 from webserver's expired countdown timer.

Project is a work in progress; will post project to Github when completed.

Video: nRF24L01 Webserver with Battery Switch

William

Re: ESP32 DEVKIT V1: nRF24L01 Switch remote, battery on/off

Posted: Mon Feb 05, 2024 1:56 pm
by ab9nq-william
02/20/2024 Updated project files to Github Repository. nRF24L01, transmitter and receiver have successfully turned “relay” LED on and off. Wakeup and Deep Sleep have been accomplished.

Short video of nRF24L01+ Project

Feedback from anyone is welcome and appreciated.

“ESP32_nRF24L01_Remote_Relay” Project code

Fixed Wakeup issue of being unable to wake from deep sleep by simplifying sketch; removed GPIO_IO configuration and changed GPIO pin connections.

Regards,
William

Re: ESP32 DEVKIT V1: nRF24L01 Switch remote, battery on/off

Posted: Wed Mar 06, 2024 6:13 pm
by Phillip
William,

I have been studying your ESP32 remote switch documentation but your videos have no sound. Is this issue on my end or yours?

Thanks.

Re: ESP32 DEVKIT V1: nRF24L01 Switch remote, battery on/off

Posted: Wed Mar 06, 2024 10:45 pm
by ab9nq-william
Video has no sound; just a visual presentation of project.

Do you have specific question; will do my best to answer.

William

Re: ESP32 DEVKIT V1: nRF24L01 Switch remote, battery on/off

Posted: Thu Mar 07, 2024 5:39 pm
by Phillip
Thank you for your prompt response to my query.

Since my post I think I may have a solution to my problem without having to put my RECEIVER MCU unit into DEEP SLEEP mode.

I will test this today and get back to you.

Thank you again for your help.