Connecting a serial device

Hi Everyone,

I'm guessing this should be easy to figure out, but I just can't seem to find the information I'm looking for.

I have a serial controlled IMU that I'd like to read data from using my Pro-Mini. How do I do that and still be able to print to the terminal?

Thanks!

try the NewSoftSeial library: http://www.arduino.cc/cgi-bin/yabb2/YaBB.pl?num=1233298805

Cool.

So I have the library loaded and I think everything is setup properly. Whenever I try to read, all I get is a -1. Is that indicative of something?

It indicates that there is no data available.

Common practice is to call the available() method to check if data is available before trying to read. The Arduino Serial reference has some example code to show how it’s used.