Hi,
I have a HC-05 module, and Arduino Uno. I have connected everythink like that, only instead 20k transistor I used 2x10k (I want to send data from ultrasonic module).
I writed simple code, to check if bt module works:
#include <SoftwareSerial.h>
SoftwareSerial bluetooth(2, 3);
void setup() {
Serial.begin (9600);
bluetooth.begin(9600);
}
void loop() {
if (bluetooth.available())
Serial.write(bluetooth.read());
if (Serial.available())
bluetooth.write(Serial.read());
delay(50);
}
And what is my problem. I can send data from terminal on my phone, and it appears on my pc, but it does not work when I type somethink on my pc. It doesn't show on my phone.
I connected the bt module to 2 and 3 pin, because on 0 and 1 (and without SoftwareSerial.h) even sending data from phone to pc wasn't working.
Thanks.