Notifications
Clear all

I can control my MeArm manually, but how do I teach it?

11 Posts
5 Users
2 Reactions
3,642 Views
(@hello_world)
Member
Joined: 5 years ago
Posts: 3
Topic starter  

I built a...facsimile? joystick? pendant?Β  It controls the arm nicely, but how to I teach it to operate autonomously?

This is my first arduino project and my first time coding. I have no idea where to begin writing code to do this.

Here is a short video of my project.

This topic was modified 5 years ago by hello_world

   
Spyder reacted
Quote
Spyder
(@spyder)
Member
Joined: 5 years ago
Posts: 846
 

That's really cool πŸ™‚

Maybe you could describe better exactly what you mean by "autonomously"

I found this link, which is probably sort of helpful

https://hackernoon.com/using-q-learning-to-teach-a-robot-how-to-walk-a-i-odyssey-part-3-5285237cc3b1

And this one, which only teaches preprogrammed moves. I would think that the arm would have to have a goal before it could achieve that goal

Very nice project tho !

Β 


   
ReplyQuote
(@hello_world)
Member
Joined: 5 years ago
Posts: 3
Topic starter  

By autonomously, I mean I want to move the arm manually with the joystick I made, record that movement, and have the ability to store and replay that movement.

Thanks for the reply!


   
ReplyQuote
Spyder
(@spyder)
Member
Joined: 5 years ago
Posts: 846
 

@hello_world

There is code at this link to do, what I believe to be, exactly what yer looking for

It looks like the whole code is there (for arduino)

https://www.ardumotive.com/roboticarmgrab-en.html


   
ReplyQuote
byron
(@byron)
No Title
Joined: 5 years ago
Posts: 1136
 
Posted by: @hello_world

This is my first arduino project and my first time coding. I have no idea where to begin writing code to do this.

Thats a neat control thingy. Well if you want it to do stuff all on its own then you will have to program it. Β Where to begin on this stuff? Β Well are going to have to hook up some sensors so that your program can react to control your servo motors. Β  How to write code? Β Theres load of tutorials on the internet to learn various program languages and code snippets to read sensors and control servo motors. Β  For a beginner I think you cant beat getting a Raspberry Pi and then to lean to code in Python. Β But whatever, you will need to learn the basics of a programming language before going on to what code for what could be a rather sophisticated project. Β Have fun.


   
ReplyQuote
robotBuilder
(@robotbuilder)
Member
Joined: 5 years ago
Posts: 2045
 

That is a really neat project.

The do something like that to remote control arms handling radioactive material however there is force feedback so sensitive they can pick up an egg.

Another project like yours.
https://www.robotshop.com/community/robots/show/micro-servo-robot

Maybe somehow you could just move the robot arm itself by using a force feedback system and record the position changes?
https://hackaday.com/2015/12/15/feeling-force-through-a-servo/
With special servo motors
https://learn.adafruit.com/analog-feedback-servos/about-servos-and-feedback
you can do this:
https://learn.adafruit.com/trainable-robotic-arm/overview
A hack to feedback pot position from an ordinary servo motor
https://www.instructables.com/id/Servo-Feedback-Hack-free/

Β 


   
ReplyQuote
robotBuilder
(@robotbuilder)
Member
Joined: 5 years ago
Posts: 2045
 

Must have missed this tutorial!!

https://dronebotworkshop.com/analog-feedback-servo-motor/

I hope one day to build a robot arm to put on my robot.Β  Not sure what motors I will use, probably portable drill motors for their power which means I will have to include a POT on each joint.Β  I don't want a wimpy toy arm.Β  The two electronic suppliers I buy from (Jaycar or Altronics) do not stock the analog feedback servo motors so I will not be able to experiment with those.

Β 


   
ReplyQuote
(@hello_world)
Member
Joined: 5 years ago
Posts: 3
Topic starter  

@spyder

This looks just the thing I'm looking for. Thanks. I'll update if I get it working. Thanks!


   
Spyder reacted
ReplyQuote
Spyder
(@spyder)
Member
Joined: 5 years ago
Posts: 846
 

@hello_world

No problem !

I kinda had a feeling it might be what you were looking for

I'm glad my atrociously atrophied amygdala could be of use to somebody


   
ReplyQuote
Spyder
(@spyder)
Member
Joined: 5 years ago
Posts: 846
 

@casey

omgservo

I've got 2 of these that I haven't quite figured out what to do with yet, and they have no feedback, but, it claims to have 20KG pull. I haven't tested what the actual weight is that it can lift, but I can tell that you wouldn't wanna get yer finger caught in whatever it's doing


   
ReplyQuote
Duce robot
(@duce-robot)
Member
Joined: 5 years ago
Posts: 686
 

@spyder

Those are good servos the 20 I have a few of them they can move a fair amount of weight.


   
ReplyQuote