35
Programming the Control Panel
In the previous section you created an AVR file which contained the pose and sequence reference
entries. The defined entries serve as the basis for the programming of the functions for each control
panel button.
You can customize the buttons on the control panel with the use of the XYZrobot Editor or the
Arduino application. Customizing the control panel is explained further in the following section.
Customizing Control Panel Buttons on Arduino
To program a control panel button:
1.
Before starting this procedure, see
“Before You Start”
on page 33
.
2.
Connect the Robotic Arm to your computer. Connect one end of a USB cable to the computer
(USB Type A) and the other end to the Robotic Arm (USB Type Mini-B).
3.
Once connected, power up the Robotic Arm, see “Testing the Robotic Arm” in the assembly
manual.
4.
Open the Arduino software if it is not open already.
5.
Click
File > Open
and select the source file to use in the programming. For instructional
purposes, the file name
OTHERS_USER_MOTION.h
is used here.
6.
To re-define the reference action of a button on the remote control, locate the section
////==== Robot Button Control & Remote Control ====////
.
7.
In this step, you will modify the RB_1 definition, see the following image.
8.
Sequence U_s1 was previously defined as ActionNo_1, see
“Before You Start”
on page 33
.
Change the RB_1 sequence to 1.
////==== User Motion Control ====////
//=== Robot Button ====
#define RB_1 1
#define RB_2 0
#define RB_3 0
#define RB_4 0
9.
From the menu toolbar, click
Tools > Board
and select the option
XYZrobot-BOLIDE
option.
10.
Next, select the COM port associated with the Robotic Arm. From the menu toolbar, click
Tools
> Serial Port
and select the associated option.
NOTE:
If the device is not detected, the USB driver may not be recognized. The option to select
the associated COM port will not be available. You will need to update or re-install the
serial port drivers, see
“USB Drivers”
on page 44
.
03
Operations