HC-05 (zs-040)

Hello

I have a HC-05 bluetooth module and also a zs-040 bluetooth module, but I cannot get it connected to my phone. I am trying to turn on something with arduino IDE and my smartphone with the S2 terminal app.

Does anyone have experience with this?

I have pictures of the modules I have in attachment.

Nice pictures but what about your code and a circuit diagram ?

@OP

1. Build your setup as per following:
hc5-3.png
Figure-1: Connection among UNO, BT, and Serial Monitor

2. Create Software Serial Port (SUART Port) by including the following lines in your sketch.

#include<SoftwareSerial.h>
SoftwareSerial SUART(2, 3); //SRX-pin of UNO = DPin-2; STX-pin of UNO = DPin-3
SUART.begin(9600);

3. Check that data is coming from Android:

byte n = SUART.available();
if(n != 0)
{
    char x = SUART.read(); //data has come from Android phone and read it
    if (x == 'A')   //or whatever it may be
    {
         //take action
    }

}

hc5-3.png