Trying to Make a 3 DoF Arm with Mini Maestro 18

@PatrickM ,

The Usc classes were what I got to work but I have since moved on from those classes and the above .py file I listed.

Right now, I am trying some “complicated” code to account for future use.

The “complicated” python3 source code is just complicated to me for now.

I found it through research and I have been adapting it to work with python3 and a Linux SBC (and of course the 18-channel maestro).

Again, right now, I have been trying to set up five devices and a wild set of USB stacks.

For some reason, I am getting a USB ERROR that floods my bash console:

Errno 16 is the error. Device busy.

I think it has something to do with the way Linux is enumerating /dev/ttyACM0 and /dev/ttyACM1.

I started a pyusb issue to see if it was a known bug on their side.

This is what was typed to the pyusb developers.

# USB Error: [Errno 16] Resource busy
dev.write(command, [command, channel, low_bits, high_bits])

or…

# ValueError: Invalid endpoint address 0x1
dev.write(1, [command, channel, low_bits, high_bits])

The source code and error are listed.

Also, I see devfs was used previously and has not been updated to devtmpfs which is why my Debian/GNU Linux SBC, I believe, is acting funny to some of my commands. I am 100% sure though.

pyserial seems to be better for me. I stopped using pyusb.