You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit 269f622
Browse filesBrowse the repository at this point in the historyBrowse files
DexArm is developed based on the world's leading open source project **Marlin**, the DexArm firmware is completely open source, and its control commands (G-code) are compatible with Marlin.
4
4
5
5
G-code commands are the general control commands for CNC machines, 3D printers, etc. It is composed of ASCII strings, such as `G1 F2000 X0 Y300 Z0`, G-code commands usually uses `\n` as the sending end character.
6
6
7
-
In Marlin, the slave device will reply `ok` after receiving the G-code commands, the host computer then can send the next commands after receiving the `ok`. In DexArm SDK (pydexarm, etc.), we have encapsulated this sending and receiving mechanism and make it convenient for users to use.
7
+
In Marlin, the device will reply `ok` after receiving the G-code commands, the host computer then can send the next commands after receiving the `ok`. In DexArm SDK (pydexarm, etc.), we have encapsulated this sending and receiving mechanism and make it convenient for users to use.
8
8
9
9
10
+
## Install dependency
10
11
11
-
Communication Parameters
12
+
```
13
+
pip install pyserial
14
+
```
15
+
16
+
## Initialization
17
+
18
+
After the host computer is connected to the robot arm, please send the `GoHOME` command at first to move the arm to the HOME (`X0 Y300 Z0`) position.
19
+
20
+
## Run the example
21
+
22
+
Change the port in pydexarm/example.py properly and run:
23
+
24
+
```
25
+
python pydexarm/example.py
26
+
```
27
+
28
+
## Communication Parameters
12
29
13
30
- Baud rate: 115200
14
31
- Data bits: 8
15
32
- Stop bits: 1
16
33
- Parity: None
17
34
- Flow control: None
18
35
19
-
**Initialization**
20
-
21
-
After the host computer is connected to the robot arm, please send the `GoHOME` command at first to move the arm to the HOME (`X0 Y300 Z0`) position.
22
-
23
-
**Front-end modules**
36
+
## Front-end modules
24
37
25
38
Different front-end modules have different offset values. You need to set the actual front-end module through command `M888 Pn`. After that, the parameters will be saved in the firmware, and when you re-start the arm next time, it will load the saved front-end module parameters automatically.
26
39
@@ -29,23 +42,23 @@ Different front-end modules have different offset values. You need to set the ac
29
42
- Pneumatic module: `M888 P2`
30
43
- 3D printing module: `M888 P3`
31
44
32
-
**Re-calibrate the initial position**
45
+
## Re-calibrate the initial position
33
46
34
47
The DexArm HOME position and motion coordinates are based on the initial position. The initial position has been calibrated before leaving the factory. If there is any error in the arm movement, please re-calibrate the initial position according to the following instruction:
35
48
36
49
1. Adjust the arm to the following position, make sure Axis 1 and Axis 2 is in the maximum position:
37
50
38
51
2. Send command `M889`
39
52
40
-
**Motion commands**
53
+
## Motion commands
41
54
42
55
Please refer to this section for the details.
43
56
44
-
**Stop Commands**
57
+
## Stop Commands
45
58
46
59
Related command `G4`
47
60
48
-
## **Pneumatic module control commands**
61
+
## Pneumatic module control commands
49
62
50
63
- M1000(0D0A) - air pump box to pump in
51
64
- M1001(0D0A) - air pump box to pump out
@@ -55,17 +68,13 @@ Related command `G4`
55
68
56
69
Attention: the commands for the soft gripper and the suction cup is opposite. When air pump box pump in, suction cup will pick the item while the soft gripper will release the item. When air pump box pump out, suction cup will release the item while the soft gripper will grab the item.
57
70
58
-
**Laser module control commands**
71
+
## Laser module control commands
59
72
60
73
- M3 - initiate laser, set duty cycle. Parameters:
0 commit comments