Search found 18 matches
- Sun Jul 22, 2018 7:39 pm
- Forum: General Discussion
- Topic: streaming music from an Android phone via ESP32 to AUX IN
- Replies: 17
- Views: 45400
Re: streaming music from an Android phone via ESP32 to AUX IN
Thank you. I will try out that code as soon as I get home tonight. One more thing - is there a way I can get the ESP32 to reconnect automatically to my phone when the A2DP connection is lost? And to connect to my phone on its own without me having to actively start the connection in my phone's BT se...
- Sat Jul 21, 2018 11:54 pm
- Forum: General Discussion
- Topic: streaming music from an Android phone via ESP32 to AUX IN
- Replies: 17
- Views: 45400
Re: streaming music from an Android phone via ESP32 to AUX IN
Perfect... it's working now. One problem - if I suddenly disconnect my phone from the esp32, the esp32 gets stuck in a loop and plays a constant tone indefinitely. It's as if it's stuck outputting the final transmitted 16-bit word. Can this be solved by uninstalling the I2S driver when the bluetooth...
- Sat Jul 21, 2018 2:06 pm
- Forum: General Discussion
- Topic: streaming music from an Android phone via ESP32 to AUX IN
- Replies: 17
- Views: 45400
Re: streaming music from an Android phone via ESP32 to AUX IN
I think I've found a code example in the esp-idf that gives me pretty much what I want. It's the a2dp_sink example. Unfortunately, I can't get it to compile. I've tried building it with eclipse, as well as with msys32. Both give me compile errors, and this is without having altered the code in any w...
- Fri Jul 20, 2018 11:17 am
- Forum: General Discussion
- Topic: streaming music from an Android phone via ESP32 to AUX IN
- Replies: 17
- Views: 45400
Re: streaming music from an Android phone via ESP32 to AUX IN
Update: I see that there is a code example in esp-idf called a2dp_sink which looks at first glance like it has what I need right out of the box: https://github.com/espressif/esp-idf/tree/master/examples/bluetooth/a2dp_sink Being that I am only beginning to understand Bluetooth streaming at the prog...
- Wed Jul 18, 2018 11:38 am
- Forum: General Discussion
- Topic: streaming music from an Android phone via ESP32 to AUX IN
- Replies: 17
- Views: 45400
Re: streaming music from an Android phone via ESP32 to AUX IN
I was going to use an external I2S decoder chip anyway, because for all I know (please do correct me if I am wrong), the WROOM dev board's onboard DACs cannot produce hi-fi stereo sound that would sound good on my Bose car stereo sound system. How about this as a decoder breakout for the finished pr...
- Tue Jul 17, 2018 8:35 pm
- Forum: General Discussion
- Topic: streaming music from an Android phone via ESP32 to AUX IN
- Replies: 17
- Views: 45400
Re: streaming music from an Android phone via ESP32 to AUX IN
Very interesting, thank you. Do you happen to know if there is also an Arduino based implementation of this? I haven't really worked yet with espressif's own sdk environment.
Also, this seems to be for a LyraT board. I have an ESP32 WROOM dev board. Will it work on my WROOM regardless?
Also, this seems to be for a LyraT board. I have an ESP32 WROOM dev board. Will it work on my WROOM regardless?
- Tue Jul 17, 2018 4:17 pm
- Forum: General Discussion
- Topic: streaming music from an Android phone via ESP32 to AUX IN
- Replies: 17
- Views: 45400
streaming music from an Android phone via ESP32 to AUX IN
Hello, I've been trying to find information on how to use the ESP32 as a Bluetooth client and get it to play audio which it would receive from my Android phone via Bluetooth. I then want the ESP32 to output the audio from the phone so that I can connect the ESP32 to the AUX IN connector of my car ra...
- Mon Mar 05, 2018 3:51 pm
- Forum: General Discussion
- Topic: ESP32 audio output
- Replies: 10
- Views: 53431
Re: ESP32 audio output
I have sort of half managed to make it work now. It turns out that I had the byte order wrong with my sound sample. It needs to be little endian double words, which it wasn't before. Now, however, the sample sounds like it's sped up by a few orders of magnitude. Here's my code: #include "driver/i2s....
- Sat Mar 03, 2018 1:18 pm
- Forum: General Discussion
- Topic: ESP32 audio output
- Replies: 10
- Views: 53431
Re: ESP32 audio output
Ok, so I've found some example code that should in theory enable me to output sound via the Adafruit I2S amp. Note that this is for the Arduino IDE: #include "driver/i2s.h" #include "freertos/queue.h" #include <pgmspace.h> #include "soundsample.h" //i2s configuration int i2s_num = 0; // i2s port num...
- Sun Jan 14, 2018 8:12 pm
- Forum: General Discussion
- Topic: ESP32 I²C 5V tolerance
- Replies: 9
- Views: 27964
Re: ESP32 I²C 5V tolerance
I think I will still keep the Atmega running at 5V. I'm too far into the project already with the Atmega to change it to 3V3, as a bunch of sensor readings depend on the 5V for reference. I would have to make fundamental changes to my code and my perfboard layout. Just keeping it on 5V as it is seem...