Download Print this page

DFRobot Gravity Series Manual

I/o expansion shield for pyboard

Advertisement

Quick Links

 
 
Gravity: I/O Expansion Shield for
Pyboard SKU:DFR0577
 
Introduction
Gravity: I/O Expansion Shield for pyboard is an multifunctional expansion shield specially designed
for pyboard v1.1. It is compatible with various sensors and electronic modules of
Gravity
Series,
plug and play, no soldering required. It not only helps you avoid the complex wiring , welding and
other operations, but also helps you quickly complete wiring and get started with the sensors or
electronic modules, to build prototypes faster.
This expansion shield is equipped with an external power supply port and a 3.3V/VIN power switch,
which makes the expansion shield able to drive high current components such as motors and
servos. There are 12 sets of digital ports, 8 sets of analog ports, 1 set of serial port and 2 sets of I2C
ports on the expansion shield. Various modules can be easily connected to it. Additional, there is an
onboard 3.3V LDO, which meets the power demand of multiple modules at the same time. What's
more, the RST button and the USR button are all on the shield, which is easy to reset or restore the
motherboard.

Advertisement

loading
Need help?

Need help?

Do you have a question about the Gravity Series and is the answer not in the manual?

Questions and answers

Summary of Contents for DFRobot Gravity Series

  • Page 1     Gravity: I/O Expansion Shield for Pyboard SKU:DFR0577   Introduction Gravity: I/O Expansion Shield for pyboard is an multifunctional expansion shield specially designed for pyboard v1.1. It is compatible with various sensors and electronic modules of Gravity Series, plug and play, no soldering required. It not only helps you avoid the complex wiring , welding and other operations, but also helps you quickly complete wiring and get started with the sensors or electronic modules, to build prototypes faster.
  • Page 2: Specification

    External Power Supply Voltage : 5~12V  External Power Input Current : <1A  Connector: Gravity series standard connector  Ports: 12 sets of digital ports, 8 sets of analog ports, 1 set of serial port, 2 sets of I2C ports ...
  • Page 3 Label Description connect to Gravity series digital modules Digital Port power supply voltage of the port:3.3V Pin:Y3~Y10 connect to the external power supply External Power Port input voltage:5~12V Rest Button reset the pyboard User Button USR button of the pyboard Power Switch choose the power supply voltage of X1~X4 ports, 3.3V or VIN...
  • Page 4 Requirements  Hardware  pyboard V1.1 x1  Gravity: I/O Expansion Shield for Pyboard x1  Gravity 3pin sensor Cable (or several DuPont Cables) x1  MicroUSB Cable x1  Gravity: Analog Sound Sensor x1  9g Metal Gear Micro Servo x1 ...
  • Page 5 Sample Code # Analog sound sensor is used to measure the sound. # Hardware : analog sound sensor, pyboard v1.1 # connect: sensor pyboard data from pyb import ADC,Pin import time adc=ADC(Pin('X5')) # Connect sensor to 'X5' while True: val=adc.read() # Reed the analog value print(val) time.sleep(0.1)
  • Page 6 Case 2:Analog Servo(PPM) Connection Diagram As shown below,connect the servo to the X1 port of the expansion shield. The external power supply must be connected to the USB port of the expansion shield! The power switch must be turned to the VIN side. Sample Code # Hardware : Servo, PYBoard # connect:...
  • Page 7 Expected Result Copy the sample code in the uPyCraft IDE, save it and click the DownloadAndRun button, you will see the servo constantly spinning. For any questions, advice or cool ideas to share, please visit the DFRobot Forum.    ...

This manual is also suitable for:

Dfr0577