How to Use and Arduino Shield With the Raspberry Pi

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 -O /usr/share/arduino/libraries/

Now unzip the library at /usr/share/Arduino/libraries:

sudo unzip /usr/share/arduino/libraries/

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.

Be the First to Share


    • Fandom Contest

      Fandom Contest
    • Back to School: Student Design Challenge

      Back to School: Student Design Challenge
    • Crayons Challenge

      Crayons Challenge



    Question 24 days ago

    How to use Arduino CNC shield with RPi raspberry pi?


    6 years ago

    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