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.
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 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. ...
Need help?
Do you have a question about the Gravity Series and is the answer not in the manual?
Questions and answers