Go Down

Topic: robotic hand (Read 589 times) previous topic - next topic

holosound

hello im building a robotic hand and i need assistance in controlling five servos . im interested in different types of control but i mostly want joystick control for an all together grip and small finger group movements

Ricardol

Which different types of control?

holosound

hi im relatively new to programming and robotics and i really need help understanding arduino code for the purpose of controlling my robotic hand , if there is anyone who could upload a sketch for 5 finger movement to open and close and maby explain to me how it works and how i can build on to the code for more functions like different hand movements i would greatlyy!!! apreciate it :) sincerely cody

AWOL

Have you worked through any of the servo examples in the IDE?
"Pete, it's a fool looks for logic in the chambers of the human heart." Ulysses Everett McGill.
Do not send technical questions via personal messaging - they will be ignored.
I speak for myself, not Arduino.

slipstick

If you find an example of a sketch that does more or less what you want I'm sure we will be able to help you understand it and possibly improve it. But it's going to be better if you do some of the investigation for yourself. When I Googled "Arduino robotic hand" I got 300,000 responses so it's probably been done before.

Steve

holosound

hi i'm having trouble finding information on how to control more than four servos ,Ive  built a robotic hand and need to control each finger  and developing a code for open and close function and to be controlled by the joystick analog module to open and close the hand , if u have any info plz! help me im relatively new to programming ide love advice thnkz :) sincerely cody graham :)

CrossRoads

Have you tried any of the suggestions to your prior iinquiries yet? If not, what are you waiting for?
Designing & building electrical circuits for over 25 years.  Screw Shield for Mega/Due/Uno,  Bobuino with ATMega1284P, & other '328P & '1284P creations & offerings at  my website.

slipstick

hi i'm having trouble finding information on how to control more than four servos
That's odd because as soon as I look for Arduino servo information I find the standard servo control library and one of the things it says is "The Servo library supports up to 12". https://www.arduino.cc/en/Reference/Servo

Anyway if you show us your code controlling four servos we'll help you with the fifth one.


Steve

MarkT

For each mode of movement you probably just need to define functions for each finger
actuator mapping a control value to that finger's position.  Movement is driven by
varying the control variable and calling the functions for the relevant mode of movement.

You can use table lookup for the functions for a completely flexible data-driven control.

The basic forward loop would be
Code: [Select]

  for (byte i = 0 ; i <= 100 ; i++) // i is control, a percentage
  {
    for (byte s = 0 ; s < N_SERVO ; s++)
      servos[s].write (func[s](i)) ;
      
    delay (delay_per_step) ;
  }

 assuming suitable table of functions and servos.

Reversing a movement would move the control variable backwards.   I just used 0..100 for
arguments sake, that is a design decision.
[ I will NOT respond to personal messages, I WILL delete them, use the forum please ]

holosound

thanks for the replies im going to take all the info into consideration

Go Up