Putting robotics at your service™

Free shipping on orders over $200

Help

Print view Share :
Previous topicNext topic

Page 1 of 2 [ 19 posts ]

1, 2
New ( offline )
Posts: 9
Posted: 2012-01-07 20:53 
 Post subject: Help
So I've been trying to get my new brat assembled and walking. Got it together and am having difficulty getting the offset program to work correctly since I can't seem to get the servos into their mid positions. I ran the center servo sample from the assembly guide and it seemed to have put all of the servos at the end of their rotations instead of in the mid position. This is the program I used to put the servos in the mid position according to tutorial:

enablehservo
start:
hservo [0\0\0]
end

I have hs-645mg servos. Bot Board II with Basic Atom Pro 28.
I've tried numerous things to get the servos in the correct mid position so I can do something with the bot. Can someone help please?
Thanks.


Expert ( offline )
Posts: 268
Posted: 2012-01-07 21:31 
 Post subject: Re: Help
Read through this tutorial it might help
http://www.lynxmotion.com/images/html/build111.htm
the servo horn might need to be rotated to center


New ( offline )
Posts: 9
Posted: 2012-01-08 11:56 
 Post subject: Re: Help
Thanks but that wouldn't help at this point. If I found the mid position and the holes were not aligned properly then this would be helpful.


User avatar
Guru ( offline )
Posts: 4913
Posted: 2012-01-08 12:38 
 Post subject: Re: Help
A couple of things. Phil is correct that if you are trying to find the center point and you get to the end of the allowed adjustments in the servo offset program, then you need to undo the screw holding the servo horn to the servo, lift it up and move it one click (15 degrees) in the appropriate direction...

As for your program, I am not 100% sure what the end statement does with the HSERVO subsystem. If it were me, I would try:
Code:
    hservo[0\0\0]
loop:
    goto loop

The end statement may work fine, but if I were having problems, I would try changing it like I mentioned.

Kurt


New ( offline )
Posts: 9
Posted: 2012-01-09 20:59 
 Post subject: Re: Help
Thank you both for the advice. I'll give it a shot. Just seems odd to me since nothing is connected to the horn when I try to center it and there are no stops on the horn to keep the servo from rotating. Just so you know, I'm not trying to be difficult, just to understand.

As for the program I got it from here http://www.lynxmotion.com/images/html/build046.htm which includes the end tag in the program. Was just trying to use the tutorials from the BRAT assembly guides page to ensure I understood everything that needed to be done to get the servos to the correct positions.

Will let you know how it goes. Thanks. E

_________________
I hear and I forget. I see and I remember. I do and I understand.


User avatar
Guru ( offline )
Posts: 9257
Posted: 2012-01-10 11:24 
 Post subject: Re: Help
I've read through this a few times...

An image of your wiring and power would be helpful.

You say running the program moves the servos to "their end of rotation" is that to say they have moved their output shafts to the mechanical stop inside the servo, so it can rotate one way but not the other? If so is it CW or CCW? Can you move them by hand, or do they resist with great force?

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


New ( offline )
Posts: 9
Posted: 2012-01-11 21:19 
 Post subject: Re: Help
Yes what you said is accurate. The servo will not turn one way but will turn the other way. I'm including the picture of the wiring so you can review. Looking down at the horn while turning it moves CCW. I appreciate any help you can offer. Thanks. E


Attachment:
2012-01-11_20-11-01_597.jpg
2012-01-11_20-11-01_597.jpg [ 1.23 MiB | Viewed 1567 times ]

_________________
I hear and I forget. I see and I remember. I do and I understand.
User avatar
Guru ( offline )
Posts: 9257
Posted: 2012-01-12 10:37 
 Post subject: Re: Help
When everything is running can you move the servos by hand, or do they resist with great force?

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


User avatar
Guru ( offline )
Posts: 9257
Posted: 2012-01-12 11:28 
 Post subject: Re: Help
You know the Atom comes with a program already installed that makes the IO pins cycle on and off. The frequency is not right for controlling servos, but in fact the servos tent to move weekly in one direction until the stop is reached. The speaker will also click. The servos can be moved by hand but will return to the stop if released.

Are you sure you have successfully programmed the Atom?

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


User avatar
Guru ( offline )
Posts: 9257
Posted: 2012-01-12 11:28 
 Post subject: Re: Help
Are you clicking Program or Debug?

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


New ( offline )
Posts: 9
Posted: 2012-01-12 14:07 
 Post subject: Re: Help
When I first applied power to the controller the servos were not connected but the led's did cycle and the speaker made a tone so it seemed to be working and the power LED remains solid.
When power is applied the servo's will resist when I try to move them.
I click program in the development studio to push the code onto the controller if that's what you mean by your question of clicking program or debug.
Can I post a video on this board? Maybe I can take a video of one of the servos completely removed from the robot and connected to the controller showing you what it does when I execute the centering program. That might be the most beneficial way. What do you think?

_________________
I hear and I forget. I see and I remember. I do and I understand.


User avatar
Guru ( offline )
Posts: 9257
Posted: 2012-01-12 14:31 
 Post subject: Re: Help
This board will host images, but not video. You can put it on youtube and link it here. There is even a youtube format tag for this. Yes more information is always good. Are you sure the 6vdc battery is fully charged?

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


New ( offline )
Posts: 9
Posted: 2012-01-12 17:07 
 Post subject: Re: Help
The battery was fully charged when I started the centering process but I doubt it is now. I'll recharge to make sure that's not an issue. If that doesn't work i'll see if I can get a video posted. Thanks. E

_________________
I hear and I forget. I see and I remember. I do and I understand.


New ( offline )
Posts: 9
Posted: 2012-01-13 00:06 
 Post subject: Re: Help
OK so fully charged the battery. Pulled a servo off of the brat and tried to center the servo again. Used these lines:
enablehservo
hservo [P0\0]
to try to find the mid position. The servo rotates clockwise until it hits the mechanical stop in the servo. I then manually rotated the servo close to center and tried to adjust the position argument of the command to see if that would make a difference, I used 11000 and -11000 and both get the same result. Servo always rotates clockwise until it hits the mechanical stop and seems to "bounce". Doesn't matter what pin or servo I get the same result. Went and rechecked the configuration of the board and it is setup correctly. I am really frustrated at the moment. The only thing that comes to mind is either the board or the controller may be defective. Any thoughts? Thanks.

_________________
I hear and I forget. I see and I remember. I do and I understand.


New ( offline )
Posts: 9
Posted: 2012-01-13 00:39 
 Post subject: Re: Help
So hold off on suggestions for the moment. Just remembered I had a BS2 stamp and a board for the stamp so I should be able to narrow down the issue between the servo, board and controller. Will let you know once I do some testing with the different components and combinations. Haven't messed with the BS2 stuff in so long forgot I had it. Will let you all know.
Thanks. E

_________________
I hear and I forget. I see and I remember. I do and I understand.


1, 2

All times are UTC - 5 hours [ DST ]. It is currently 2014-10-25 10:32
Feedback Form
Feedback Form