Manual
Table Of Contents
- 1. Introduction
- 2. FlickerLED Demo
- 3. AlarmLED Demo
- 4. AdjustLED Demo
- 5. Button Demo
- 6. SeedVoiceLED Demo
- 7. MoveBlock Demo
- 8. SeedVoiceDobot Demo
- 9. JoyStick Demo
- 10. DobotPixy Demo
- Appendix A Common Function Description
- Appendix B Installing Suction Cup Kit
- Appendix C Pixy Install and Configure Pixy
- Appendix D Vision Recognition Initialization Process
- Appendix E Multiplexed I/O Interface Description of V1 Dobot Magician
- Appendix F Multiplexed I/O Interface Description of V2 Dobot Magician
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 velocity(Pulse 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 motor(Pulse 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