How i connect HC-06 on Arduino with diffrent RX pin

Hey i'm new to Bluetooth HC-06 and i used it with Arduino + kodular for lighting a lamp with a Relay
everything work fine but i get error if i upload the Code while the TX (HC-06) to RX in arduino is wired, so eveytime i remove the wire>> upload the code then put the HC-06 TX in RX (Arduino) D0 again and it works, But i dont want to do that each time,
i heard arduino serial use the D0 ? so is there a way to solve this?
is there another Pin i can use ?

Than you.

Welcome to the forum

You can use the SoftwareSerial library to create a second serial port on pins of your choice and connect the HC-06 to them

There are examples of its use in the IDE

Thank you for welcoming me

i'll try that, Thank you for answering.

This topic was automatically closed 180 days after the last reply. New replies are no longer allowed.