Why Pi co-op board ?

Questions and discussions about our Arduino add-on board for the Raspberry Pi

Why Pi co-op board ?

Postby Derek » Tue Jul 22, 2014 5:15 pm

Alan
I currently use the Raspberry Pi as a programming tool for the Arduino Uno via a USB lead using the RPi 'IDE' setup. What I would like to know is, what advantage does your Pi Co-op board using serial for communication have over my setup using usb ?

I would like to have an A/D value (or other derived value) that is created within the Arduino program, and be able to access this value by perhaps an input function within the Raspberry Pi program. e.g. Can you have both the Arduino & Raspberry Pi running at the same time with their own programs and pass data between each other on request. ?

Does your board allow this or am I asking for the impossible !
Derek
 
Posts: 1
Joined: Tue Jul 22, 2014 4:44 pm

Re: Why Pi co-op board ?

Postby Alan » Thu Jul 24, 2014 10:10 pm

Hi Derek,

Welcome to the forum, :) and apologies for the delay in answering your post.

The Pi Co-op doesn't offer a huge number of advantages over the Arduino other than it's more 'integrated' with the Pi. You don't need the USB cable, it saves some space and is generally cheaper than a full official Arduino. I can't say that it's cheaper than a lot of the fake Arduinos (it's hard to compete with Chinese manufacturers on price ;))

As for your second question, having both the Pi and Arduino running at the same time with their own programs, yes that is definitely possible, and that is actually one of the key advantages of using an Arduino in your projects. As well has having the Arduino read in data, it can be running a small program to process the data, and perhaps in some ways to respond to it quicker than the Pi could. For example, if you were using the ADC on the Arduino to monitor a temperature sensor, and wanted to take some action (such as turn off a motor) when it got too high, then it would be much better to do this on the Arduino than to pass it up to the Pi which might be busy doing something else.

Now, to actually get the data from the Arduino to the Pi, and to process it there, I would recommend using the Arduino serial library, and then something like Python with PySerial on the Pi.

Hope that helps. Please let me know if you need any more info.

Regards

Alan
Alan
Site Admin
 
Posts: 311
Joined: Fri Jun 14, 2013 10:09 am


Return to Pi Co-op

Who is online

Users browsing this forum: No registered users and 0 guests