Skip to content

AaronRandall/robotic-arm-driver

master
Switch branches/tags

Name already in use

A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?
Code

Latest commit

 

Git stats

Files

Permalink
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time
 
 
 
 
 
 
 
 

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