Go to Post You earn what you work for. - Akash Rastogi [more]
Home
Go Back   Chief Delphi > Technical > Programming > NI LabVIEW
CD-Media   CD-Spy  
portal register members calendar search Today's Posts Mark Forums Read FAQ rules

 
Reply
Thread Tools Rate Thread Display Modes
  #1   Spotlight this post!  
Unread 29-01-2009, 17:56
mbone206 mbone206 is offline
Registered User
FRC #0223
 
Join Date: Jan 2009
Location: New Jersey
Posts: 59
mbone206 is an unknown quantity at this point
Labview servo motor PWM correlation to set VI

The Servo SetVI is '0 to 1'

PWM VIs, 0 to 255 where 1 is full reverse and 255 is full foward

How does Servo '0 to 1' scale with PWM '0 to 255'

Example: If I read back 127 on servo motor using PWM-GetValue VI, what ould be the '0 - 1' position of Servo

new at this, thank you for your patience and support
Reply With Quote
  #2   Spotlight this post!  
Unread 29-01-2009, 21:50
Luke Pike's Avatar
Luke Pike Luke Pike is offline
Programmer
FRC #1501 (THRUST)
Team Role: Mentor
 
Join Date: Jan 2008
Rookie Year: 2008
Location: Huntington
Posts: 114
Luke Pike is a name known to allLuke Pike is a name known to allLuke Pike is a name known to allLuke Pike is a name known to allLuke Pike is a name known to allLuke Pike is a name known to all
Re: Labview servo motor PWM correlation to set VI

I'm not sure what your asking, but here's some info. Servos can get or set angle or position. Angle should be between 0 and 180.

It seems like your using the PWM vi's to set the value? You can set the angle or the position of a servo using the Set Angle and Set Position vi's.
__________________
Twitter Profile
Reply With Quote
  #3   Spotlight this post!  
Unread 29-01-2009, 23:48
ebmonon36's Avatar
ebmonon36 ebmonon36 is offline
Registered User
AKA: Eric Bredehoeft
FRC #1018 (Robodevils)
Team Role: Mentor
 
Join Date: Dec 2002
Rookie Year: 2003
Location: Indianapolis, IN
Posts: 428
ebmonon36 has much to be proud ofebmonon36 has much to be proud ofebmonon36 has much to be proud ofebmonon36 has much to be proud ofebmonon36 has much to be proud ofebmonon36 has much to be proud ofebmonon36 has much to be proud ofebmonon36 has much to be proud ofebmonon36 has much to be proud of
Send a message via AIM to ebmonon36
Re: Labview servo motor PWM correlation to set VI

0=127 - One end of the rotation
1=255 - The other end of rotation.
Any number in between 0 and 1 would be a position between the stops on the servo. 0.5 would be half way.
Reply With Quote
  #4   Spotlight this post!  
Unread 30-01-2009, 13:02
mbone206 mbone206 is offline
Registered User
FRC #0223
 
Join Date: Jan 2009
Location: New Jersey
Posts: 59
mbone206 is an unknown quantity at this point
Re: Labview servo motor PWM correlation to set VI

ebomnon - 36 - got it - thanx
Reply With Quote
  #5   Spotlight this post!  
Unread 30-01-2009, 14:58
Kevin Sevcik's Avatar
Kevin Sevcik Kevin Sevcik is offline
(Insert witty comment here)
FRC #0057 (The Leopards)
Team Role: Mentor
 
Join Date: Jun 2001
Rookie Year: 1998
Location: Houston, Texas
Posts: 3,587
Kevin Sevcik has a reputation beyond reputeKevin Sevcik has a reputation beyond reputeKevin Sevcik has a reputation beyond reputeKevin Sevcik has a reputation beyond reputeKevin Sevcik has a reputation beyond reputeKevin Sevcik has a reputation beyond reputeKevin Sevcik has a reputation beyond reputeKevin Sevcik has a reputation beyond reputeKevin Sevcik has a reputation beyond reputeKevin Sevcik has a reputation beyond reputeKevin Sevcik has a reputation beyond repute
Send a message via AIM to Kevin Sevcik Send a message via Yahoo to Kevin Sevcik
Re: Labview servo motor PWM correlation to set VI

Quote:
Originally Posted by ebmonon36 View Post
0=127 - One end of the rotation
1=255 - The other end of rotation.
Any number in between 0 and 1 would be a position between the stops on the servo. 0.5 would be half way.
This is incorrect. Please bother to actually to do some research on a question before you answer it.

The correct answer is that a 0 to 1 range on the input of a Servo:SetPosition.vi corresponds to an 11 to 253 range of actual PWM values. So in your parlance:
0.0 = 11 One end of rotation
1.0 = 253 The other end of rotation

You can discover this by simply opening up some of the associated VIs. You may even learn something in the process.
__________________
The difficult we do today; the impossible we do tomorrow. Miracles by appointment only.

Lone Star Regional Troubleshooter
Reply With Quote
Reply


Thread Tools
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Tracking Servo motor with drive motor in Labview mbone206 Technical Discussion 5 28-01-2009 17:32
[FTC]: FTC Servo-Motor Problem with Labview dnhansen FIRST Tech Challenge 1 26-10-2008 00:43
Hanson Hobbies PWM Servo Cable Kits Chris_Elston Electrical 4 21-01-2008 19:12
servo PWM sampling-what Fosc should I use? 3dude_2231 Technical Discussion 6 23-08-2007 13:17
How do you set a speed limit on the servo Fares Programming 6 01-01-2003 15:04


All times are GMT -5. The time now is 08:04.

The Chief Delphi Forums are sponsored by Innovation First International, Inc.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.
Copyright © Chief Delphi