Go to Post Sweeeetttt.....Thats all that needs to be said. :D - george56 [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 02-03-2009, 23:53
jlester jlester is offline
Registered User
FRC #1533
 
Join Date: Dec 2005
Location: Greensboro, NC
Posts: 5
jlester is a splendid one to beholdjlester is a splendid one to beholdjlester is a splendid one to beholdjlester is a splendid one to beholdjlester is a splendid one to beholdjlester is a splendid one to beholdjlester is a splendid one to beholdjlester is a splendid one to behold
[FTC]: Labview Encoder Problem

We downloaded the encoder updates and the sample program for Labview and are having problems. Whatever value we put in for the target encoder value, the motors run for about 10 seconds and then shut off. If we run the sample program that includes the constant speed VI, the motors move forward and backward, not in sych with each other, and never the same pattern, seemingly randomly for 10 seconds. If we eliminate that VI and just specify a target distance for a single motor to travel, the motor runs for 10 seconds in one direction and shuts down (even if we specify the target as 1440, or one revolution).

Can anyone help us understand what is going wrong or offer any suggestions?
Reply With Quote
  #2   Spotlight this post!  
Unread 08-03-2009, 11:27
PhilBot's Avatar
PhilBot PhilBot is offline
Get a life? This IS my life!
AKA: Phil Malone
FRC #1629 (GaCo: The Garrett Coalition)
Team Role: Mentor
 
Join Date: Jan 2006
Rookie Year: 2006
Location: Maryland
Posts: 747
PhilBot has a reputation beyond reputePhilBot has a reputation beyond reputePhilBot has a reputation beyond reputePhilBot has a reputation beyond reputePhilBot has a reputation beyond reputePhilBot has a reputation beyond reputePhilBot has a reputation beyond reputePhilBot has a reputation beyond reputePhilBot has a reputation beyond reputePhilBot has a reputation beyond reputePhilBot has a reputation beyond repute
Re: [FTC]: Labview Encoder Problem

Quote:
Originally Posted by jlester View Post
We downloaded the encoder updates and the sample program for Labview and are having problems. Whatever value we put in for the target encoder value, the motors run for about 10 seconds and then shut off.
The 10 second timeout is in the LV code that's waiting for the encoders to reach their target position. It's clear that this is not hapenning, so the NXT shuts the Motors off after 10 seconds.

Some possible reasons:

1) The encoders are not wired/plugged in correctly. Verify this by unplugging them altogether, the same will probably happen. Check the following:

2) Check that the Encoder cable is plugged into the motor controller correctly (Yellow wire to the outside edge)

3) The left and right motors/encoders are swapped.
Simplify this by ONLY driving one wheel (eg A) and verifying that the Wires from Motor 1's encoder are going back to Encoder Input 1 on the motor controller.

4) Your motor polarity is reversed.. Check that the Red wire is hooked to the Motor terminal with the + engraved on the rear of the motor. (Simply setting the "Reverse" input on the motor.VI DOES NOT correct this problem).

Once you have the encoders reading (A and B correctly), use the Reverse input (to flip one motor) to make both motors run forward when you give a positive position to the Specify Position VI.

Note: the "Encoder Example" on the CMU site is incorrect. The Constant Speed VI and the Specify Position VI's are independant. You can use one or the other. Setting a constant speed prior to the Specify Position will have no effect. You must use the "Power" input on Specify Position to change the speed at which it obtains that position. Just a head's up.

Phil.
__________________
Phil Malone
Garrett Engineering And Robotics Society (GEARS) founder.
http://www.GEARSinc.org

FRC1629 Mentor, FTC2818 Coach, FTC4240 Mentor, FLL NeXTGEN Mentor
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 Problem Geek_Girl FIRST Tech Challenge 9 16-02-2009 19:29
[FTC]: Rhode Rage (FTC 121) is in need of a motor encoder wire Rick FIRST Tech Challenge 2 02-02-2009 01:56
[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 13:02.

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