Skip to content

AaronRandall/robotic-arm-driver

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

robotic-arm-driver

Robotic arm driver written in Ruby, for the Maplin Robotic Arm (http://www.maplin.co.uk/p/robotic-arm-kit-with-usb-pc-interface-a37jn).

Installation for Raspberry Pi

git clone git@github.com:AaronRandall/robotic-arm-driver.git
cd robotic-arm-driver
bundle install

Then create a udev rule for the robotic arm:

sudo vi /etc/udev/rules.d/85-robotarm.rules 

With the following content:

SUBSYSTEM=="usb", ATTRS{idVendor}=="1267", ATTRS{idProduct}=="0000", ACTION=="add", GROUP="plugdev", MODE="0666"

Add your user to the plugdev group:

sudo usermod -aG plugdev [YOUR_USERNAME]

And finally, reboot the Raspberry Pi to apply the changes.

Example usage

To try out the robot arm using IRB:

cd robotic-arm-driver
irb

Then enter the following:

require './robotic_arm'

arm = RoboticArm.new

arm.perform_action(RoboticArm::BASE_LEFT, 1)
arm.perform_action(RoboticArm::BASE_RIGHT, 1)

arm.close

About

Robotic arm driver

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages