Adding Arduino shields to the Raspberry Pi can be a very big pain. You end up having a mess of wires running around and setting up the software is a challenge in it’s own right.
Here is a simple solution to start using your own Arduino Shields with the Raspberry Pi in under 10 minutes.
Step 1: Parts needed
- Raspberry Pi
- Any Arduino shield (we are using a Dexter Industries GPS shield for example)
- An SD card with Dexter Industries Raspbian Image
Step 2: Connecting the Arduino Shield to the Raspberry Pi
Place the Arduino GPS shield over the Arduberry and mount the Arduberry on the Raspberry Pi GPIO headers. Now turn on the Raspberry Pi.
Step 3: Add the library
Now download the Arduino GPS library from here:
sudo wget http://dexterindustries.com/files/dGPS_Example_3.... -O /usr/share/arduino/libraries/dGPS_Example_3.zip
Now unzip the library at /usr/share/Arduino/libraries:
sudo unzip /usr/share/arduino/libraries/dGPS_Example_3.zip
Step 4: Upload the code to the Arduberry
Open Arduino IDE from Start -> Electronics -> Arduino IDE, and open the example from File -> Examples ->dGPS_Example_3. Change the programmer, Tools->Programmer->Raspberry Pi GPIO and upload the sketch to the Arduberry(use Ctrl+Shift+U to upload).
Step 5: Print the data from the Arduino shield to the Serial Monitor
Select the Serial Port, Tools->Serial Port->/dev/ttyS0 and click on the Serial Monitor button to start receiving the data.
Check out the Arduberry Page for more information and interesting projects.