Go to Post I would like to know the team simply because it seems they could use a hug. - Taylor [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 02-02-2011, 15:13
kamocat's Avatar
kamocat kamocat is offline
Test Engineer
AKA: Marshal Horn
FRC #3213 (Thunder Tech)
Team Role: Mentor
 
Join Date: May 2008
Rookie Year: 2008
Location: Tacoma
Posts: 894
kamocat is just really nicekamocat is just really nicekamocat is just really nicekamocat is just really nicekamocat is just really nice
Send a message via AIM to kamocat Send a message via MSN to kamocat
Re: Encoder Problems

Quote:
Originally Posted by Triapod View Post
We recently decided to use the encoders and we are having problems with the programming aspect. When we use the motor with encoder example vi, the motor works but the encoder just shows a small number for the distance and nothing for the rate The numbers flash as if they are changing but remain constant.

The encoder wires were soldered to two female-end pwm cables with the brown to black, orange to red, blue to white, and yellow to white.
It sounds like one of your encoder channels is disconnected.
This would result in the value changing rapidly, but not going anywhere.
__________________
-- Marshal Horn
Reply With Quote
  #2   Spotlight this post!  
Unread 02-02-2011, 15:16
IisMathwizard's Avatar
IisMathwizard IisMathwizard is offline
Programming Mentor
AKA: Mathwizard
FRC #1248 (Titanium Allies)
Team Role: Mentor
 
Join Date: Jan 2011
Rookie Year: 2009
Location: Berea-Midpark High school
Posts: 60
IisMathwizard is an unknown quantity at this point
Thumbs up Re: Encoder Problems

That's is what one of our mentors suggested it could be...
__________________

jRIO 2013 Project
Reply With Quote
  #3   Spotlight this post!  
Unread 02-02-2011, 19:24
Triapod Triapod is offline
Registered User
no team
Team Role: Programmer
 
Join Date: Mar 2010
Rookie Year: 2005
Location: NJ
Posts: 28
Triapod is an unknown quantity at this point
Re: Encoder Problems

Thank you for the responses. We made sure that the encoder was well secured on the gear box. It might be a hardware problem. These were the encoders that we assembled but never got to use last year so the assembly might have been faulty. We will try again with the encoders from this year and see how it goes.
Reply With Quote
  #4   Spotlight this post!  
Unread 03-02-2011, 10:51
Jim.D Jim.D is offline
Registered User
FTC #1983
 
Join Date: Dec 2008
Location: Seattle
Posts: 16
Jim.D is an unknown quantity at this point
Re: Encoder Problems

You can test the encoders using the PSOC I.O. board. If you remove the plastic head from the PWM cables the pine can be connected directly to the PSOC pins as follows.
Orange = VDDIO
Blue = P6_0
Brown = Ground
Yellow = P6_2

Configure the pins as inputs floating. Start the driver station and turn the motor on or spin the encoder by hand. The values should display on the drives station lower right corner.

To install the encoders you should use tools from US Digital or make your own.
The tools ensure that the encoder is centered correctly around the shaft and set the disk to sensor distance. The centering tool is just a small alum collar that fist over the shaft and into the hole of the encoder PCB. The disk insertion tool is a flat plastic disk that presses the disk in slightlt farther than tha cover tabs (approx .05 in farther). The side of the disk that looks like the surface of a CD goes toward the sensor PCB.
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


All times are GMT -5. The time now is 21:14.

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