# 🔄Rotary Module

{% hint style="success" %}
**📅Update: 2021/06/08**
{% endhint %}

{% hint style="info" %}
:man\_mage: **Tips:** Upgrade DexArm's firmware to **V2.2.2** and above before using the rotary module.
{% endhint %}

{% content-ref url="../faq-troubleshooting/faqs/how-to-upgrade-rotrics-firmware" %}
[how-to-upgrade-rotrics-firmware](https://manual.rotrics.com/faq-troubleshooting/faqs/how-to-upgrade-rotrics-firmware)
{% endcontent-ref %}

The rotary module allows you to turn your DexArm into a 4-DOF robot arm. It's designed for makers and DIYers with many great features. The built-in 12V coreless motor and reducers design brings up to 500g payload capacity.

The universal adapter design makes it easy to switch between soft gripper, suction cup module. The 360-degree air connector design allows you to pick and rotate items without twisting the air tube.

We are still working on upgrading the Rotrics Studio software to control the rotary module. Before that, it's recommended to use G-code commands to control the rotary module.

## Table of Contents

{% hint style="info" %}
&#x20;:man\_mage: **Tips:** You can also click the TOP RIGHT **table of contents** to read the corresponding section​ 👉
{% endhint %}

[1) First use set-up](#1-first-use-set-up)

[2) G-code commands for Rotary Module](#2-g-code-commands-for-rotary-module)

[3) Start picking and placing](#3-start-picking-and-placing)

[4) Integrate Rotary Module into your projects](#4-integrate-rotary-module-into-your-projects)

## 1. First use set-up

### 1.1 Part List

![](https://2132465959-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-LtPFIBncU5l4J8tl5Yh%2F-MT-imgowZMD0BJgvkrV%2F-MT-jZjPKNT5_oELV8NF%2F%E7%94%BB%E6%9D%BF%201.png?alt=media\&token=8a773714-0217-4a9a-a402-b28c1fb86306)

### 1.2 Rotary Air Pick Module

#### 1.2.1 Assemble Rotary Air Pick Module

![](https://2132465959-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-LtPFIBncU5l4J8tl5Yh%2F-MT-imgowZMD0BJgvkrV%2F-MT-jctXLGL-hrc_5gFQ%2F%E7%94%BB%E6%9D%BF%202.png?alt=media\&token=38a5a79f-1f43-4341-8088-d7804b7b69bb)

#### 1.2.1 Connect with Air Pump Box

![](https://2132465959-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-LtPFIBncU5l4J8tl5Yh%2F-MT-imgowZMD0BJgvkrV%2F-MT-jgje2vwXfQQTbh4C%2F%E7%94%BB%E6%9D%BF%205.png?alt=media\&token=21ae6242-68c1-46b8-a7be-02a34738f1f7)

### 1.3 Rotary Soft Gripper Module

#### 1.3.1 Assemble Rotary Soft Gripper Module

![](https://2132465959-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-LtPFIBncU5l4J8tl5Yh%2F-MT-imgowZMD0BJgvkrV%2F-MT-jocrEQXtqFLVWSBE%2F%E7%94%BB%E6%9D%BF%203.png?alt=media\&token=c6e60a9a-056b-4d35-984e-55a9532030c6)

#### 1.3.2 Assemble pressure-limiting value

![](https://2132465959-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-LtPFIBncU5l4J8tl5Yh%2F-MT-imgowZMD0BJgvkrV%2F-MT-js8OloZulj9ydT0u%2F%E7%94%BB%E6%9D%BF%204.png?alt=media\&token=e4c675fc-d194-474a-b7a3-b4aef7414f4a)

Use two short air tubes in the OLD pneumatic kit to connect the T-shaped air connector.

#### 1.3.3 Connect with Air Pump Box

![](https://2132465959-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-LtPFIBncU5l4J8tl5Yh%2F-MT-imgowZMD0BJgvkrV%2F-MT-jxQ5pmkZrY9X3GDF%2F%E7%94%BB%E6%9D%BF%206.png?alt=media\&token=09930ff9-971a-4bf7-b9b9-d5cea27d4414)

## 2. Control Rotary Module with Rorics Studio

{% hint style="success" %}
:man\_mage: ​**Tips:** Make sure you've updated Rotrics Studio to V1.0.1 and above. You can download it on our Download Center - <https://www.rotrics.com/pages/downloads>
{% endhint %}

Go to **Basic -> Control Panel -> Front End**.

### 2.1 Rotary Air **P**icker

#### **2.1.1 Select the Rotary Air Picker module**

<div align="left"><img src="https://2132465959-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-LtPFIBncU5l4J8tl5Yh%2F-Mboa8E1WLOnNvjpfvAp%2F-Mbocl1kVO-WA749rLBb%2Fimage.png?alt=media&#x26;token=cd887498-e664-4960-8c3c-5d3f67a6907f" alt=""></div>

#### **2.1.2 Control Air Picker** function with **pick / release / off** butto&#x6E;**.**

#### **2.1.3 Control Rotary Function**

**A. Relative mode**

In relative mode, the rotary module with mode relatively. We can control the rotated degrees and the direction. Click the <img src="https://2132465959-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-LtPFIBncU5l4J8tl5Yh%2F-Mboa8E1WLOnNvjpfvAp%2F-MbokQIFcjdo5dCStcmq%2FSnipaste_2021-06-10_14-50-05.png?alt=media&#x26;token=0f322199-4041-412b-bfc6-7a9593bc405b" alt="" data-size="original"> to rotate in clockwise direction and click <img src="https://2132465959-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-LtPFIBncU5l4J8tl5Yh%2F-Mboa8E1WLOnNvjpfvAp%2F-MbokC5aIyRSXey4KZlD%2FSnipaste_2021-06-10_14-49-59.png?alt=media&#x26;token=47a40330-b014-49ad-ac69-688110469be5" alt="" data-size="original">to rotate in counter-clockwise direction.&#x20;

**B. Absolute mode**

In absolute mode, the rotary module will rotate to the target degree in the shortest way. The degree range is 0 - 360 degrees.&#x20;

**C. Continous mode**

In continuous mode, the rotary module will keep rotating at a specific speed. The speed range is 0 - 100. Set speed to 0 and it will stop.

### 2.2 Rotary Soft Gripper

#### 2.2.1 Select the Rotray Soft Gripper Module

<div align="left"><img src="https://2132465959-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-LtPFIBncU5l4J8tl5Yh%2F-Mboa8E1WLOnNvjpfvAp%2F-Mbom-GpsGA9XuPz9UZf%2Fimage.png?alt=media&#x26;token=e96e4989-9bf6-4f40-b77c-06101ab87e4c" alt=""></div>

#### 2.2.2 Control Soft Gripper function with grip / release / neutral / off buttons.

**2.2.3 Control Rotary Function**

**A. Relative mode**

In relative mode, the rotary module with mode relatively. We can control the rotated degrees and the direction. Click the <img src="https://2132465959-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-LtPFIBncU5l4J8tl5Yh%2F-Mboa8E1WLOnNvjpfvAp%2F-MbokQIFcjdo5dCStcmq%2FSnipaste_2021-06-10_14-50-05.png?alt=media&#x26;token=0f322199-4041-412b-bfc6-7a9593bc405b" alt="" data-size="original"> to rotate in clockwise direction and click <img src="https://2132465959-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-LtPFIBncU5l4J8tl5Yh%2F-Mboa8E1WLOnNvjpfvAp%2F-MbokC5aIyRSXey4KZlD%2FSnipaste_2021-06-10_14-49-59.png?alt=media&#x26;token=47a40330-b014-49ad-ac69-688110469be5" alt="" data-size="original">to rotate in counter-clockwise direction.&#x20;

**B. Absolute mode**

In absolute mode, the rotary module will rotate to the target degree in the shortest way. The degree range is 0 - 360 degrees.&#x20;

**C. Continous mode**

In continuous mode, the rotary module will keep rotating at a specific speed. The speed range is 0 - 100. *Set speed to 0 and it will stop.*

## 3. Start picking and placing

### 3.1 With Teach & Play

#### 3.1.1 Enter Teach & Play mode and select module

<div align="left"><img src="https://2132465959-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-LtPFIBncU5l4J8tl5Yh%2F-Mbp2CXquLKAlVe7VNSk%2F-Mbp2KMFbm6c7H_Sslsf%2Fimage.png?alt=media&#x26;token=8a6ca7a1-34a3-41d2-8e51-7b7842c8fe32" alt=""></div>

<div align="left"><img src="https://2132465959-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-LtPFIBncU5l4J8tl5Yh%2F-Mbp2CXquLKAlVe7VNSk%2F-Mbp2SEWMFw_Cf-8-n6B%2Fimage.png?alt=media&#x26;token=c7af66b7-5c0b-4381-9ee2-370242a341a0" alt=""></div>

#### 3.1.2 Drag DexArm to the target position

#### 3.1.3 Control the rotary and pneumatic functions

<div align="left"><img src="https://2132465959-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-LtPFIBncU5l4J8tl5Yh%2F-Mbp2CXquLKAlVe7VNSk%2F-Mbp2htHKm8lQ9jDxJpW%2Fimage.png?alt=media&#x26;token=a04699a4-4aae-449d-ad87-bc00a84fb9a1" alt=""></div>

#### 3.1.4 Record the movement

<div align="left"><img src="https://2132465959-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-LtPFIBncU5l4J8tl5Yh%2F-Mbp2CXquLKAlVe7VNSk%2F-Mbp2qeyy0rRc7Pp6YX6%2Fimage.png?alt=media&#x26;token=40b6405a-74d2-474e-86fe-d1f245b5fafe" alt=""></div>

#### 3.1.5 Replay the movements

<div align="left"><img src="https://2132465959-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-LtPFIBncU5l4J8tl5Yh%2F-Mbp2CXquLKAlVe7VNSk%2F-Mbp3-Zy1ap94CQy4w42%2Fimage.png?alt=media&#x26;token=dc424b69-9f20-4d9a-a172-67fe75ae88f1" alt=""></div>

### 3.2 With Scratch

#### 3.2.1 Set front end module

Use the "select module \_\_" block to select the right module.

<div align="left"><img src="https://2132465959-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-LtPFIBncU5l4J8tl5Yh%2F-MbovmUo_bSw2JxDLp-0%2F-Mbp0aGAC-_1L1Sx3e4a%2Fimage.png?alt=media&#x26;token=40079d4a-55d1-4063-8235-b2cffcddd221" alt=""></div>

#### 3.2.2 Move DexArm to target position

{% hint style="success" %}
:man\_mage: **Tips:** Make sure you've moved DexArm to HOME position first.
{% endhint %}

<div align="left"><img src="https://2132465959-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-LtPFIBncU5l4J8tl5Yh%2F-MbovmUo_bSw2JxDLp-0%2F-Mbp0vRa5WJa1xkhsTRl%2Fimage.png?alt=media&#x26;token=1891e6d8-6c68-4c72-90ef-ed59bc521ad5" alt=""></div>

#### 3.2.3 Control Air Picker and Soft Gripper functions

<div align="left"><img src="https://2132465959-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-LtPFIBncU5l4J8tl5Yh%2F-MbovmUo_bSw2JxDLp-0%2F-Mbp20yJJU8R9vty_6kU%2Fimage.png?alt=media&#x26;token=c354fdf7-07f5-4cf9-9aa6-b55b147738b4" alt=""></div>

#### 3.2.4 Control Rotary function

<div align="left"><img src="https://2132465959-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-LtPFIBncU5l4J8tl5Yh%2F-MbovmUo_bSw2JxDLp-0%2F-Mbp29uWSA64D6p2XUGa%2Fimage.png?alt=media&#x26;token=7a1c52a0-cafd-4951-94be-b8878e43fc0c" alt=""></div>

## 4. Integrate Rotary Module into your projects

Basically, the rotary module is a high-level servo motor. We've released the 5-pin end effector port for you to DIY your own rotary module for your projects.&#x20;

**G-code commands for Rotary Module**

### 4.1 Initialize

* **M888 P6** - Set the current end effector as a rotary module and initialize it
* **M2100** - Initialize the rotary module every time DexArm restarts
* **M2103** - Read the current rotary firmware version. The factory version is V1.1.2.

### 4.2 Read position

* &#x20;**M2101** - Read the current rotary position

### 4.3 Relative rotating

* **M2101 R< n >**

Rotate **n** degrees in the clockwise direction

* **M2101 R< -n >**&#x20;

Rotate **n** degrees in the counterclockwise direction

n is a floating number and it could be more than 360. Such as M2101 R1080 stand for rotating 3 turns in the clockwise direction.

### 4.4 Absolute rotating

* **M2101 P< n >**

Rotate to position **n** degree.

**n is a floating number between 0 and 360.**

### 4.5 Continuous rotating

* **M2101 S< n >**&#x20;

Continuously rotating in the clockwise direction at speed **n**.

* **M2101 S< -n >**

&#x20;Continuously rotating in the counterclockwise direction at speed **n**.

**n is a number between 0 and 100. 0 for stopping and 100 for the highest speed.**

Welcome to share your projects with the community! For any questions, please submit a post on [community.rotrics.com](https://community.rotrics.com) or email us at <support@rotrics.com>.


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://manual.rotrics.com/get-start/rotary-module.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
