elephantrobotics / pymycobot

This is a python API for ElephantRobotics product.
MIT License
111 stars 55 forks source link

myCobot 280 M5Stack - Issues with Suction Pump and Basic Pin 5 #76

Open lalado-o opened 1 month ago

lalado-o commented 1 month ago

As suction pump is correctly connected to the base of robotic arm, when you set basic pin 5 to mode 0 (meaning that the suction pump is turned ON), there is a chance that myCobot would reboot, resulting in forced exit of currently running programs in the robotic arm

The following code is to turn on the suction pump:

mc = MyCobotSocket(ip,port) #  or mc = MyCobot(com_port,baudrate)
time.sleep(1)
mc.set_basic_pin(5,0)

Note that no matter the code (or whatever language/software), as long as you set the basic pin 5 mode to 0, there is a chance to reboot myCobot

anla-xu commented 1 month ago

We are currently dealing with this issue