Manual

Table Of Contents
Arduino Kit Demo Description 10 DobotPixy Demo
Issue V2.1 (2019-12-05) Demo Description Copyright © Yuejiang Technology Co., Ltd
32
DobotPixy Demo
Introduction
This demo uses Pixy vision sensor and Dobot Magician to recognize and pick-place different
color cubes.
Hardware Connection
Arduino Mega2560, Pixy vision sensor, Dobot Magician and suction cup kit are required in this
demo. For details about the installation and configuration of Pixy vision sensor, please see Appendix
C Pixy Install and Configure Pixy. For the installation of suction kit, please see Appendix B
Installing Suction Cup Kit.
The connection between them is shown in Figure 10.1.
Figure 10.1 DobotPixy2 Connection
NOTE
If you connect the skill kit to other interfaces on the Arduino Mega2560, you also need
to modify the right interfaces that the skill kit connects to in the SmartKit.h file.
Program 10.1 Define the interfaces that the skill kit connects to
#define JOYSTICK_XPIN 7 // Interface that the X-axis of the JoyStick connects to
#define JOYSTICK_YPIN 6 // Interface that the Y-axis of the JoyStick connects to
#define JOYSTICK_ZPIN A5 // Interface that the Z-axis of the JoyStick connects to
#define LED_REDPIN 9 // Interface that the red LED indicator connects to