I am trying to use a hc-05 module for the first time and I have some problems: I already had a hard time finding the right pins for the rx and tx pin that g finally put on rx -> pin0 (rx) and tx -> pin 10. I can send data from the hc-05 to the phone but if I send from the phone to the hc-05 I get weird characters. Here is my code and the configuration. Thank you for your help. [configuration image][1]
#include <SoftwareSerial.h>
SoftwareSerial mySerial(10, 0); // RX, TX
void setup() {
Serial.begin(9600);
pinMode(9,OUTPUT); digitalWrite(9,HIGH);
Serial.println("Enter AT commands:");
mySerial.begin(38400);
}
void loop()
{
if (mySerial.available())
Serial.write(mySerial.read());
if (Serial.available())
mySerial.write(Serial.read());
}```
[1]: https://i.stack.imgur.com/BhED7.jpg