Go to Post Ive been chewing on my yellow food wristband every night since the team party on friday at UTC. Every day it tastes better and better...almost as good as the food. Anyone else think so? - Sscamatt [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 01-02-2011, 17:43
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
Encoder Problems

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.
Reply With Quote
  #2   Spotlight this post!  
Unread 01-02-2011, 18:20
Alan Anderson's Avatar
Alan Anderson Alan Anderson is offline
Software Architect
FRC #0045 (TechnoKats)
Team Role: Mentor
 
Join Date: Feb 2004
Rookie Year: 2004
Location: Kokomo, Indiana
Posts: 9,113
Alan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond repute
Re: Encoder Problems

The wiring sounds right (though I'm going from memory and I might be wrong). I assume you have the encoder outputs connected to the Digital Sidecar inputs that the software is expecting.

Did you correctly attach the encoder "code disk" to the gearbox shaft? The long plastic collar with the slits goes on first. If it's on backwards, you will read nothing. The disk should be pressed on until it is exactly in line with the mounting tabs for the cover. If it's too far away from the sensor circuit board, you will read inconsistent values. If it's too close to the sensor circuit board, you have probably destroyed it by scratching off the reflective lines against the encoder's mounting screws.

If the disk is too loose, it won't give useful results. It will probably end up sliding off the end of the shaft where it will get wedged inside the housing and the values will stop changing.
Reply With Quote
  #3   Spotlight this post!  
Unread 02-02-2011, 14:05
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
Lightbulb Re: Encoder Problems

our team had that EXACT SAME PROBLEM
long, dreadfully sad, story short we concluded it was hardware issue with the sensor ciruit board because we had infinite resistance running across the circuit board that we tested with a multimeter. But now im not so sure anymore... Recently i was browsing the programming forums here and discovered a certified national instruments programmer was saying there may be a problem with the Encoder.vi
As far as i know it is still a hardware issue (because of the infinite resistance) but could very well be a combination of hardware and software.


in other words:
__________________

jRIO 2013 Project
Reply With Quote
  #4   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
  #5   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
  #6   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
  #7   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