EasyManua.ls Logo

DFRobot Gravity Series - Case 2: Analog Servo (PPM); Connection Diagram; Sample Code

Default Icon
7 pages
Print Icon
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Loading...
Case 2Analog 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:
# Servo PYBoard
# VCC VCC
# GND GND
# DAT X1
import pyb
import time