ESP32 BLE Sleep Mode

394 views
Skip to first unread message

Zach Reed

unread,
Aug 11, 2021, 4:58:36 PM8/11/21
to OpenSongApp
Hello, I built 3 of the Page Flip pedals and am only having one problem with them.  The ESP32 apparently has a built in sleep mode.  Is it possible to disable this or modify the time in which is goes to sleep?  I have looked extensively for an answer online and have found nothing.  Any help would be greatly appreciated!

Zach

Gareth Evans

unread,
Aug 15, 2021, 2:33:37 PM8/15/21
to OpenSongApp
Hi Zach,

I've got the stuff here to build a ESP32, but I haven't got round to it yet!  Hopefully Leo can help (it's his information that I put on the website).  He's used this forum before, so hopefully he'll add in any suggestions.
Having a quick look on the internet, it looks like you might need to wire the pedals to the touch pins as well if you want to leave sleep mode active (to help battery life), or disable it completely via software code.

I found this page which might help?

Gareth

Gareth Evans

unread,
Aug 20, 2021, 2:54:15 PM8/20/21
to OpenSongApp
Hi Zach,

I received this message from Leo and he's asked me to forward it on to you:
------------

Hi Gareth, hi Zach,

I have not noticed a problem I could directly relate to a sleep mode with the ESP, but I get random disconnects seldomly too (though thats related to all the radio noise on a stage). I have not looked at the code I provided in a long time, I will have a look when I'm back from holiday.

@Zach: how does the problem show for you? How do you power the ESP (I mostly use a powerbank plugged into the USB port)

My first hacky idea to circumvent the problem would be to keep the ESP busy with some loop. I will be using my pedal quite extensively in the next 2 weeks, so doing some debugging would be possible. If the ESP has a sleep mode, there should be some documentation on it, but I don't know how easy this will be to control from the Arduino framework. Disabling it would be the cleanest solution for sure.

Best,
Leo


Reply all
Reply to author
Forward
0 new messages