Skutter - Magpi Magazine


6 posts
by jpow1985 » Wed Jan 09, 2013 9:02 am
Hi All,

I am having an issue with the code for the robotic arm, Skutter.

When I run "sudo python arm.py" the arm does not move.

The arm is being detected when the arm is in the off position it throws an error that no arm has been detected. Also when lsusb -v shows the device.

I have installed libusb-dev and pyusb(I have installed the latest version).

However when I try to run the script the arm does not move.

Any help/thoughts would be much appreciated.

Thanks in advance,

Jamie
Posts: 12
Joined: Mon Dec 31, 2012 12:13 am
by jpow1985 » Wed Jan 09, 2013 8:35 pm
Ok guys! Finally I am now getting somewhere! I have now managed to get the arm to move but not using the code that was in the magpi magazine.

this maybe down to the fact I am using raspian why the code in the magazine does not work.

Any users who are struggling to get the robotic arm. Please go to this website:

http://mattdyson.org/projects/robotarm/

This has a step by step guide on installing py-usb.

Also to install libusb on raspbian you have type sudo apt-get install libusb-1.0.0

I will install Arch Linux and try the code out on that distrubution to see if that makes any difference.

If anybody else has any problems with this please feel free to message me.

Thanks,

Jamie
Posts: 12
Joined: Mon Dec 31, 2012 12:13 am
by jpow1985 » Thu Jan 10, 2013 9:05 am
Solved the problem!

Nothing to do with distribution at all!

The movement part of the program was indented into the def routine.

So if anyone else comes across this post ensure the movement code is not indented under the def MoveArm.

Thanks,

Jamie
Posts: 12
Joined: Mon Dec 31, 2012 12:13 am
by windy54 » Sat Jan 19, 2013 5:51 pm
well you have got further than I have.
I get an error implying it can't find the USB.core file, I.e. the first line of the program.
I followed the instructions to install pyusb, libusb is installed, well I have found something in a folder with the right name!

time to read some more documentation and look at the raspbian wheezy release!
Posts: 32
Joined: Sat Dec 29, 2012 3:37 pm
by windy54 » Sun Jan 20, 2013 12:29 pm
I am now sorted as well, was running "idle 3" and not idle, that got me past the could not find USB core error, and then have to run it as sudo python arm.py to get over the needing root access to the USB port.
Posts: 32
Joined: Sat Dec 29, 2012 3:37 pm
by jpow1985 » Wed Jan 23, 2013 4:59 pm
Glad to here you are all working!
Posts: 12
Joined: Mon Dec 31, 2012 12:13 am