hi . i have connected RN42 Bluetooth module with arduino MEGA. (rx to tx,tx to rx)
so i can send and recieve data via serial monitor.
the problem is that if in want to send/recieve data via USB i need to disconect bluetooth wires.
is there any solution?
Sure, your mega board has four hardware serial ports. Simply wire the bluetooth to either Serial1, Serial2, or Serial3 ports (see pin numbers in reference below), which would leave the USB exlusive use of the Serial port (the one on pins 0 and 1).