Forum >BT401 audio out
General

BT401 audio out

userHead megaohm312 2025-04-22 04:59:04 68 Views2 Replies

Hello forum,

Im having a hard time getting audio out of the BT401 when using as a BT receiver.   I am trying to stream music from my laptop to the BT401 and playback using the onboard DAC out.   I tried code on the Arduino to set the playback to Bluetooth audio, but I get nothing out of the BT401.   I have tried connecting the speaker directly as well to the DAC out (it is supposed to have an amplifier onboard), but no audio.   Am I missing something simple here?   Do I need to also provide 3v3 or something else to get audio out?   
 

--------------------------------------------------------------------------------------------------------------

#include <DFRobot_BT401.h>
#include <SoftwareSerial.h>

 

SoftwareSerial btSerial(2, 3);  //RX TX

 

DFRobot_BT401 bt;

 

void setup(){
 btSerial.begin(9600);
 /*Delay 2s for the BT401 to start*/
 delay(2000);
 while(!bt.begin(btSerial)){
   Serial.println("Init failed, please check wire connection!");
   delay(1000);
 }
 bt.setVOl(80);
 bt.switchFunction(bt.eBluetooth);

}

void loop(){

}

 

----------------------------------------------------------------------------------------------------------------

2025-04-22 22:25:50

Yes, it is a valid A2DP connection - I have tried on both my phone and laptop, with no audio out.  

userHeadPic megaohm312
2025-04-22 20:32:43

Check if your BT401 is correctly paired and is using the A2DP (Advanced Audio Distribution Profile) for Bluetooth audio. If your laptop doesn’t support A2DP or the pairing is incomplete, you won’t hear anything.

userHeadPic ahsrab.rifat