Hi,
I'm new using Arduino. I bought a Bluetooth module (JY-MCU v1.02) I'm trying to use it with my Arduino UNO SMD. I've tried every single piece of code I've found on the internet. I'm starting to think that my BT module came wrong.
I'm connecting it as shown every where: VCC => 5v; GND => GND; TXD => RX; RXD => TX. I'm not being able to see it listed as a BT device when I attempt to pair a device with any BT device (my MBP, iPhone and even a Symbian phone of my mother; I haven't tried on windows since I don't own a windows computer).
If anybody already has one of this modules, can PLEASE PLEASE tell me if the device shows up listed when trying to pair on other BT devices with only connecting the power pins on the Arduino?
The code I've uploaded on the Arduino is:
void setup() {
Serial.begin(9600);
Serial.println("AT");
}
void loop() {
String lns;
char cs;
if (Serial.available()) {
while (Serial.available())
{
cs = Serial.read();
if (cs == '|' || cs == '\n' || cs == '\r')
break;
lns += cs;
delay(10);
}
Serial.println("HAY DATA: "+lns);
}
lns.trim();
delay(10);
}