user30336: I have two modules where I want to control them through a single Arduino UNO.
I guess Serial.begin(9600) uses serial port and UART. But Im not sure about SPI.
Can I use SPI library hence the SPI communication together with serial communication(serial.begin) at the same time to communicate with two different modules?

user4143: Yes. UART and SPI are completely different things.  One uses pins 0/1, the other uses pins 11/12/13, and they use separate hardware and control registers inside the chip.

30336: <p>I have two modules where I want to control them through a single Arduino UNO.</p>

<p>I guess Serial.begin(9600) uses serial port and UART. But Im not sure about SPI.</p>

<p>Can I use SPI library hence the SPI communication together with serial communication(serial.begin) at the same time to communicate with two different modules?</p>
 4143: <p>Yes. UART and SPI are completely different things.  One uses pins 0/1, the other uses pins 11/12/13, and they use separate hardware and control registers inside the chip.</p>
