Skip to content

Commit 3a07017

Browse files
committed
更换吸泵myblockly使用图片为英文版本
1 parent 8b0c985 commit 3a07017

File tree

7 files changed

+26
-15
lines changed

7 files changed

+26
-15
lines changed

1-ProductIntroduction/1.4-AccessoriesTools/1.4.2-PumpCup/1-ModuleSuctionCup.md

+26-15
Original file line numberDiff line numberDiff line change
@@ -89,21 +89,32 @@ In operation, when the solenoid valve is energized, it opens, allowing vacuum pr
8989
> To test if the jaws are available after installation, use myBlockly.
9090
> [myblockly download](../../../5-ProgramingApplication-myblockly-uiflow-mind/5.1-myblockly/5.1.1-myBlocklyFirstUse.md#myblockly下载安装)
9191
92-
1. After confirming that the structural and electrical connections are complete, start the arm and open the myblockly software when the graphical interface appears.
93-
![](../../../resources/1-ProductIntroduction/1.4/1.4.2-PumpCup/myblockly验证0.png)
94-
2. Modify the baud rate to 115200:
95-
![](../../../resources/1-ProductIntroduction/1.4/1.4.2-PumpCup/myblockly验证1.png)
96-
3. Find `Base` in the list on the left and select the `Set Pin Out` module:
97-
![](../../../resources/1-ProductIntroduction/1.4/1.4.2-PumpCup/myblockly验证2.png)
98-
4. Set `pin number` to `1` and `output` to `0`:
99-
![](../../../resources/1-ProductIntroduction/1.4/1.4.2-PumpCup/myblockly验证3.png)
100-
5. Find `Time` and select the `Sleep` module:
101-
![](../../../resources/1-ProductIntroduction/1.4/1.4.2-PumpCup/myblockly验证4.png)
102-
6. Set the time as desired, here it is set to `2s`:
103-
![](../../../resources/1-ProductIntroduction/1.4/1.4.2-PumpCup/myblockly验证5.png)
104-
7. Repeat the above steps for the final setup as follows:
105-
![](../../../resources/1-ProductIntroduction/1.4/1.4.2-PumpCup/myblockly验证6.png)
106-
8. Hold the suction cup against the object and click the green run button in the upper right corner to allow the suction cup to hold the object for 2s and then release it.
92+
1. After confirming that the structural and electrical connections are complete, start the arm and open the myblockly software when the graphical interface appears.
93+
![](../../../resources/1-ProductIntroduction/1.4/1.4.2-PumpCup/myblockly验证0.png)
94+
2. Modify the baud rate to 115200:
95+
![](../../../resources/1-ProductIntroduction/1.4/1.4.2-PumpCup/myblockly验证1.png)
96+
3. Find `Base` in the list on the left and select the `Set Pin Out` module:
97+
![](../../../resources/1-ProductIntroduction/1.4/1.4.2-PumpCup/myblockly验证2.png)
98+
4. Set `pin number` to `1` and `output` to `0`:
99+
![](../../../resources/1-ProductIntroduction/1.4/1.4.2-PumpCup/myblockly验证3.png)
100+
5. Find `Time` and select the `Sleep` module:
101+
![](../../../resources/1-ProductIntroduction/1.4/1.4.2-PumpCup/myblockly验证4.png)
102+
6. Set the time as desired, here it is set to `2s`:
103+
![](../../../resources/1-ProductIntroduction/1.4/1.4.2-PumpCup/myblockly验证5.png)
104+
7. Repeat the above steps for the final setup as follows:
105+
![](../../../resources/1-ProductIntroduction/1.4/1.4.2-PumpCup/myblockly验证6.png)
106+
8. Final code:
107+
```python
108+
from pymycobot.mycobot import MyCobot
109+
import time
110+
111+
mc = MyCobot('/dev/ttyAMA0', 115200)
112+
mc.set_basic_output(1,0)
113+
time.sleep(2)
114+
mc.set_basic_output(1,1)
115+
time.sleep(2)
116+
```
117+
9. Hold the suction cup against the object and click the green run button in the upper right corner to allow the suction cup to hold the object for 2s and then release it.
107118

108119
- Programming Development:
109120

Loading
Loading
Loading
Loading
Loading
Loading

0 commit comments

Comments
 (0)