Blynk not connecting to arduino using hc05 module

To see if it would print things like “Testing…” i used a different app so i guess its just my phone

Not surprising as you have the HC05 connected to the same UART that you’re using for debug messages. You just can’t do this, as has previously been explained.

ok i will change the code
Heres my new wiring( TXD = D2, RXD = D3, GND = GND, VCC = 5V)

heres my new code

 #include <SoftwareSerial.h>
 SoftwareSerial BTSerial(2, 3); // RX, TX
 void setup() {
     BTSerial.begin(9600);
 }

 void loop() {
   BTSerial.println('testing...');
   delay(1000);
}

Now it not printing anything

Never mind now its printing something but its still printing “11822” repeatively

You still don’t understand it do you?
You have now created a software UART, but you still insist on using that same UART for both communication with the HC05 and serial debug messages.
YOU CAN NOT DO THIS!

Pete.

Here is my new wiring (TXD = D0, RXD = D1, GND = GND, VCC = V5)
Here is my new new code

 #include <SoftwareSerial.h>
 SoftwareSerial BTSerial(2, 3); // RX, TX
 void setup() {
     Serial.begin(9600);
 }

void loop() {
   Serial.println('testing...');
  delay(1000);
}

The result hasent changed

Where is your BTSerial.begin(9600); statement?

Pete.

ok let me fix that

Is my wiring ok?

And here is my new code:

#include <SoftwareSerial.h>
SoftwareSerial BTSerial(2, 3); // RX, TX
void setup() {
    Serial.begin(9600);
    BTSerial.begin(9600);
}

void loop() {
     Serial.println('testing...');
     BTSerial.println('testing...');
    delay(1000);
}

There is still no change

My wiring is now (TXD = 0D, RXD = 1D, GND = GND, VCC = 5V)

I got the hc05 module to print the correct text but blynk is still not working

wait now it works!

Thanks!

In this sketch, BTSerial is being use for communication between your Arduino Uno and your HC05 module. This communication takes the form of AT commands, and the two devices need a dedicated communication channel that is used for nothing else.

The regular serial port (know as Serial) is being used for your Uno to talk to the serial monitor on your PC.

You can not send serial print commands to the Uno via the the dedicated HC05 communication channel (BTSerial) so trying to do this:

BTSerial.println('testing...');

will corrupt the data necessary for the Uno and the HC05 to communicate with each other.

Pete.