Go to Post Maybe its time we should all get back to the basics...the joy of building something amazing with the people you care about. - Andy Grady [more]
Home
Go Back   Chief Delphi > Other > FIRST Tech Challenge
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 16-02-2009, 15:14
Geek_Girl Geek_Girl is offline
Extant Female Geek
AKA: Kathy Garcia
FRC #0842 (Falcon Robotics)
Team Role: Programmer
 
Join Date: Sep 2007
Rookie Year: 2008
Location: Phoenix
Posts: 10
Geek_Girl is an unknown quantity at this point
[FTC]: LABView Servo Problem

Our team is using LABView, and we cannot get the servos to function properly.

No matter how the servo is controlled(same controller as motors or seperate, using buttons or joysticks) it only moves a few degrees when the button/joystick is pressed. I have tried connecting the servo value on FTCMoveServos to a constant, anything from 0 to 255, but it only moves within those few degrees.

Oddly enough, on an earlier test robot that we made, the same servos and almost the same code worked fine.

Any suggestions?
Reply With Quote
  #2   Spotlight this post!  
Unread 16-02-2009, 16:08
ttldomination's Avatar
ttldomination ttldomination is offline
Sunny
no team
Team Role: Mentor
 
Join Date: Mar 2007
Rookie Year: 2007
Location: Roanoke, TX
Posts: 2,066
ttldomination has a reputation beyond reputettldomination has a reputation beyond reputettldomination has a reputation beyond reputettldomination has a reputation beyond reputettldomination has a reputation beyond reputettldomination has a reputation beyond reputettldomination has a reputation beyond reputettldomination has a reputation beyond reputettldomination has a reputation beyond reputettldomination has a reputation beyond reputettldomination has a reputation beyond repute
Re: [FTC]: LABView Servo Problem

While I'm not familiar with Labview, I can make mechanical suggestions.

- Make sure that there is nothing restricting motion. I might look clear, but watch out for clashing metal, I've noticed that the metal needs to be cut away from the servo or else it'll get caught on the clamp.

- Make sure your wires are in properly. A reverse or improper wiring can either reverse the signal or short out the servo.

- Make sure that your servo has the proper range of motion. For our bot, i had to make sure the servos were centered when i was attaching the device to the servo. If the servo is all the way to one end of it's scope, then it will not move the full range of motion you expect it to.

Other than that, I think it's a code problem.
__________________
1261: 2007-2012
1648: 2013-2014
5283: 2015
Reply With Quote
  #3   Spotlight this post!  
Unread 16-02-2009, 16:26
emmell's Avatar
emmell emmell is offline
Murphy was an Optimist!
AKA: Mannie Lowe
no team (Radbotics, RoboKnights, CircuitRunners, Oscar, and more...)
Team Role: Coach
 
Join Date: Dec 2005
Rookie Year: 2005
Location: Marietta, GA
Posts: 178
emmell is just really niceemmell is just really niceemmell is just really niceemmell is just really niceemmell is just really nice
Re: [FTC]: LABView Servo Problem

Also make sure you are using the latest updates for LabView that deal with motors. I know you're playing with servos, but the update will help you make sure that everything is on the same page. The updates can be found here: http://zone.ni.com/devzone/cda/tut/p/id/7956
__________________
Mannie Lowe
FIRST Program Manager - Center for Mathematics and Science Education - University of Mississippi
Mississippi FIRST Tech Challenge Affiliate Partner


Reply With Quote
  #4   Spotlight this post!  
Unread 16-02-2009, 16:32
Geek_Girl Geek_Girl is offline
Extant Female Geek
AKA: Kathy Garcia
FRC #0842 (Falcon Robotics)
Team Role: Programmer
 
Join Date: Sep 2007
Rookie Year: 2008
Location: Phoenix
Posts: 10
Geek_Girl is an unknown quantity at this point
Re: [FTC]: LABView Servo Problem

Yep, got all the updates. There is nothing blocking it physically, and the wiring seems fine.
Reply With Quote
  #5   Spotlight this post!  
Unread 16-02-2009, 16:37
emmell's Avatar
emmell emmell is offline
Murphy was an Optimist!
AKA: Mannie Lowe
no team (Radbotics, RoboKnights, CircuitRunners, Oscar, and more...)
Team Role: Coach
 
Join Date: Dec 2005
Rookie Year: 2005
Location: Marietta, GA
Posts: 178
emmell is just really niceemmell is just really niceemmell is just really niceemmell is just really niceemmell is just really nice
Re: [FTC]: LABView Servo Problem

Can you post your code so we can try to debug it here?
__________________
Mannie Lowe
FIRST Program Manager - Center for Mathematics and Science Education - University of Mississippi
Mississippi FIRST Tech Challenge Affiliate Partner


Reply With Quote
  #6   Spotlight this post!  
Unread 16-02-2009, 16:52
Geek_Girl Geek_Girl is offline
Extant Female Geek
AKA: Kathy Garcia
FRC #0842 (Falcon Robotics)
Team Role: Programmer
 
Join Date: Sep 2007
Rookie Year: 2008
Location: Phoenix
Posts: 10
Geek_Girl is an unknown quantity at this point
Re: [FTC]: LABView Servo Problem

Attached.
Attached Thumbnails
Click image for larger version

Name:	code.JPG
Views:	201
Size:	78.6 KB
ID:	7482  
Reply With Quote
  #7   Spotlight this post!  
Unread 16-02-2009, 17:49
emmell's Avatar
emmell emmell is offline
Murphy was an Optimist!
AKA: Mannie Lowe
no team (Radbotics, RoboKnights, CircuitRunners, Oscar, and more...)
Team Role: Coach
 
Join Date: Dec 2005
Rookie Year: 2005
Location: Marietta, GA
Posts: 178
emmell is just really niceemmell is just really niceemmell is just really niceemmell is just really niceemmell is just really nice
Re: [FTC]: LABView Servo Problem

From what I can gather from the thumbnail (the .vi would be more helpful) is that you are scaling the values from the left side and right side of the second controller (either x or y) - which is correct and the left side is controlling one servo and the right side is controlling the other servo (servo #1 and #2 I believe). Is that summary correct?

If it is, it appears that the code is correct. So, let's look at the hardware. Is your 12VDC battery fully charged? Is there any kind of load that you are putting on the servos to stop them from turning? Are the two servos controlling one item and are they facing the same direction? If they are facing each other and connected to move a single arm or something, then they would be fighting each other?

If none of those answers lead to a solution, I would redownload the program to the brick and try again. If that doesn't work, then I would reinstall the firmware, redownload the program, and try again. I know that doesn't make sense, but it might just clear it out.

Good luck and let us know how it goes.
__________________
Mannie Lowe
FIRST Program Manager - Center for Mathematics and Science Education - University of Mississippi
Mississippi FIRST Tech Challenge Affiliate Partner


Reply With Quote
  #8   Spotlight this post!  
Unread 16-02-2009, 18:04
Geek_Girl Geek_Girl is offline
Extant Female Geek
AKA: Kathy Garcia
FRC #0842 (Falcon Robotics)
Team Role: Programmer
 
Join Date: Sep 2007
Rookie Year: 2008
Location: Phoenix
Posts: 10
Geek_Girl is an unknown quantity at this point
Re: [FTC]: LABView Servo Problem

They ARE fighting each other. I didn't think of that *slaps forehead*.

Thank you.
Reply With Quote
  #9   Spotlight this post!  
Unread 16-02-2009, 18:20
emmell's Avatar
emmell emmell is offline
Murphy was an Optimist!
AKA: Mannie Lowe
no team (Radbotics, RoboKnights, CircuitRunners, Oscar, and more...)
Team Role: Coach
 
Join Date: Dec 2005
Rookie Year: 2005
Location: Marietta, GA
Posts: 178
emmell is just really niceemmell is just really niceemmell is just really niceemmell is just really niceemmell is just really nice
Re: [FTC]: LABView Servo Problem

No problem. Glad we could help.
__________________
Mannie Lowe
FIRST Program Manager - Center for Mathematics and Science Education - University of Mississippi
Mississippi FIRST Tech Challenge Affiliate Partner


Reply With Quote
  #10   Spotlight this post!  
Unread 16-02-2009, 19:29
ttldomination's Avatar
ttldomination ttldomination is offline
Sunny
no team
Team Role: Mentor
 
Join Date: Mar 2007
Rookie Year: 2007
Location: Roanoke, TX
Posts: 2,066
ttldomination has a reputation beyond reputettldomination has a reputation beyond reputettldomination has a reputation beyond reputettldomination has a reputation beyond reputettldomination has a reputation beyond reputettldomination has a reputation beyond reputettldomination has a reputation beyond reputettldomination has a reputation beyond reputettldomination has a reputation beyond reputettldomination has a reputation beyond reputettldomination has a reputation beyond repute
Re: [FTC]: LABView Servo Problem

OH MAN. I had the same problem and I didn't even think about giving you that suggestion *slapsface*.

SOrry.
__________________
1261: 2007-2012
1648: 2013-2014
5283: 2015
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
[FTC]: LabView servo issue Abra Cadabra IV FIRST Tech Challenge 1 02-02-2009 13:44
[FTC]: [FTC]: RobotC Template Problem (causing an FMS issue) and Potential Servo Prob PackersFan FIRST Tech Challenge 11 26-01-2009 21:25
[FTC]: Problem with two controller setup in Labview wilsonmw04 FIRST Tech Challenge 2 11-11-2008 19:58
[FTC]: First problem with FTC and LabView.....? PhilBot FIRST Tech Challenge 5 07-11-2008 10:36
[FTC]: FTC Servo-Motor Problem with Labview dnhansen FIRST Tech Challenge 1 26-10-2008 00:43


All times are GMT -5. The time now is 12:31.

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