# 4. Knob Control
## 4.1 Getting Ready
(1) Switch the battery box and the expansion board to **"ON"**.
(2) At this time, the RGB light on the expansion board lights up white, and the robotic arm returns to the neutral position.
(3) Simultaneously Press K1 and K2 buttons on the expansion board. Release them once the RGB light turns green to exit the neutral position mode. If the robotic arm does not exit this mode, you cannot control it by knobs or the app.
## 4.2 Operation Instruction
Two seconds after exiting the neutral position mode, the servo on the robotic arm will rotate to the same direction as the current knobs. You can turn five knobs of S1 to S5 on the expansion board to control the five servos of the robotic arm respectively.
(1) The corresponding relationship between the knobs and the servos is shown below:
| Knob | Servo | Control Instruction (robotic arm) |
|---|---|---|
| S1 | Servo No.1 (claw) | Knob controls the opening and closing of the claw |
| S2 | Servo No.2 (wrist joint) | Knob controls the rotation of each joint servo |
| S3 | Servo No.3 (forearm) | |
| S4 | Servo No.4 (arm) | |
| S5 | Servo No.5 (pan-tilt) | Knob controls pan-tilt rotation |
| Mode | Button | Display |
|---|---|---|
| Neutral Position Mode | Automatically enter the mode after powered on, at the same time long press"K1, K2" to exit | ID1-5 servos are at 90 °. |
| Normal mode (green light is steady on) |
Long press the red "K1" | Enter the editing action group mode to clear the original action group. |
| Short press the yellow "K2" | Enter the running action group mode to run the saved action group once. | |
| Long press the yellow "K2" | Enter the running action group mode and loop run the saved action group. | |
| Editing action group mode (red light is steady on) |
Short press the red "K1" | Save action. |
| Long press the red "K1" | Save the editing action group and exit to switch to the normal mode. | |
| Running action group mode (yellow light is steady on) |
Short press the red "K1" | Stop the running action group and switch to the normal mode. |
(2) After 2 seconds, the servo returns to the knob control position. Then, long-press the red button **"K1"** on the expansion board. The buzzer will emit a prompt sound, and the RGB light color will change from green to red, indicating entry into action group editing mode.
(3) Rotate the knobs of S1 to S5 to rotate the robotic arm to the left, making it be in the grasping state. Short press **"K1"** and the buzzer short sounds to save the first action.
(4) Next, you can place the block under the robotic gripper. Rotate the knob S1 to control the robotic gripper to grasp the block. Short press the red button **"K1"**, and the buzzer makes a short sound to save the action.
(5) Rotate the knob S4 to control the robotic arm to raise up. Short press the red button **"K1"**, and the buzzer makes a short sound to save the action.
(6) Rotate the knob S5 to turn the robotic arm to the right. Short press the red button **"K1"**, and the buzzer makes a short sound to save the action.
(7) Rotate the knob S4 to control the robotic arm to move down. Short press the red button **"K1"**, and the buzzer makes a short sound to save the action.
(8) Rotate the knob S1 to control the robotic arm to release the block. Short press the red button **"K1"**, and the buzzer makes a short sound to save the action.
(9) Rotate the knob S4 to control the robotic arm to raise up. Short press the red button **"K1"**, and the buzzer makes a short sound to save the action.
(10) Rotate the knobs S1 to S5 to return the robotic arm to the neutral position. Short press the red button **"K1"**, and the buzzer makes a short sound to save the action.
(11) Finally, long press the red button **"K1"**. The buzzer makes a long sound and the RGB turns green. The robotic arm saves the current editing action group and exits the mode.
:::{Note}
Entering the action group editing mode by long-press the red button "**K1**" will erase all previously edited action group data.
:::
### 4.3.3 Run Action Group
After editing action groups, you can execute the saved action group by pressing the yellow button **"K2"** on the expansion board. A long press will loop the action group.
:::{Note}
* Edited action group is able to be saved after power-off. Which means it can be run again at the next boot.
* To stop a running action group, you can short press the red button "**K1**" to switch the robotic arm back to normal mode.
:::