Page 1 of 1

Bluetooth Crash on connect

Posted: Tue Mar 20, 2018 3:59 pm
by phando
Hello,
I am trying to get Bluetooth working and not getting very far. The example code all of the net is the same. When my devices reboot every time connect is called.

Code: Select all

pClient->connect(pAddress);


Have any of you seen this behavior. Bluetooth is kind of what led me to the ESP32 in the first place, it would be a bummer to not be able to use it.

Re: Bluetooth Crash on connect

Posted: Tue Mar 20, 2018 7:15 pm
by chegewara
If you are using this library, then better is to open issue on github.
https://github.com/nkolban/esp32-snippets

Re: Bluetooth Crash on connect

Posted: Fri Mar 23, 2018 7:04 am
by JV_Boum
I got these reboot with 2 differents esp32 dev board using either Arduino or ESP32 IDF script.

If your ESP32 device work fine without BT you might have a power problem.
BT required more current.. then voltage get down below a threshold that trigger a software protection that trigger a reboot.
I received a msg 'Brownout detector was triggered' at each reboot.

I solved the problem by adding an electrolytic capacitor of 1000 micro Farads (16v) between Vin pin (5v input) and Gnd.
I also add an electrolytic capacitor of 47 micro Farads (16v) between 3v3 pin and Gnd, you can use a 100 microFarads also.
Put the capacitor respecting polarities.
????
When I used only WiFi, it runs OK but when I used BT only I got Brownout.
It is paradoxal that BT use more current then WiFi ??