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
ESP32 DEVKIT V1: nRF24L01 Switch remote, battery on/off
-
- Posts: 16
- Joined: Thu Aug 03, 2023 3:14 am
- Location: Indianapolis, IN
- Contact:
ESP32 DEVKIT V1: nRF24L01 Switch remote, battery on/off
Last edited by ab9nq-william on Thu Feb 22, 2024 7:34 pm, edited 6 times in total.
-
- Posts: 16
- Joined: Thu Aug 03, 2023 3:14 am
- Location: Indianapolis, IN
- Contact:
Re: ESP32 DEVKIT V1: nRF24L01 Switch remote, battery on/off
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
Project is a work in progress; will post project to Github when completed.
Video: nRF24L01 Webserver with Battery Switch
William
-
- Posts: 16
- Joined: Thu Aug 03, 2023 3:14 am
- Location: Indianapolis, IN
- Contact:
Re: ESP32 DEVKIT V1: nRF24L01 Switch remote, battery on/off
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
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
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.
I have been studying your ESP32 remote switch documentation but your videos have no sound. Is this issue on my end or yours?
Thanks.
-
- Posts: 16
- Joined: Thu Aug 03, 2023 3:14 am
- Location: Indianapolis, IN
- Contact:
Re: ESP32 DEVKIT V1: nRF24L01 Switch remote, battery on/off
Video has no sound; just a visual presentation of project.
Do you have specific question; will do my best to answer.
William
Do you have specific question; will do my best to answer.
William
Re: ESP32 DEVKIT V1: nRF24L01 Switch remote, battery on/off
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.
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.
Who is online
Users browsing this forum: No registered users and 9 guests