DIY Candy Claw Machine

About This Project
This project will show you how to make your own DIY Candy Claw Machine.
Project Info
Programming Platform:
Difficulty:

Introduction

Eyes on the prize, Violet. Eyes on the prize!

Get ready to challenge your friends and family to a candy hunt as we bring to you the classic arcade game – the candy claw machine – with the touch of DIY! You can now easily make your own DIY candy claw machine at your home and challenge your mates to a candy battle. Whoever gets the maximum number of candies wins!

The Candy Claw Machine is without fail going to add life to your party!

So, what are you waiting for? Hop right in before all the candies disappear!

Components Required

ImageComponentQuantityAvailable in Kit
evive1
Male to Female Jumper Cable 10cmFew
  • None
XY-axis Joystick Module2
16 x 2 LCD Display1
  • None
Breadboard1
12V 5A Power Supply Unit1
  • None
Coin Detection Machine1
  • None
Aluminum T Slot Rod- 20mm x 20mm9 meter
  • None
T Slot 2020 Aluminum Profile L-Shape Interior Inside Corner Connector Joint Bracket24
  • None
4mm Allen Bolts of 8mm length100
  • None
Acrylic Sheet Clear 3mm 1200mm x 900mm1
  • None
Acrylic Sheet Clear 5mm 400mm x 300mm1
  • None
Dual Shaft BO Motor1
Micro Servo Motor with Accessories1
8mm to 5mm Flexible Coupler2
  • None
Lead Screw Rod 8mm2
  • None
8mm Rod4
  • None
8mm Inner Diameter Linear Bearing8
  • None
8mm End Shaft Support8
  • None
M3 bolts of 8 mm LengthFew
M3 NutsFew

Building Guide

Step 1: A brief overview of Claw Machine

The working of the claw machine is simple:

  1. The user can start the game by inserting a coin into the coin machine. After inserting the coin, the user gets 2 min time to control the gripper, catch as many candies and drop them into the left corner from where the user gets the candy out.
    Coin Machine
  2. The user can control the gripper open and closed position by moving the joystick left and right and move the gripper up and down, by moving the same joystick up and down. We have used a servo for gripper open and close mechanism and a motor, thread and a pulley to move the gripper up and down.
    Gripper PulleyClaw Machine Gripper
    There is a limit switch on the top of the Gripper which prevents motor motion when gripper comes close to the Motor.
  3. For the XY movement of the gripper, we have used the lead screw mechanism which is driven by stepper motors. To move the gripper in XY direction, the user uses the other joystick similar to gamepad controllers. There are also limit switches for X and Y directions to prevent any damage.
    Stepper Motor and ChannelsX Channel Movment
  4. The Claw making is decorated with RGB LED, which also tells the user about the time remaining.
    RGB LED Strip

    1. Green for start

      Claw Machine Green Color

    2. Blue for 30 seconds over
      Claw Machine Blue Color
    3. Red for 30 seconds remaining

      Claw Machine Red Color

  5. For visual feedback, there is a 16×2 LCD displaying the instructions and the time remaining during the match.
  6. All the electronics, sensors and actuators used in the project are controlled by evive.
    evive
  7. The frame of the candy claw machine is made using aluminum and acrylic sheet.

Step 2: Building the Frame

  1. The frame of the claw machine is build using Aluminium T Slot Extrusions to give it strength and stability. You have to cut the following lengths of the 2020 Aluminium Extrusion:
    1. Rod2020_1 590mm – 4
      Claw Machine Aluminium Extrusion Rod 2020 590mm
    2. Rod2020_2 400mm – 4
      Claw Machine Aluminium Extrusion Rod 2020 400mm
    3. Rod2020_3 360mm – 4
      Claw Machine Aluminium Extrusion Rod 2020 360mm
  2. After cutting the aluminum rods, we will assemble the base and the top of the frame first. For this, we will use 2 360mm rod and 2 400mm rod. Align the rods as shown in the diagram. Using the T Slot 2020 Aluminum Profile L-Shape Bracket mount the rods together.
    Claw Machine Aluminium Extrusion Frame 2020 Step 1
    Now we have two square frames for top and bottom.
  3. Next, mount the 560mm rods on the corner of the bottom frame as shown in the figure below using T Slot 2020 Aluminum Profile L-Shape Bracket.
    Claw Machine Aluminium Extrusion Frame 2020 Step 2
  4. Again mount the top of the frame on the verticle rods using the bracket.
    Claw Machine Aluminium Extrusion Frame 2020 Step 3

The frame is now ready.

evive Alert
Alert: Make sure you have tightened all the brackets and the frame is stable.

Step 3: Cutting the Acrylic Parts

We will be using Acrylic Sheet for making the Acrylic Parts for various applications in the Claw Machine. We will cut the sheet using laser cutting machines.

  1. For 5mm parts, we will need a 400mm x 300mm sheet. You can download the files from here: 5mm_Acrylic_White_300mmx400mm
  2. For 3mm parts, we will need 2 1200mm x 900mm sheet. You can download the files from here: 3mm_Acrylic_White_1200mmx900mm & 3mm_Acrylic_White_1200mmx900mm2

Step 4: Assembling the Gripper Platform

The final gripper platform will look like this:

DIY Candy Claw Machine Assembling the Gripper Platform Step 5

  1. First, assemble the pullies acrylic part to make a pulley like this:
    DIY Candy Claw Machine Assembling the Gripper Platform Step 1
  2. Next, attach the pulleys to each shaft of the BO Motor.
    DIY Candy Claw Machine Assembling the Gripper Platform Step 2
  3. Take the 2 bearing holders for the motor plate and glue both on the surface of the linear bearing as shown in the figure.
    DIY Candy Claw Machine Assembling the Gripper Platform Step 3
  4. Mount the bearing assembly just made on the Gripper plate using glue.
    DIY Candy Claw Machine Assembling the Gripper Platform Step 4
  5. On the opposite side mount the motor using the motor bracket.
    DIY Candy Claw Machine Assembling the Gripper Platform Step 5
  6. Finally, mount the Lead Screw Nut on the Gripper plate using Nut Holder.

Step 5: Assembling X Axis Movement Channel

The final subassembly will look like this:
DIY Claw Machine Assembling X Axis Movement Channel Final

  1. Make for linear bearing holders and attach them to the X Channel Plate as shown in the figure.
  2. Also, mount the Y Channel Lead Screw Nut Holder on the same side.
  3. Mount the Stepper Holder for X Channel on the X Channel Plate.
    DIY Claw Machine Assembling X Axis Movement Channel Step 1
  4. Mount the Stepper Motor to the holder using M3 Bolts.
    DIY Claw Machine Assembling X Axis Movement Channel Step 2
  5. Mount the Flex Coupler on the shaft of the Motor.
  6. Mount the Lead Screw shaft to the Flex Coupler.
    DIY Claw Machine Assembling X Axis Movement Channel Step 3
  7. Mount the 8mm End Shaft Holder on the sides of the Stepper Motor.
  8. Place the shaft on the End Shaft Holders.
  9. Slide the Gripper platform as shown in the figure:
    DIY Claw Machine Assembling X Axis Movement Channel Step 4
  10. Mount the other two End Shaft Supports on the other end of the X Channel Plate.
    DIY Claw Machine Assembling X Axis Movement Channel Step 5
  11. Also Mount the Lead Screw Holder.
    DIY Claw Machine Assembling X Axis Movement Channel Step 6

Step 6: Assembling the Y Channel on Frame

The final subassembly will look like this:
DIY Candy Claw Machine Assembling the Y Channel on Frame Final

  1. Mount the Stepper Motor in the Y Channel Stepper holder and mount it on one of the sides of the top frame as shown in the figure below. Also, mount the flexible coupler on the stepper motor shaft.
    DIY Candy Claw Machine Assembling the Y Channel on Frame Step 1
  2. On the same Aluminium Extrusion mount the End Shaft Support on both sides of the Stepper Motor.
    DIY Candy Claw Machine Assembling the Y Channel on Frame Step 3
  3. Mount the 8mm rods and the lead screw rod on the End Shaft Support and the flex coupler respectively. Make the end shaft support and stepper motor holder flexible on the Aluminium Extrusion.
  4. Slide the X Channel Assembly on the rods.
    DIY Candy Claw Machine Assembling the Y Channel on Frame Step 4
  5. Mount the End Shaft Supports on the other end of the shaft and the Lead Screw Holder.
    DIY Candy Claw Machine Assembling the Y Channel on Frame Step 5

Step 7: Assembling the Gripper

Assemble the Gripper as shown in the figure below.
Claw Machine Gripper

Attach thread on the top plate of the gripper and the other end to the pulley as shown in the figure.

Gripper Pulley

Step 8: Mounting Acrylic Enclosure

  1. Attach the Top Covers First: Front, Back, and Sides using Allen bolts and T slot nuts.
    DIY Candy Claw Machine Mounting Acrylic Enclosure Step 1
  2. Attach the Base of the Claw Machine to the bottom of the frame.
    DIY Candy Claw Machine Mounting Acrylic Enclosure Step 2
  3. Attach the Front Mid and the Front Bottom Acrylic Parts to the front side of the frame.
    DIY Candy Claw Machine Mounting Acrylic Enclosure Step 3
  4. Attach Controller Sides on the Front Bottom Acrylic Part using nut and bolts.
    DIY Candy Claw Machine Mounting Acrylic Enclosure Step 4
  5. Attach the Controller Top and the Controller Front on the Controller Side Plate.
    DIY Candy Claw Machine Mounting Acrylic Enclosure Step 5
  6. You can now attach the Joystick Modules and the 16×2 Display Module on the Controller Top Plate.
    DIY Candy Claw Machine Mounting Acrylic Enclosure Step 6
  7. Mount the Left Middle SIde Plate and the Left Bottom Side Plate on the left side of the Claw Machine.
  8. Now attach the Barriers on the bottom Plate.
    DIY Candy Claw Machine Mounting Acrylic Enclosure Step 7
  9. Mount the Right Middle SIde Plate and the Right Bottom Side Plate on the right side of the Claw Machine.
    DIY Candy Claw Machine Mounting Acrylic Enclosure Step 9
  10. Mount the Candy Base Plate above the bottom plates.
    DIY Candy Claw Machine Mounting Acrylic Enclosure Step 10

Step 9: Mounting the Coin Counting Machine

Mount the Coin Counting Machine on Front Bottom Plate using Nut and Bolts that come with it.

Coin Machine

Step 10: Mounting the Limit Switches

For Y-Axis, the Limit Switches are mounted in the X Channel Plate and when X Channel Plate goes near the Frame, the limit switch is pressed and motion stops.

Limit Switch

For X-Axis, the Limit Switches are mounted in on the Gripper Plate, and when Gripper Plate goes near the Shaft Support Holders, the limit switch is pressed and motion stops.

Step 11: RGB LED Strip

The RGB LED Strip is mounted on the inner parameter of the top frame using Glue or Double Sided Tape. The wire is extended to reach the Bottom of the Claw Machine.

RGB LED Strip

Step 12: Circuit Diagram

We are using the following components that we have to connect with evive:

  1. Joystick – 2
  2. RGB LED Strip
  3. Motor to Motor Channel 1 of evive
  4. Servo to Servo Channel 2 of evive
  5. 5 Limit Switches with Pull Down Configuration
  6. 2 Stepper Motor
  7. 2 Stepper Motor Drivers A4988
  8. 1 1602 LCD Display
  9. Coin Detecting Machine
  10. 12V 5A Power Supply

Here is the Fritzing Diagram of the Circuit:

Claw Machine Fritzing Circuit Diagram

In real the circuit is very dense and messy, hence we used some wire management in the upper part of the claw machine.

Circuitry of Claw Machine with evive

Step 13: Code

Following is the final code in Arduino IDE:

Step 14: Conclusion

With this, your DIY Candy Claw Machine is ready. Challenge your friends to a candy grabbing duel and get as many candies as you can!

Circuit Diagram

DescriptionCircuit Diagram

DIY Claw Machine Circuit Diagram

Code

DescriptionDownload Code
Arduino CodeDownload
evive LibraryDownload
Stepper Motor Driver LibraryDownload
5mm Acrylic CutoutsDownload
3mm Acrylic Cutouts 1Download
3mm Acrylic Cutouts 2Download
Share this Project
Facebook
Twitter
Google+
Pinterest
Reddit
Print
Related Projects
Featured Projects
DIY RBG Googles

DIY RGB LED Goggles

This project's about making a pair of cool RGB LED goggles with controllable shades that can be turned ...

All articles loaded
No more articles to load

Leave a Reply

Close Menu
×

Cart