Begin your myCobot
②：Power adapter for mycobot
④：Data line of type-C
Firstly, you need to connect power supply, display, keyboard and mouse as shown in the following image, then initiate myCobot by the red switch.
Notes： Japanese users are recommended to use KSY's UNI345-1238.
Notes：myCobot-pi startup password： mycobot /mycobotpro
Roboflow startup password： mycobot/mycobotpro
Turn on the mechanical arm switch. The following figure shows the results displayed on the screen after the manipulator is lit.
The use of python
We've pre-loaded the python API package in the Raspberry Pi version of myCobot
pymycobot, just use it in your code.
You can create a python file at any position, for example:
light_led.py, then write the following code in the file:
from pymycobot.mycobot import MyCobot from pymycobot import PI_PORT, PI_BAUD mc = MyCobot(PI_PORT, PI_BAUD) mc.set_color(255, 0, 0)
After saving, run it. You'll see the light board on top of myCobot lit in red.
Update the library
If our library is updated, it can also be easily synchronized on Raspberry Pi.
[sudo] pip install pymycobot --upgrade
[sudo] pip3 install pymycobot --upgrade
In addition to the above content, we provide more examples to help users use the python API.
You can download it at the following address:
The use of ROS
We've pre-installed ROS kinetic in the Raspberry version of myCobot and provide the package
myCobotROS, you can use it easily.
- Go to the working directory:
cd ~/ros_catkin_ws source devel/setup.bash
- Go to myCobotROS's redeme, follow
3.Visualization in RViz, the address is as follows: