Willem
Posts: 6
Joined: Tue Nov 20, 2012 4:40 pm

Arduino and Raspberry Pi?

Sat Nov 24, 2012 12:13 am

Hello,

I am not sure if this is placed in the right section, but...

My Raspberry Pi arrives this Tuesday according to UPS and Farnell. I have been preparing stuff and I am curious if it is possible to make an Arduino (the Due for example) work together with the RPi.

An example: control a servo from a webpage, the webpage sends information to the RPi, the RPi sends information through the GPIO and then the Arduino recieves that information and executes an operation.

I might wait for an Assembled Gertboard but I'm not sure if that is as easy to program as an Arduino.

Regards,
Willem

Rich Clemens
Posts: 6
Joined: Sat Nov 10, 2012 4:20 am

Re: Arduino and Raspberry Pi?

Sat Nov 24, 2012 4:07 am

While I do not have that particular application running I have several projects that I have built using both the Pi and a UNO. Should be very possible, but that may depend on your programming skills. :geek:

Rich

Willem
Posts: 6
Joined: Tue Nov 20, 2012 4:40 pm

Re: Arduino and Raspberry Pi?

Sat Nov 24, 2012 11:34 am

I was planning to make a robotic arm (using servo motors), and control it from a webpage :)

Not sure if I need some communication interface (I'm very new to these), or if I can just send signals but the options would be limited if I did that.

User avatar
scruss
Posts: 3155
Joined: Sat Jun 09, 2012 12:25 pm
Location: Toronto, ON
Contact: Website

Re: Arduino and Raspberry Pi?

Sat Nov 24, 2012 2:38 pm

You can control servos attached to an Arduino from Python using pyFirmata. Works quite well, but the documentation is very minimal. Here's a small example I wrote, but it's mostly a Tkinter wrapper.
‘Remember the Golden Rule of Selling: “Do not resort to violence.”’ — McGlashan.
Pronouns: he/him

gordon77
Posts: 4992
Joined: Sun Aug 05, 2012 3:12 pm

Re: Arduino and Raspberry Pi?

Sat Nov 24, 2012 6:01 pm

I use an Uno connected to the USB on the RPi. I send commands to the Uno to control a telescope using the Meade ASCII command set. The RPi is programmed in Python.

Gordon

ivanolivas28
Posts: 1
Joined: Fri Feb 22, 2013 11:20 pm

Re: Arduino and Raspberry Pi?

Fri Feb 22, 2013 11:50 pm

could you please post how to send ASCII characters via the UART using the GPIO or the USB, i have been programmed PICS with CCS so idont have any idea of how to do it in the raspberry , could any body tell my how to do it step by step, which program or interface use to do it

thank you

Return to “Automation, sensing and robotics”