how to use TX1,2,3 and RX1,2,3 on Arduino MEGA board?

Hello
I am making a simple RC car project using Arduino mega, I want to use a Bluetooth module with it and it works fine as long the Bluetooth is connected to TX0 and RX0 .

but the problem is that I want to use my MEGA with a motor shield which covers the TX0 and RX0, the shield does not use them it just cover them.

so my question is how to use the other TX and RX ports on the mega instead of TX0 and RX0 ports?

Thanks

TX0 and RX0 are Serial.write();
TX1 and RX1 is Serial1.write();
TX2 and RX2 is Serial2.write();
TX3 and RX3 is Serial3.write();

2 Likes

I recognise that there is a motor shield that is no stackable but, if yours is, you may still access serial0 anyway, as the pins should just pass through the shield to the Mega below.

spirit:
TX0 and RX0 are Serial.write();
TX1 and RX1 is Serial1.write();
TX2 and RX2 is Serial2.write();
TX3 and RX3 is Serial3.write();

Thank you so much :smiley: