Warehouse cargo handling
1. Hardware deployment
1.1 Hardware list
Name | Quantity | Remarks |
---|---|---|
External fixing plate | 1 | |
M5 slider nut | 8 | |
M5*10 screw | 8 | |
MyCobot 320 M5 | 1 | |
myAGV Pro Navigation-Visual Edition | 1 | |
Wireless handle | 1 | |
USB cable | 1 | |
Wrench tool | 1 | |
XT60 adapter cable | 1 | |
Vertical suction pump 2.0 | 1 | |
Emergency stop | 1 |
1.2 Hardware connection
- Use M5*10 screws to fix the M5 slider nut on the external fixing plate
- Connect the external mounting plate to the 2040 profile on myAGVPro
- Align the myCobot320 M5 base with the screw holes on the external mounting plate
- Fix the myCobot320 M5 base to the external mounting plate
Connect the emergency stop
Connecting the vertical suction pump to MyCobot320 M5
- Take another external fixing plate and connect it to the 2040 profile on myAGVPro, and fix the screws
- After fixing, use sticky rice glue to fix the vertical suction pump box on the external fixing plate
- Fix the vertical suction pump to the end of MyCobot320 M5
- Then connect the vertical suction pump line to the Basic IO output interface of myCobot320 M5
- Take another external fixing plate and connect it to the 2040 profile on myAGVPro, and fix the screws
Use the XT60 adapter cable to connect to MyCobot320 M5
- Connect the other end to the XT60 power port on myAGV Pro
- To start myAGV Pro, you need to release the emergency stop first, then press the power switch
- To start MyCobot320 M5, you also need to release the emergency stop first, then press the power switch, and wait for MyCobot320 to start up
- Use the
Type-C
cable to connect MyCobot320 M5 and myAGV Pro - At this point, the hardware connection between MyCobot320 M5 and myAGV Pro is completed, and the finished product is
as follows:
2. Software deployment
2.1 MyCobot320 firmware burning
Burning firmware by visiting MyCobot320 M5 Burn and update firmware
2.2 myAGVPro firmware burning
Burning firmware by visiting myAGVPro How to burn firmware
3. Source code download
Download the MyCobot320 M5 warehouse cargo handling handle control case source code to the local computer
3.1 Download source code
Use the git tool to download the source code to the local computer
git clone https://github.com/elephantrobotics/pymycobot.git
Use a browser to visit the URL to download the source code compressed package
- Click the
Code
button - Click the
Download ZIP
button - After downloading, unzip it to any folder
3.2 Enter the myAGVPro_Composite_Kit
directory
Use the cd
command to enter the pymycobot/demo/myAGVPro_Composite_Kit
directory
cd pymycobot/demo/myAGVPro_Composite_Kit
3.3 Download dependencies
Use the pip
command to download dependencies
pip install -r requirements.txt
3.4 Modify configuration
Open the
main.py
file and change the value ofCOMPOSITE_KIT_TYPE
toMyCobot320
... # ############################################################################################## # Composite kit configuration # ############################################################################################## COMPOSITE_KIT_TYPE = "MyCobot320" # MyCobotPro630, MyCobot320, MyArmM750, Undefined DEBUG = False ...
Configure the serial port of
MyCobot320
, and check it through thels /dev/tty*
command. Under normal circumstances, the default is/dev/ttyACM2
... # ############################################################################################## # MyCobot M750 and MyCobot 320 Configuration # ############################################################################################## COMPOSITE_KIT_COMPORT = "/dev/ttyACM2" ...
3.5 Run source code
Use the python
command to run the source code
python main.py
4. Quick experience
MyAGVPro+MyCobot320 handle control function definition is as follows:
Note: Before starting the program, you need to connect the handle receiver to the
USB
port of myAGV Pro. After the program is started, when the handle receiver is disconnected, the program will automatically exit