Go Down

Topic: My Arduino Robotic Arm (need ideas) (Read 2197 times) previous topic - next topic

gekko

I finally bought all the parts and got all the kinks out of my Robotic Arm.

Short youtube video:
http://www.youtube.com/watch?v=npaL05bD1os












Here is my code:
Code: [Select]
#include <nunchuck_funcs.h>
#include <Wire.h>
#include <Servo.h>

Servo servo1;
Servo servo2;
Servo servo3;
Servo servo4;
Servo servo5;
Servo servo6;
byte zbut,cbut;

void setup()
{
 nunchuck_init_with_power();
 servo1.attach(5);
 servo2.attach(4);
 servo3.attach(3);
 servo4.attach(2);
 servo5.attach(10);
 servo6.attach(8);
 Serial.begin(19200);
 Serial.print("Ready");
}

void loop()
{
 nunchuck_get_data();
 zbut = nunchuck_zbutton();
 cbut = nunchuck_cbutton();
 if ( cbut ){
 servo1.write(160);
 servo2.write(135);
 servo3.write(125);
 servo4.write(70);
 servo5.write(180);
 }
 else {
 servo1.write(0);
 servo2.write(180);
 servo3.write(175);
 servo5.write(180);
 }
 if ( zbut ) {
 servo4.write(110);
 servo6.write(40);
 }
 else {
 servo6.write(180);
 servo4.write(90);
 }
 Servo::refresh();
 }


This is where I need your help, I've spent a lot of time on this and would like to go further with.  I need ideas on what to do with it next and how to improve it.  Any suggestions or comments are much appreciated!

shameless digg link: http://digg.com/gadgets/Arduino_Robotic_Arm

GordonEndersby



I like the idea of the mechanical components that you can just buy off the shelf.

My first thought would be to tidy up and simplify as much as possible your wiring.
Makes it easier to fix when anything breaks and easier to modify.

How about the ability to memorise movements and replay the sequence?

Have you seen the robotic arm clock?
http://www.techchee.com/2008/08/05/stonehenge-robotic-digital-clock/

Gordon

koyaanisqatsi

See if you can get it to write letters and words on paper with a pen.  If that's too easy, see if you can get it to do handwriting!

Have it hold a Dremel (or other high-speed) tool and carve something.

Put sensors on it so it can track an object and then make it into a desk lamp that always shines the light on what you're working on.  That would need to be LED light so you could control the LEDs with your Arduino, of course!

:)
What about elevensies? Luncheon? Afternoon tea? Dinner? Supper?

Noodle93

Before you do anything, you should really read up on Inverse Kinematics! It'll make your life so much easier when it comes to programming. E.g. you can say x=3 y=2 z = 1 in relation to the base and it'll move to there.

http://www.learnaboutrobots.com/inverseKinematics.htm

Looks a tad confusing but pretty simple after a while.

Go Up