A bit of a fun project - The claw

  • Thread starter Thread starter Mr.Rose
  • Start date Start date
  • Tags Tags
    Bit Fun Project
Click For Summary
SUMMARY

The discussion centers on creating a claw game using a PIC microcontroller programmed in C. The proposed design includes two switches for x and y plane movement, a button to initiate the claw's descent, and adjustable springs to control the claw's grip. The user aims to pick up objects weighing between 20-50g, such as mini candy bars, and is considering using stepper motors for movement. The user seeks guidance on programming and whether a C program is necessary or if simpler alternatives exist.

PREREQUISITES
  • Understanding of PIC microcontroller programming in C
  • Knowledge of basic electronics, including switches and motors
  • Familiarity with servo mechanisms and spring tension control
  • Experience with logic gates and their applications in control systems
NEXT STEPS
  • Research programming techniques for PIC microcontrollers using C
  • Explore the use of stepper motors in robotic applications
  • Learn about servo control and spring tension mechanisms
  • Investigate alternative programming methods for microcontrollers, such as using assembly language
USEFUL FOR

Hobbyists, electronics enthusiasts, and engineers interested in robotics, microcontroller programming, and mechanical design for claw machines.

Mr.Rose
Messages
1
Reaction score
0
Hey guys,

I got an idea in my head to have a bit of fun with a project idea. I want to make one of those claw games that they use to pick up toys, or chocolate bars etc.

However there are so many ways to do it. Ideally i would like to make a small c program and put it on a PIC and use that to control everything, but then i might be over thinking the problem. Maybe it can be done with just simple logic gates, maybe CMOS or TLL.

the machine:

2 switches, one controls x plane movement, the other y plane - to move the claw around

1 button, once ideal position is found by the user, the button is pressed, at this point, both movement switches cease to work, and the crane claw begins its decent, grabs the chocolate bar and then return up, then proceeds to a pre-programed corner of the machine body to drop the prize in the hole. Even if no prize is managed to be grabed, the claw still moves to the corner and releases.. well nothing.

The claw: strength would be controlled by adjustable springs. I was thinking a servo arm would keep the springs taunt by attaching a string from the servo to the claw finger, thus the claw is open until the claw is at its final decent point then the servo releases the spring tension to create the grabing motion.

target: between 20-50g objects, basically mini candy bars.

motors: I was thinking step motors, but not to sure.

Any idea where to start?

I have the an idea on all the components of the machine, i just need some help with the programming of it. Would creating a C program be over kill? Or is there another way to do it?
 
Engineering news on Phys.org
C is the right way to go for programming in PIC. Assembly code is hard to write, hard to debug.

Can you please explain by drawing the way you are going to control the claw fingers ? Your idea looks interesting and a bit more explanation can help us give some ideas from our end too :)
 

Similar threads

Replies
1
Views
590
  • · Replies 5 ·
Replies
5
Views
2K
  • · Replies 11 ·
Replies
11
Views
8K
  • · Replies 26 ·
Replies
26
Views
3K
  • · Replies 6 ·
Replies
6
Views
4K
  • · Replies 13 ·
Replies
13
Views
2K
  • · Replies 35 ·
2
Replies
35
Views
7K
  • · Replies 3 ·
Replies
3
Views
4K
  • · Replies 7 ·
Replies
7
Views
6K
Replies
29
Views
5K