Understanding the Arduino Pins

Hi, I recently purchased the atomic imu 6dof and am trying to connect it to my homemade arduino while then having the arduino connect to my computer. Since I am using the atmega 328 I believe that I only have one serial port which are pins 2 and 3 of the atmega 328. Currently I am using those pins to connect to my computer and obviously that is how my atomic imu is supposed to connect. First of all, I am wondering if I am correct to assume I only have one serial port.

If so, i was wondering if I could program the other digital pins to act as serial ports so that I can have both my computer and the atomic imu connected at the same time?

thanks in advance

I think I found the answer to my own question:


Yes, that's a good/recommended solution. An alternative is to use the RX/TX pins but that means disconnecting them from the IMU whenever attaching the Arduino to the computer, which is rather tedious - and I'm not entirely sure it works on every board.

Use a Mega. Has several sets of Tx/Rx for this reason.

Actually, just spotted something: NewSoftSerial (http://arduiniana.org/libraries/newsoftserial/) is preferred over SoftwareSerial these days I believe.