Lynxmotion Tech Support

www.lynxmotion.com
It is currently Tue Jun 18, 2013 12:06 am

All times are UTC - 6 hours [ DST ]




Post new topic Reply to topic  [ 37 posts ]  Go to page 1, 2, 3  Next
Author Message
 Post subject: Tri-Track Battle Mech
PostPosted: Mon Oct 25, 2010 9:28 pm 
Offline
Roboteer

Joined: Tue Apr 10, 2007 4:35 pm
Posts: 73
HI everyone, here is something I have been working on for some time. I eventually plan on using it in some form of combat eventually. I still have alot of work left to do on it but I finally got some life into it. I have modified the PS2ROV4.BAS code on the lynxmotion site to suite my needs. Everything seems to be working pretty well, I have tried adding the same functionality to the right side but Im getting erratic results. Im hoping one of you guys can help me figure out what I am doing wrong. Im also getting jerky movement from the working arm but at least it runs. This is certainly not easy stuff. The photos are a bit older, the video is the latest configuration in action. Im still a bit rough with the controls because Im so new to them and there are some balance issues to work out. I also eventually plan on building a nice mech like shell for it and replacing some of the servos with more powerful ones. The Right arm will eventually be replaced with an airsoft cannon soon as my robotics department gets its bail out money :P

This is the code Im using, if one of you could look at it and point out what Im missing it would be very helpful. Thanks!


Image

Image



Attachments:
robotv4_1.bas [11.72 KiB]
Downloaded 95 times
Top
 Profile  
 
PostPosted: Tue Oct 26, 2010 4:26 am 
Offline
Roboteer

Joined: Mon May 24, 2010 3:07 am
Posts: 14
Location: France
Woot ! :shock: Very nice skin :D

Maybe the track must be longer, because your bot seems to fall in front when its arms try to cache something in front ^^

Good job ! Can't wait to see the gun shooting something ;)

_________________
My website : http://http://smartrobotics.wordpress.com/


Top
 Profile  
 
PostPosted: Tue Oct 26, 2010 9:06 am 
Offline
Lynxmotion Founder
User avatar

Joined: Mon Oct 31, 2005 10:46 am
Posts: 9325
Location: my quiet place
That's awesome! :D Wouldn't it have better balance if you moved the battery down inside the chassis?

_________________
Jim Frye, the Robot Guy
http://www.lynxmotion.com
I've always tried to do my best...


Top
 Profile  
 
PostPosted: Tue Oct 26, 2010 9:47 am 
Offline
Lynxmotion Founder
User avatar

Joined: Mon Oct 31, 2005 10:46 am
Posts: 9325
Location: my quiet place
I looked over the code. I see you are generating servo pulses on the Atom Pro, and then you are sending the pulses to the SSC-32. I suspect you are using the SSC-32 because it includes the claw channels and the pulsout section does not. So you should be able to strip that code out. If you are not using any servos on the bot board you can remove all of the pulsouts, and the pause 20 which is probably slowing things down for no reason. I didn't see any software reason the right arm would not be working, so I suspect hardware or power...

Very cool robot!!!

_________________
Jim Frye, the Robot Guy
http://www.lynxmotion.com
I've always tried to do my best...


Top
 Profile  
 
PostPosted: Tue Oct 26, 2010 10:10 am 
Offline
Salmon of Retribution
User avatar

Joined: Fri Jul 28, 2006 5:41 pm
Posts: 540
Location: The Plane of Suck.
Well, just glancing over your code, there are a few things that pop out at me:

First, on your left and right arm control bits of code, you have all right arm values multiplied by 25 whereas on the left, you have a few different numbers.
Code:
'LEFT ARM CONTROL
   LeftShoulderVertical = (LeftShoulderVertical - Dpad_DOWN*60    + Dpad_UP*60)    MAX 2200 MIN 750    'Move Left Shoulder Vertically.
   LeftArmVertical = (LeftArmVertical - Dpad_DOWN*50    + Dpad_UP*50)    MAX 2100 MIN 1000    'Move Left Shoulder Vertically.
   LeftArmTwist = (LeftArmTwist - Dpad_RIGHT*50 + Dpad_LEFT*50)    MAX 2250 MIN 750    'Rotate ForeArm.
   LeftClawPosition = (LeftClawPosition - Button_L1*100  + Button_L2*100)    MAX 2200 MIN 1900    'Claw Gripper.

Code:
'RIGHT ARM CONTROL
   RightShoulderVertical = (RightShoulderVertical - Button_A*25    + Button_X*25)    MAX 2250 MIN 750    'Move Left Shoulder Vertically.
   RightArmVertical = (RightArmVertical - Button_A*25    + Button_X*25)    MAX 2250 MIN 750    'Move Left Shoulder Vertically.
   RightArmTwist = (RightArmTwist - Button_O*25 + Button_S*25)    MAX 2250 MIN 750    'Rotate ForeArm.
   RightClawPosition = (RightClawPosition - Button_R2*25  + Button_R1*25)    MAX 2250 MIN 750    'Claw Gripper.


Next, there's this bit, where you have pulsouts to your servos on the bot board... and then again on the SSC-32! Comment out the pulsouts and your program may be a bit more responsive. That's where I found your problem though, although you may kick yourself once I tell ya. :P
Code:
' Send out the servo pulses   
   pulsout 0,(ldrive*2)               ' Left Scorpion channel.
   pulsout 1,(rdrive*2)               ' Right Scorpion channel.
   pulsout 2,(WaistRotate*2)            ' Torso Pan servo.
   pulsout 3,(TorsoVertical*2)            ' Torso Tilt servo.
   pulsout LEFTGRIP_UD,(LeftShoulderVertical*2)      ' LeftShoulder up/down servo.
   pulsout LEFTGRIP_Rot,(LeftArmTwist*2)   ' Left Arm Twist servo.
   pulsout LEFTGRIP_OC,(LeftClawPosition*2)      ' Left Gripper open/close servo.
   
   pulsout RIGHTGRIP_UD,(RightShoulderVertical*2)      ' RightShoulder up/down servo.
   pulsout RIGHTGRIP_Rot,(RightArmTwist*2)   ' Right Arm Twist servo.
   pulsout RIGHTGRIP_OC,(RightClawPosition*2)      ' Right Gripper open/close servo.
   
'   pulsout 15,servo5
   pause 20
   
   serout SSC_OUT,i38400,["#0P", DEC WaistRotate, "#1P", DEC TorsoVertical, "#2P", DEC LeftShoulderVertical, "#3P", DEC LeftArmVertical, "#4P", DEC LeftArmTwist, "#5P", DEC LeftClawPosition, "#6P", RightShoulderVertical, "#7P",RightArmVertical, "#8P",RightArmTwist, "#9P",RightClawPosition, "#30P", DEC ldrive, "#31P", DEC rdrive, 13]



Here's your problem line. You just left out a few DECs for the right arm. Here is the code as it should be written:
Code:
   serout SSC_OUT,i38400,["#0P", DEC WaistRotate, "#1P", DEC TorsoVertical, "#2P", DEC LeftShoulderVertical, "#3P", DEC LeftArmVertical, "#4P", DEC LeftArmTwist, "#5P", DEC LeftClawPosition, "#6P", DEC RightShoulderVertical, "#7P", DEC RightArmVertical, "#8P", DEC RightArmTwist, "#9P", DEC RightClawPosition, "#30P", DEC ldrive, "#31P", DEC rdrive, 13]

_________________
Curiously enough, the only thing that went through the mind
of the bowl of petunias as it fell was "Oh no, not again."

James "Don't call me Jim" Frye
Lynxmotion, Inc
http://www.lynxmotion.com


Top
 Profile  
 
PostPosted: Tue Oct 26, 2010 10:41 am 
Offline
Roboteer

Joined: Tue Apr 10, 2007 4:35 pm
Posts: 73
Thanks guys, I am very grateful for your feedback. I currently have a BAT-01 in the base that kinda helps with some balance, but I was looking to purchase a BAT-06 which I assume would be a little heavier and therfore stabilize it better. The reason I have that one battery pack on his back is to counter balance the load on the waist rotator. Even still though it has a really hard time supporting the upper body and rotating properly. I have been thinking of adding this instead to rotate the torso.

http://servocity.com/html/spg785a-bm_bottom_mount.html


Once I get that though I plan on moving all the packs to the base. Also, I currently have the standard motors in the base and was wondering if there was something I could upgrade to that had more torque, I am using the Sabertooth 2X10 Regenerative Dual Channel Motor Controller to drive the motors. Currently he gets stuck when turning on carpets.

Thank you James and Jim (Are you guys the same person? wasnt sure) for looking over that code, as Im sure you can already tell, Im very new to this and pretty bad at it. I still have a very hard time understanding it although I am starting to understand things a little bit better than before. Innerbreed has been hugely helpfull. I will make al the changes you listed and let you guys know how it goes, I knew I was probably missing something minor, I cant believe I forgot to add the DEC :( Thanks for catching that, that was incredibly helpful :) Hopefully one day I will get better at this stuff.


Top
 Profile  
 
PostPosted: Tue Oct 26, 2010 12:48 pm 
Offline
Salmon of Retribution
User avatar

Joined: Fri Jul 28, 2006 5:41 pm
Posts: 540
Location: The Plane of Suck.
Vsions wrote:
Thank you James and Jim (Are you guys the same person? wasnt sure)
Definitely not the same person. Jim's my father. :lol:

Vsions wrote:
as Im sure you can already tell, Im very new to this and pretty bad at it. I still have a very hard time understanding it although I am starting to understand things a little bit better than before. Innerbreed has been hugely helpfull. I will make al the changes you listed and let you guys know how it goes, I knew I was probably missing something minor, I cant believe I forgot to add the DEC :( Thanks for catching that, that was incredibly helpful :) Hopefully one day I will get better at this stuff.
I'm sure you will. Just keep at it. You've actually done quite a good job so far, just a couple mistakes to clean up. :D

_________________
Curiously enough, the only thing that went through the mind
of the bowl of petunias as it fell was "Oh no, not again."

James "Don't call me Jim" Frye
Lynxmotion, Inc
http://www.lynxmotion.com


Top
 Profile  
 
 Post subject: Via mobile phone.
PostPosted: Tue Oct 26, 2010 1:51 pm 
Offline
Robot Guru
User avatar

Joined: Wed Feb 27, 2008 8:59 am
Posts: 3184
Location: Online @ innerbreed.co.uk
Hi Vsions, welcome back. Its been a while. Good to see you are making progress and those few complications are out the way. Its looking great. I see you have build more since i last saw it. Very menacing! Its always the little things that make the most problem.
Good to see the progress. Well done.

_________________
Jonny Poole,
Freelance Concept Art & Animatronics, 3D Art and 3D Modelling, as well as Physical Modelling, Mechanical design, and illustration.
http://www.innerbreed.co.uk
Create, Innovate, Inspire.


Top
 Profile  
 
PostPosted: Tue Oct 26, 2010 5:06 pm 
Offline
Lynxmotion Founder
User avatar

Joined: Mon Oct 31, 2005 10:46 am
Posts: 9325
Location: my quiet place
Don't forget to post your code after you fix it. :D I wanna try it! lol

_________________
Jim Frye, the Robot Guy
http://www.lynxmotion.com
I've always tried to do my best...


Top
 Profile  
 
PostPosted: Tue Oct 26, 2010 11:41 pm 
Offline
Roboteer

Joined: Tue Apr 10, 2007 4:35 pm
Posts: 73
Hi guys, great news. After making the corrections James and Jim specified, I got both arms fully functional. Also you guys where totally right about commenting out the pulseouts the responsiveness improved quite a bit. I also shifted the battery on his back to the tritrack and got much improved balance. Jim, I am currently using the Sabertooth 2X10 Regenerative Dual Channel Motor Controller, is the BAT-06 compatible with that controller without causing it damage? Also could you please recommend new motors with more torque for the tritrack that is also compatible with that sabertooth? Im trying to get better turning even on carpet if possible.

Thanks alot guys
Dennis

ps. I attached the latest code for anyone to try out or look at


Attachments:
tritrackmechps2_v1.bas [11.87 KiB]
Downloaded 113 times
Top
 Profile  
 
PostPosted: Wed Oct 27, 2010 9:24 am 
Offline
Lynxmotion Founder
User avatar

Joined: Mon Oct 31, 2005 10:46 am
Posts: 9325
Location: my quiet place
Hi Dennis!

The BAT-06 is perfect for the 2x10.

The more powerful motors we have that will fit the chassis is the GHM-13. It should provide almost twice the torque. 8)

_________________
Jim Frye, the Robot Guy
http://www.lynxmotion.com
I've always tried to do my best...


Top
 Profile  
 
PostPosted: Tue Nov 02, 2010 10:18 am 
Offline
Lynxmotion Founder
User avatar

Joined: Mon Oct 31, 2005 10:46 am
Posts: 9325
Location: my quiet place
Any chance you could take some more pictures? 8)

_________________
Jim Frye, the Robot Guy
http://www.lynxmotion.com
I've always tried to do my best...


Top
 Profile  
 
PostPosted: Tue Nov 02, 2010 7:59 pm 
Offline
Roboteer

Joined: Tue Apr 10, 2007 4:35 pm
Posts: 73
Hi Jim, thanks for the info. Here are the images you requested

Image

Image

Image

Image

Image

Hope that is helpful


Top
 Profile  
 
PostPosted: Wed Nov 03, 2010 10:01 am 
Offline
Lynxmotion Founder
User avatar

Joined: Mon Oct 31, 2005 10:46 am
Posts: 9325
Location: my quiet place
Thanks! :D

_________________
Jim Frye, the Robot Guy
http://www.lynxmotion.com
I've always tried to do my best...


Top
 Profile  
 
PostPosted: Fri Apr 08, 2011 7:40 pm 
Offline
Robot Guru
User avatar

Joined: Mon Oct 31, 2005 3:03 pm
Posts: 3598
Location: Houston, Texas
Good job. Clever claw design too!

_________________
Mike

The robotics nut.


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 37 posts ]  Go to page 1, 2, 3  Next

All times are UTC - 6 hours [ DST ]


Who is online

Users browsing this forum: No registered users and 2 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
Powered by phpBB® Forum Software © phpBB Group