Introduction: How to Use and Arduino Shield With the Raspberry Pi

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

  1. Raspberry Pi
  2. Arduberry
  3. Any Arduino shield (we are using a Dexter Industries GPS shield for example)
  4. 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.

Comments

author
wildwingman (author)2016-03-23

the Arduberry is just a Arduino board that plugs into the GPIO pins it is just another way to connect a Arduino to the Raspberry Pi. you cant access the Arduino shields directly from the Raspberry Pi

author
seamster (author)2014-09-25

Thanks for sharing this!

About This Instructable

29,205views

100favorites

License:

More by dexter_industries:BrickPi3 BalanceBot – A Segway With the Raspberry PiDo You Want to Build a Snowman?Raspberry Pi Servo Flag Waver
Add instructable to: