Arduino Microcontroller and 3pi

Hi,

I am new to using the 3pi and would just like to know how to go about setting up the use of an Arduino microcontroller and the 3pi robot. This is so I can use more I/O pins, which i’ve seen some of the users here have done before.

Any help would be appreciated. Thanks :slight_smile:

Hello.

Your could start by looking at the 3pi Serial Slave program pololu.com/docs/0J21/10.a . What you would do is connect a software serial connection on the Arduino to the 3pi’s UART and also connect the grounds between the two devices.

- Ryan

Thanks for the reply and the link,

So connect the serial from Arduino (either pin 0 or 1/RX, TX?) to 3pi UART. And then the two ground?

I’ll give it a try.

Hello.

I would not recommend using the Arduino’s hardware serial. The hardware serial pins are used when “uploading” to the Arduino, so connecting additional hardware to that might interfere with the programming process. Instead, I recommend using different pins on the Arduino and the Software Serial library. And, yes, you do need to connect the grounds between the Arduino and 3pi.

- Ryan