Manual

Table Of Contents
Arduino Kit Demo Description 10 DobotPixy Demo
Issue V2.1 (2019-12-05) Demo Description Copyright © Yuejiang Technology Co., Ltd
54
Attached table 46 Get A/D input
Attached table 47 Set the velocity of extended motor
Attached table 48 Set the velocity and movement distance of extended motor
Attached table 49 Enable the color sensor
Prototype
uint16_t Dobot_GetIOADCEx( uint8_t address)
Description
Get A/D input
Parameter
address: I/O address(1~20 )
Return
Return A/D input
Prototype
void Dobot_SetEMotorEx( uint8_t address, uint8_t enable, uint32_t speed)
Description
Set the velocity of extended motor
Parameter
address: Motor index. 0:Stepper1, 1:Stepper2
enable: Control motor. 0:Disabled, 1:Enabled
speed: Motor velocityPulse number per second
Return
None
Prototype
void Dobot_SetEMotorSEx( uint8_t address, uint8_t enable, uint32_t speed, uint32_t
deltaPulse)
Description
Set the velocity and movement distance of extended motor, The Dobot will move for
some distance at a constant velocity after calling this API
Parameter
address: Motor index. 0:Stepper1, 1:Stepper2
enable: Control motor.0:Disabled, 1:Enabled
speed: Control motorPulse number per second
deltaPulse: The distance that motor moves(Pulse number)
Return
None
Prototype
void Dobot_SetColorSensorEx( uint8_t enable, uint8_t port)
Description
Enable the color sensor
Parameter
enable: 0:Disabled, 1:Enabled
port: the Dobot interface that the color sensor is connected to. Please select the