Lynxmotion Tech Support

www.lynxmotion.com
It is currently Wed May 22, 2013 10:22 am

All times are UTC - 6 hours [ DST ]




Post new topic Reply to topic  [ 14 posts ] 
Author Message
 Post subject: command to turn off sevo
PostPosted: Tue Mar 02, 2010 11:06 am 
Offline
Roboteer
User avatar

Joined: Mon Feb 22, 2010 11:58 am
Posts: 9
Hello!

I managed to move the robotic arm AL5A using c++ code complied in Dev-C++ but I have one question. Is it possibile to issue a command to turn off the servos, just like it happens when I push the All=0 button in the LynxTerminal? Because I run the program, I move the arm, then I want to start all over again, and I have to go to LynxTerm, switch it off, the run the code again and so on. I want to do it all in the code.

(For example, writing #3P1500\r\n\0 through serial port, centers the wrist servo, 1500. How can I turn if off?)

Thank you for your help!

Laura


Top
 Profile  
 
PostPosted: Tue Mar 02, 2010 11:49 am 
Offline
Lynxmotion Founder
User avatar

Joined: Mon Oct 31, 2005 10:46 am
Posts: 9325
Location: my quiet place
laurici_4 wrote:
Hello!

I managed to move the robotic arm AL5A using c++ code complied in Dev-C++ but I have one question. Is it possibile to issue a command to turn off the servos, just like it happens when I push the All=0 button in the LynxTerminal? Because I run the program, I move the arm, then I want to start all over again, and I have to go to LynxTerm, switch it off, the run the code again and so on. I want to do it all in the code.

(For example, writing #3P1500\r\n\0 through serial port, centers the wrist servo, 1500. How can I turn if off?)

Thank you for your help!

Laura


Yay! an easy one... 8)

Just send this command.

#0L #1L #2L <cr>

This will stop the servo pulses on the channels effected.

Here is the link to the SSC-32 users manual.
http://www.lynxmotion.com/images/html/build136.htm

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


Top
 Profile  
 
PostPosted: Tue Mar 02, 2010 12:01 pm 
Offline
Roboteer
User avatar

Joined: Mon Feb 22, 2010 11:58 am
Posts: 9
So I didn't read the manual well enough after all, I did't find this command, still don't now where it is.

But...

while this works

if(!WriteFile(hSerial, "#4P1500\r\n\0", n, &dwBytesRead, NULL)){
cout<<"writing error occurred";
}

this doesn't, nothing happens

if(!WriteFile(hSerial, "#0L#1L#2L\r\n\0", n, &dwBytesRead, NULL)){
cout<<"writing error occurred";
}

Is it wrong?

And sorry for bugging you so much! :-)
Thanks!


Top
 Profile  
 
PostPosted: Tue Mar 02, 2010 12:11 pm 
Offline
Lynxmotion Founder
User avatar

Joined: Mon Oct 31, 2005 10:46 am
Posts: 9325
Location: my quiet place
Um, what... :shock:

I don't know anything about the programming language you are using. But sending #0 L forces I/O pin 0 to go low. Stops sending pulses to the servo. This will work with any analog servo. However of you are using digital servos nothing will turn them off. They will hold position as soon as they are powered on.

The command is discrete output...

http://www.lynxmotion.com/images/html/b ... tm#discout

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


Top
 Profile  
 
PostPosted: Fri Nov 05, 2010 8:35 am 
Offline
Robot Guru
User avatar

Joined: Tue Nov 02, 2010 9:39 pm
Posts: 1433
Location: Quebec Canada
Robot Dude

There is nothing to do to power down a digital servo ?
I have only one digital servo and it's the one that sit on the rotating table...

Tanks

DialFonZo
Qc Canada

_________________
Eric Nantel
Qc Canada

Always liked Robot... Now i am learning to make some...! Wonderfull...


Top
 Profile  
 
PostPosted: Fri Nov 05, 2010 9:10 am 
Offline
Lynxmotion Founder
User avatar

Joined: Mon Oct 31, 2005 10:46 am
Posts: 9325
Location: my quiet place
The only way would be to attach a relay board like these.

http://www.lynxmotion.com/c-106-switches-relays.aspx

Then wire the relay in series with the power lead for the digital servo. You would use a spare channel on the SSC-32 to turn the power on and off to the servo. :D

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


Top
 Profile  
 
PostPosted: Mon Nov 08, 2010 8:09 pm 
Offline
Roboteer
User avatar

Joined: Sun May 03, 2009 7:32 pm
Posts: 64
Location: Saulheim (Germany)
If you want to power down a Servo for example on Pin 4 you have to send "#4p0\r".

Greetings
Daniel

_________________
The genius mastered the chaos.
I am the Chaos!


Top
 Profile  
 
PostPosted: Tue Nov 09, 2010 9:57 am 
Offline
Lynxmotion Founder
User avatar

Joined: Mon Oct 31, 2005 10:46 am
Posts: 9325
Location: my quiet place
Chaosmann wrote:
If you want to power down a Servo for example on Pin 4 you have to send "#4p0\r".

Greetings
Daniel


No, the op is referring to a digital servo. It will not power down by removing the pulses as with analog servos. ;)

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


Top
 Profile  
 
PostPosted: Tue Nov 09, 2010 10:19 am 
Offline
Roboteer
User avatar

Joined: Sun May 03, 2009 7:32 pm
Posts: 64
Location: Saulheim (Germany)
Quote:
No, the op is referring to a digital servo. It will not power down by removing the pulses as with analog servos. ;)

Don' know which digital Servos he use, but my 5980's / 5990's in my Hex power down with this command.

_________________
The genius mastered the chaos.
I am the Chaos!


Top
 Profile  
 
PostPosted: Tue Nov 09, 2010 11:09 am 
Offline
Lynxmotion Founder
User avatar

Joined: Mon Oct 31, 2005 10:46 am
Posts: 9325
Location: my quiet place
I just tried it. Yes it does seem to power down, but it is really stiff, like the brakes are on. lol I did not know this was possible. 8)

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


Top
 Profile  
 
PostPosted: Wed Nov 10, 2010 10:54 am 
Offline
Robot Guru
User avatar

Joined: Tue Nov 02, 2010 9:39 pm
Posts: 1433
Location: Quebec Canada
Good...

I'll try that command.

Tanks

_________________
Eric Nantel
Qc Canada

Always liked Robot... Now i am learning to make some...! Wonderfull...


Top
 Profile  
 
PostPosted: Wed Nov 10, 2010 11:42 am 
Offline
Lynxmotion Founder
User avatar

Joined: Mon Oct 31, 2005 10:46 am
Posts: 9325
Location: my quiet place
I tried this with a 5645 and it does not have the same effect. It does not turn off the servo. So it must be an undocumented feature of the 5980 / 5990 servos only. :(

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


Top
 Profile  
 
PostPosted: Wed Nov 10, 2010 2:14 pm 
Offline
Robot Guru
User avatar

Joined: Tue Nov 02, 2010 9:39 pm
Posts: 1433
Location: Quebec Canada
If i remember well... mine is a 5645...

I don't have it with me

_________________
Eric Nantel
Qc Canada

Always liked Robot... Now i am learning to make some...! Wonderfull...


Top
 Profile  
 
PostPosted: Wed Nov 10, 2010 3:06 pm 
Offline
Robot Guru
User avatar

Joined: Sat Apr 15, 2006 1:42 pm
Posts: 4414
I know from earlier it also did not turn off the large servos that are part of the arm (HS-5745). When I asked Hitec if there was anyway, their answer was: no...

Maybe on the 5980... they are closer to the HSR- servos.

Kurt


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 14 posts ] 

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