Manual

Table Of Contents
Arduino Kit Demo Description 7 MoveBlock Demo
Issue V2.1 (2019-12-05) Demo Description Copyright © Yuejiang Technology Co., Ltd
19
#define BUTTON_REDPIN A0 // Interface that the red button connects to
#define BUTTON_GREENPIN A2 // Interface that the green button connects to
#define BUTTON_BLUEPIN A4 // Interface that the blue button connects to
Realization Process
If the cube is moved from point A to point B and then from point B back to point A with
multiple times. Figure 7.2 shows its realization process.
Figure 7.2 Realization process
Critical Code Desrciption
Dobot Magician communicates with Arduino over UART interface (10 PIN) on the base of the
Dobot Magician, using the Dobot protocol. We have provided Dobot library which encapsulates
part of the Dobot Magician APIs, being called directly to control Dobot Magician. Before debugging
this Demo, please select the Dobot library on the Sketch > Include Library menu.
NOTICE
Please long press the Key button on the back of base of Dobot Magician to operate
homing before debugging this Demo.
Before debugging this Demo, please connect Dobot Magician and DobotStudio and operate
homing. And then press the Unlock key on the Forearm and drag Dobot Magician to move to the
positions where the cube is to be placed (A point and B point), then record their Cartesian
coordinates from the operation panel pane of DobotStudio page to write in this demo for picking
and placing cube.