4.1 Basic Edition
4.1.1 Bill of Materials:
| Name | Quantity |
|---|---|
| myAGV Pro Complete Machine | 1 |
| Wireless Controller | 1 |
| USB Cable | 1 |
| Wrench Tool | 1 |
| Product Catalog | 1 |
4.1.2 Quick Experience
You need to install the python environment on your computer and install the pymycobot library. For installation methods, please refer to python installation and pymycobot. After configuring the environment, you can perform the following steps:
Place
myAGV Proon a horizontal plane, open the emergency stop ofmyAGV Pro, press the power button, and startmyAGV ProUse the
TYPE-Ccable to connectmyAGV Proand Windows
Open the PC's device manager and find the
USBdevice ofmyAGV Pro
Create a new
example.pyfile in any directory of Windows and enter the following code
import time
from pymycobot import MyAGVPro
def main():
agv = MyAGVPro(port="COM28", baudrate=1000000, debug=True)
if agv.is_power_on() != 1:
agv.power_on()
agv.move_forward(0.1)
time.sleep(2)
agv.stop()
agv.move_backward(0.1)
time.sleep(2)
agv.stop()
agv.turn_left(0.1)
time.sleep(2)
agv.stop()
time.sleep(1)
agv.turn_right(0.2)
time.sleep(2)
agv.stop()
if __name__ == '__main__':
main()
- Execute
python example.pyin the command line, and you can seemyAGV Prostart to move