Claw Machine

by Ahmed Ugas in Workshop > Metalworking

211 Views, 0 Favorites, 0 Comments

Claw Machine

IMG_1844.jpg

We decided to make a low-buget Claw machine.

Supplies

12” T-Slots

1x1 24” Metal Tubing

1x1 12” Metal Tubing 

14” T-Slots 

1/4 x 14 x 24 polycarbonate sheet 

1/4 x 14 x 14 polycarbonate sheet 

1/4-20 x 1 1/2 hex bolts

1/4-20 nuts

Zip ties

super glue


Claw 

Arduino Uno REV3

Breadboard

DC Motors 

pushbuttons

jumper wires


3D prints:

T-slots slider x 3

Prize pit

Gear Chain x 2

  • Gear Chain
  • Sprocket
  • Chain Link

Motor mounts

Motor

Motor mod

Claw Pulley

Claw Pulley Holder

Spacers

A cube that will go into the Metal tubing x8

Print the 3D-Prints

Cut Square Out of Polycarbonate Sheet

  • Cut a 3.5 x 5 square out of the 1/4 x 14 x 24 polycarbonate sheet 
  • Use the onshape document as a reference

Make Holes in the Metal Tubing & Polycarbonate Sheets

IMG_6279.JPG
Screenshot 2024-01-09 at 9.03.37 PM.png
  • Drill holes into the 1/4 x 14 x 24 polycarbonate sheets as shown in the onshape document with a 1/4 drill bit
  • Put in the 1/4-20 x 1 1/2 hex bolts
  • Screw the bolts with 1/4-20 nuts

Attach Prize Pit

  • Super Glue the prize pit onto one of the metal tubing
  • Use the onshape document as reference

The Frame

  • Place the print from the part studio named "between"
  • Put them on both sides of all of the 1x1 24” Metal tubing
  • Place the T-Slot slider on the all the Aluminium t-slots
  • Thread the ends of the T-slots with a 1/4 bits about a inch in.
  • Drill 1/4" holes on the metal tubing as show in the onshape document
  • Screw in the 1/4 bolts accordingly
  • Use the Onshape documents as reference

Attach Gear Chain

IMG_1841.jpg
IMG_1847.jpg
  • Drill holes for motor mounting clip
  • make sure that the sprocket is leveled with the other one
  • Attach motor onto motor mounting clip
  • Repeat on both sides

Put Code in Arduino

Upload the code below into an Arduino Uno REV3:

#include "CytronMotorDriver.h" // must be downloaded from the Arduino Library


const int button1pin = 2;

const int button2pin = 4;


CytronMD motorOne(PWM_DIR, 9, 8);

CytronMD motorTwo(PWM_DIR, 11, 13); //Left Motor in my example Sumobot

int state1;

int state2;


void setup (){

pinMode (button1pin, INPUT_PULLUP);

pinMode (button2pin, INPUT_PULLUP);

}

void loop(){

state1 = digitalRead(button1pin);

state2 = digitalRead(button2pin);



if(state1 == LOW){

motorOne.setSpeed(255);

motorTwo.setSpeed(255);


}


if(state2 == LOW){

motorOne.setSpeed(-255);

motorTwo.setSpeed(-255);

}



else{

motorOne.setSpeed(0);

motorTwo.setSpeed(0);

}


}

Wiring Up the Electronics

IMG_1850.jpg
IMG_1851.jpg

Use the pictures above to set up your electronics