DFRobot
Gravity: Arduino Shield for Raspberry Pi B+/2B/3B/3B+/4B
The Gravity Arduino Shield for Raspberry Pi brings Arduino-compatible I/O to your Raspberry Pi B+, 2B, 3B, 3B+, or 4B. Built around the ATmega32u4 (Arduino L...
The Gravity Arduino Shield for Raspberry Pi brings Arduino-compatible I/O to your Raspberry Pi B+, 2B, 3B, 3B+, or 4B. Built around the ATmega32u4 (Arduino Leonardo), it sits on top of your Pi and gives you access to all standard Arduino shields and sensors alongside the Pi's own GPIO, I2C, SPI, and UART interfaces.
This combination lets you leverage the Raspberry Pi's computing power for tasks like image processing, wireless communication, and complex algorithms, while the Arduino handles real-time I/O, motor control, and fast sensor response — the best of both platforms in one stack.
Key Features
- ATmega32u4 Onboard – Arduino Leonardo-compatible microcontroller
- Full Arduino Pin Compatibility – Works with standard Arduino shields and Gravity sensors
- 20 Digital I/O + 6 Analog I/O – Full Arduino pin mapping
- Raspberry Pi GPIO Access – 16 GPIO, I2C, SPI, and UART from the Pi
- Stackable Design – Mounts directly on the Raspberry Pi's 40-pin header
Specifications
- Microcontroller – ATmega32u4 (Arduino Leonardo)
- System Voltage – 5V
- Arduino Digital I/O – 20
- Arduino Analog I/O – 6
- Raspberry Pi GPIO – 16
- Raspberry Pi I2C – 1
- Raspberry Pi SPI – 1
- Raspberry Pi UART – 1 (TTL)
- Dimensions – 86 × 61 × 26 mm
Compatibility
- Raspberry Pi Model B+
- Raspberry Pi 2 Model B
- Raspberry Pi 3 Model B / B+
- Raspberry Pi 4 Model B
Ideal For
- Combining Arduino real-time I/O with Raspberry Pi computing power
- Robotics projects requiring motor control and vision
- IoT projects using Arduino sensors with Pi networking
- Prototyping with existing Arduino shield libraries
Package Contents
- 1× Arduino Expansion Shield for Raspberry Pi
- 1× 20 cm Micro-USB Cable
- 1× CR1220 Button Cell Battery
Resources
Jargon buster
Plain-language definitions for the technical terms used above.
- GPIO
- General-purpose input/output pins are microcontroller pins you can set in software to read signals, switch devices on and off, or connect to peripherals. The number of GPIO pins matters because it limits how many buttons, LEDs, sensors, and other parts you can wire directly to the board.
- Gravity
- Gravity is DFRobot’s plug-in connector system for sensors, motors and modules, using standard cables to reduce loose jumper wiring. It matters because Gravity-compatible parts can connect directly to these ports, while non-Gravity parts may need adapters or manual wiring.
- I2C
- I2C is a two-wire communication bus used by many sensors and small modules. It matters because several I2C devices can share the same two wires, but each device needs a compatible address and your controller must support I2C.
- IoT
- Short for Internet of Things, meaning physical devices that connect to networks or the internet to send data or be controlled remotely. It matters if you want projects such as connected sensors, remote controls or classroom data-logging activities.
- microcontroller
- A microcontroller is a small computer on a chip that runs your program and controls connected inputs and outputs. For this product, it is the part that reads buttons and sensors, drives the display and speaker, and communicates over Bluetooth.
- Shield
- An add-on board that plugs into a main controller board to give it extra features such as sensing, motor control or communication. Knowing a product supports shields helps you judge whether it can connect neatly into an existing maker-board setup.
- SPI
- A fast serial communication bus often used for displays, memory cards, and sensors. It matters because SPI devices need specific pins for clock and data, plus a separate chip-select line for each device.
- UART
- UART is a simple serial connection that sends data over separate transmit and receive wires, often labelled TX and RX. It matters because this module is designed to replace a wired UART cable with a wireless link while keeping the same serial data format.
Find this product in
Brands
Raspberry Pi
Gravity Arduino Shield for Raspberry Pi Schematic
Schematic · 611.0 KB · Click any page to view full size
Gravity Arduino Shield for Raspberry Pi Assembly Drawing
Mechanical Drawings · 51.3 KB · Click any page to view full size
Supplier page — dfrobot.com
Supplier Description · 675.9 KB · Click any page to view full size