I like to use the hardware serial port (pin
0 RX and
1 TX) to connect a bluetooth module.
Internally these pins are also connected to the onboard USB to serial converter microcontroller which is used to flash the ATMega328 using the bootstrap code.
Now these two signals would interfer, I think.
- Can the RX/TX pins be used to interface with an UART peripheral?
- If, what should one do to avoid colliding signals?
I couldn't find examples in my Arduino books and with Google that used the hardware serial port of the Uno R3 to connect peripherals.
Let me add the following: I don't want to use the Serial monitor (of the Arduino IDE) and the peripheral (Bluetooth module) at the same time. I don't expect that it can be used at the same time. The device should run without USB connected. The Bluetooth module, in this case, will be used to remotely and wirelessly control the Arduino.
Even when not using both together, I suspect the ATMega16U and the periperal might interfer.
And: I know, there's a shield and also an "ArduinoBT", but I don't want to use them as long as it's possible to do this with the hardware serial port of the Uno.
The peripheral (Bluetooth) module operates at 3.3V while the Arduino operates at 5V.