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.How to use and Arduino shield with the Raspberry Pi

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

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

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

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

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.


Source: How to use and Arduino shield with the Raspberry Pi

About The Author

Ibrar Ayyub

I am an experienced technical writer holding a Master's degree in computer science from BZU Multan, Pakistan University. With a background spanning various industries, particularly in home automation and engineering, I have honed my skills in crafting clear and concise content. Proficient in leveraging infographics and diagrams, I strive to simplify complex concepts for readers. My strength lies in thorough research and presenting information in a structured and logical format.

Follow Us:

Leave a Comment

Your email address will not be published. Required fields are marked *

Scroll to Top