Closed JMJ15 closed 4 years ago
Sir with OTG its working fine. But when I replace OTG with HC-05 Bluetooth module transmission is not working but receiving side is okay. I came to this conclusion by checking it with serial monitor in arduino in PC
Thanks a lot I corrected it. Its because i did not used the other serial port available in due. When I used other Rx & Tx (1 or 2 or 3) it works fine. Thanks anyway
Sir, When ever I try to pass any character from Serial Bluetooth Terminal app it is not working. But when I try to pass the character from serial monitor of Arduino it is transmitting to serial monitor and also to phone via Bluetooth. From that thing I understood that receiving data from Arduino via Bluetooth to phone is working but transmitting data from phone to Arduino is not working. Hereby attaching the code what I used in Arduino side.
char Incoming_value = 0; void setup() { Serial.begin(9600);
pinMode(LED_BUILTIN, OUTPUT);
} void loop() { if (Serial.available() > 0) { digitalWrite(LED_BUILTIN, HIGH); Incoming_value = Serial.read(); Serial.write(Incoming_value); delay(500); digitalWrite(LED_BUILTIN, LOW); }
Hopefully waiting for your help and thanks in advance.