Arduino nano with bluetooth ai-thinker pb-01

HI! i am using arduino nano serial for communication with ai-thinker pb-01, i doing simple test serial baud rate 115200, in monitor serial send command "AT", but not response with "ok", the bluetooth not communicate with microcontroller. i connect with serial monitor ai-thinker and command is funcional. i don´t know why not have communication with microcontroller.

Arduino Nano has only one hardware Serial port, so you can't use it for BT module and Serial monitor at the same time. Use the SoftwareSerial or change the board to the one that has more then one serial port

THANKS, I am using arduino nano because ai-thinker pb-01 is 3.3v, i going to test with softwareSerial.

What's the connection between this? Is your Nano 3.3v?

#include <SoftwareSerial.h>
SoftwareSerial mySerial(8, 9); // RX, TX
void setup() {
  // put your setup code here, to run once:

   mySerial.begin(9600);
  mySerial.println("comenzando transmision");
  
  Serial.begin(115200);
  mySerial.println("AT");
  mySerial.println("AT");
  mySerial.println("AT");
  mySerial.println("AT");
}

void loop() {

  if (mySerial.available())
    Serial.write(mySerial.read());
  if (Serial.available())
    mySerial.write(Serial.read());

}

I am using ai-thinker PB-01, anyone doing communication with arduino and pb-01?
PB-01

i am using 3.3v, gnd, and D8(rx), D9(tx)

Your Serial Monitor looks like the baudrate that you use with module is incorrect. When you communicated with ai-thinker pb-01 directly - what is the baudrate you set?

I use ftdi rs-232 for comunicate with pc with hercules, i set baudrate in 115200.

This topic was automatically closed 180 days after the last reply. New replies are no longer allowed.