32d fails to connect bt speaker when power anyting but micro usb

drprez
Posts: 8
Joined: Wed Sep 04, 2019 7:32 am

32d fails to connect bt speaker when power anyting but micro usb

Postby drprez » Wed Sep 04, 2019 7:40 am

our issue is as follows we are wemos D1 pin d4 connecting to a D 32 with pin 16 and the power from the
D 32 is coming off the 3.3 V and ground on the d1 when we powered that way with the USB being plugged into the D1 we cannot make a connection to a Bluetooth speaker without pressing the reset button on the d32. then something from pressing the reset does someting and then it will connect to a bluetooth speaker,

we have also tried powering in the micro usb on the d1 and connecting the 5v and gn between boards to power the d32, again it will not connect with out pressing reset.

But if we plug into the d32 micro usb and power the d1 from the d32 it connectss no problem dont need a reset or anyting

so what or how do i fix this as we need the micro usb to be on the d1. the d32 should have plenty of oower on the 5 v pin why is it doing this still?
3.0main.c
(25.45 KiB) Downloaded 506 times

WiFive
Posts: 3529
Joined: Tue Dec 01, 2015 7:35 am

Re: 32d fails to connect bt speaker when power anyting but micro usb

Postby WiFive » Wed Sep 04, 2019 10:39 pm

Do you have another usb-uart you can hook up to debug the d32?

drprez
Posts: 8
Joined: Wed Sep 04, 2019 7:32 am

Re: 32d fails to connect bt speaker when power anyting but micro usb

Postby drprez » Thu Sep 05, 2019 5:52 am

here is the data from serial monitor on the d32 here is what we did

i load code on d32

then load our code on d1 only connection between the 2 is on pin 16 on d32
our device connects to speaker but no sound
then i press our test button on our config page our light works but no sound
then i press the reset button on the d 32 the d32 disconnects and reconnects to the speaker
then i press our test button on our config page and it works both the light and sound play

so it is something to do when i press reset on the d32 that fixes the code issue?
i attached it here
Attachments
naten2.txt
(24.87 KiB) Downloaded 473 times

WiFive
Posts: 3529
Joined: Tue Dec 01, 2015 7:35 am

Re: 32d fails to connect bt speaker when power anyting but micro usb

Postby WiFive » Thu Sep 05, 2019 11:20 am

It looks like unreliable bluetooth, not sure if it is a power issue or software. You shouldn't supply 3.3v through the battery connector though, use the 3.3v pin. You can't use only d32 with WiFi/bt coexist?

drprez
Posts: 8
Joined: Wed Sep 04, 2019 7:32 am

Re: 32d fails to connect bt speaker when power anyting but micro usb

Postby drprez » Thu Sep 05, 2019 11:42 am

I do power it with 3.3v. Have tried with. 5 v also same problem

Only time I don’t have problem is if I power into micro usb


I’m not using WiFi I know they can’t coexist

The problem resolved if I push reset on board I have used a cap from en to ground thst did nothing

drprez
Posts: 8
Joined: Wed Sep 04, 2019 7:32 am

Re: 32d fails to connect bt speaker when power anyting but micro usb

Postby drprez » Thu Sep 05, 2019 4:13 pm

it belongs to the v3.2 branch, so I thought I could just simply get the commit and add arduino-esp32 as a component compile and get all the libs necessary. but its simply not working.
the fix implemented on the commit mentioned above works perfectly but unfortunately is restricted only to esp-idf at the current moment. I wanna use it on the arduino IDE

Who is online

Users browsing this forum: Baidu [Spider], pmi2410 and 199 guests