Raspberry Pi Meet Arduino Shield SKU:DFR0311

Introduction

What happens when a Pi meets an Arduino?

A simple example would be, when building a mobile robot, we use the Raspberry Pi to extend its vision and get a nice tiny monitor. Meanwhile, Arduino handle nicely with the motor driving part and delivers fast responses like obstacle avoidance. Because, without the OS, the response time of rapid changes on the Arduino is much shorter. Also the high performance Pi can deals much easily with wireless communications, imaging and running complex algorithm.

Therefore, with the Arduino and Pi together, you get a powerful “brain” and “cerebellum” for your project, at one time.

Raspberry Pi Meet Arduino Shield SKU DFR0311

Specification

  • Onboard Microcontroller: ATmega32u4
    • Arduino Leonardo Chip
    • Arduino Compatible pin mapping
  • Compatible with All arduino standard shield and sensors
  • System Voltage: 5v
  • Extended 8 Raspberry Pi GPIO with Stardard 3pin sensor pin headers
  • Extended Raspberry Pi SPI & I2C and UART port
  • Dimension: 88mm x 56mm x 17mm

Features

  • Integrate with the Xbee socket
    • Available to be connected to Arduino or Raspberry Pi directly either
    • Compatible with BLE Link(BT4.0)/Bluetooth Bee(BT2.1) and xbee modules
  • Embeded DS1307 RTC module,which keeps time of the Pi even when the power is off, or the battery removed
  • Bidirectional logic converter for Raspberry Pi GPIO to convert signal between 3.3v and 5v

Get Started with Pi Meet Arduino

First of all, let's control a sensor by Raspberry Pi directly with Meet Arduino Shield. Note: For this tutorial, we assume that you've known the basic knowledge about the Raspberry pi. And more details will be focused on how to extend and use more hardware modules and sensors for your Raspberry pi projects. In this part, we will control the Relay module with Python via Pi's GPIO.

Tools Required

  1. Raspberry Pi with Ethernet or WIFI connected
  2. Raspberry Pi Meet Arduino shield
  3. Relay module (or and LED module)

Software Required

  1. Python 2 Installed.
  2. Setup SSH on Raspberry Pi.

If you didn't install python. Please enter the following commands below into LX Terminal via SSH.

1
2
root@raspberrypi:/home/pi# sudo apt-get update
root@raspberrypi:/home/pi# sudo apt-get install python-rpi.gpio

Raspberry Pi Meet Arduino Shield SKU DFR0311.jpg

Step by Step tutorial

1.Plug the Pi Meet Arduino shield to the Raspberry Pi, Which connected with the power and Ethernet.
2.Connect the Relay module(or LED module) to your Pi as the hardware connection shown.
3.Login in your Pi by Putty.

4.Create a Python example code using nano.

1
root@raspberrypi:/home/pi# nano blink.py
1
2
3
4
5
6
7
8
9
10
11
import RPi.GPIO as GPIO
import time
GPIO.setmode(GPIO.BCM)
GPIO.setup(4,GPIO.OUT)
while True:
    GPIO.output(4,GPIO.HIGH)
    time.sleep(1)
    GPIO.output(4,GPIO.LOW)
    time.sleep(1)

5.Run the python sample by the command below.And Check the effect. PS: The module is connected to the GPIO 4 matching the software configuration.

 

For more detail: Raspberry Pi Meet Arduino Shield SKU DFR0311.jpg


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:
LinkedinTwitter

Leave a Comment

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

Scroll to Top