Go to Post Maybe someday soon the quote will be, "As American as baseball and FIRST robotics!" - KathieK [more]
Home
Go Back   Chief Delphi > Technical > Electrical
CD-Media   CD-Spy  
portal register members calendar search Today's Posts Mark Forums Read FAQ rules

 
Closed Thread
Thread Tools Rate Thread Display Modes
  #1   Spotlight this post!  
Unread 21-01-2006, 12:20
phrontist's Avatar
phrontist phrontist is offline
Proto-Engineer
AKA: Bjorn Westergard
FRC #1418 (Vae Victus)
Team Role: College Student
 
Join Date: Feb 2004
Rookie Year: 2004
Location: Falls Church, VA
Posts: 828
phrontist has a reputation beyond reputephrontist has a reputation beyond reputephrontist has a reputation beyond reputephrontist has a reputation beyond reputephrontist has a reputation beyond reputephrontist has a reputation beyond reputephrontist has a reputation beyond reputephrontist has a reputation beyond reputephrontist has a reputation beyond reputephrontist has a reputation beyond reputephrontist has a reputation beyond repute
Send a message via AIM to phrontist
Bizzare Quaderature Behavior

We have spec-ed a 61K64 Grayhill quaderature encoder in part of our design this year. We have given them supply current from both a voltage regulator and from the +5/GND pins on the RC's digital in/out ports. Initially they functioned flawlessly, responding to rotation with the expected:

00
01
11
01
00

pattern, perfectly in phase and everything. Life was good. But after testing them individually with LEDs, I hooked them up to the RC and they weren't functioning at all. Assuming it was a programming error, I tried everything I could think of and exausted all reasonable possibilites. I went back to my LED test rig and found the encoders were behaving in a bizzare manner. Upon first being connected they would function as described above, but then one output (usually the B output) would start to blink slowly, even when the encoders weren't being rotated. It's blink rate would steadily increase until it was on fully!

Disconnecting and reconnecting the power did nothing. If the whole setup was allowed to sit for a while without being on, the encoders would once again function briefly before "decaying". Am I right in assuming these have been fried internally? I can't imagine what else would cause this behavior...
__________________

University of Kentucky - Radio Free Lexington

"I would rather have a really big success or a really spectacular crash and failure then live out the warm eventual death of mediocrity" - Dean Kamen
  #2   Spotlight this post!  
Unread 21-01-2006, 12:23
KenWittlief KenWittlief is offline
.
no team
Team Role: Engineer
 
Join Date: Mar 2003
Location: Rochester, NY
Posts: 4,213
KenWittlief has a reputation beyond reputeKenWittlief has a reputation beyond reputeKenWittlief has a reputation beyond reputeKenWittlief has a reputation beyond reputeKenWittlief has a reputation beyond reputeKenWittlief has a reputation beyond reputeKenWittlief has a reputation beyond reputeKenWittlief has a reputation beyond reputeKenWittlief has a reputation beyond reputeKenWittlief has a reputation beyond reputeKenWittlief has a reputation beyond repute
Re: Bizzare Quaderature Behavior

sounds like toast :c(

do you have a spec sheet for them? are you sure they are designed to run at 5VDC? LEDs normally need a series resistor to limit current, but also, when they are blown they dont work at all

blinking is weird. are you sure its not your power supply that is switching on and off? can you meter the power pins to the encoder? maybe you have a breaker cycling or something weird?
  #3   Spotlight this post!  
Unread 21-01-2006, 12:32
KenWittlief KenWittlief is offline
.
no team
Team Role: Engineer
 
Join Date: Mar 2003
Location: Rochester, NY
Posts: 4,213
KenWittlief has a reputation beyond reputeKenWittlief has a reputation beyond reputeKenWittlief has a reputation beyond reputeKenWittlief has a reputation beyond reputeKenWittlief has a reputation beyond reputeKenWittlief has a reputation beyond reputeKenWittlief has a reputation beyond reputeKenWittlief has a reputation beyond reputeKenWittlief has a reputation beyond reputeKenWittlief has a reputation beyond reputeKenWittlief has a reputation beyond repute
Re: Bizzare Quaderature Behavior

I looked at the data sheet from your postd link

they are 5VDC parts, so you dont need a series resistor - if you connected them to 5V (check your supply with a meter) and did not wire them backwards they should be ok.

how are you testing the output? meter or a scope would be best.

You do know that there are blinking leds (your testing LEDs maybe?) that look just like normal LEDs, right?
  #4   Spotlight this post!  
Unread 21-01-2006, 12:34
phrontist's Avatar
phrontist phrontist is offline
Proto-Engineer
AKA: Bjorn Westergard
FRC #1418 (Vae Victus)
Team Role: College Student
 
Join Date: Feb 2004
Rookie Year: 2004
Location: Falls Church, VA
Posts: 828
phrontist has a reputation beyond reputephrontist has a reputation beyond reputephrontist has a reputation beyond reputephrontist has a reputation beyond reputephrontist has a reputation beyond reputephrontist has a reputation beyond reputephrontist has a reputation beyond reputephrontist has a reputation beyond reputephrontist has a reputation beyond reputephrontist has a reputation beyond reputephrontist has a reputation beyond repute
Send a message via AIM to phrontist
Re: Bizzare Quaderature Behavior

Quote:
Originally Posted by KenWittlief
sounds like toast :c(

do you have a spec sheet for them? are you sure they are designed to run at 5VDC? LEDs normally need a series resistor to limit current, but also, when they are blown they dont work at all

blinking is weird. are you sure its not your power supply that is switching on and off? can you meter the power pins to the encoder? maybe you have a breaker cycling or something weird?
I had an ammeter in parrallel with both power supply for both configurations... it was running between 4.85 and 5, which was inside the tolerance stated in the white paper.

I just wanted to make sure they were fried, get a second opinion as it were.
__________________

University of Kentucky - Radio Free Lexington

"I would rather have a really big success or a really spectacular crash and failure then live out the warm eventual death of mediocrity" - Dean Kamen
  #5   Spotlight this post!  
Unread 21-01-2006, 12:41
KenWittlief KenWittlief is offline
.
no team
Team Role: Engineer
 
Join Date: Mar 2003
Location: Rochester, NY
Posts: 4,213
KenWittlief has a reputation beyond reputeKenWittlief has a reputation beyond reputeKenWittlief has a reputation beyond reputeKenWittlief has a reputation beyond reputeKenWittlief has a reputation beyond reputeKenWittlief has a reputation beyond reputeKenWittlief has a reputation beyond reputeKenWittlief has a reputation beyond reputeKenWittlief has a reputation beyond reputeKenWittlief has a reputation beyond reputeKenWittlief has a reputation beyond repute
Re: Bizzare Quaderature Behavior

test them with a known good 5VDC supply, and with a voltmeter on the output. Make sure the voltmeter is on DC (some default to DC or AC when your turn them on).

the output should be on or off when the shaft is not rotating, and you should be able to slowly rotate it and see the outputs change. If your meter has a frequency function you should be able to see the freq change as you rotate the shaft.

A scope would be excellent for this.
  #6   Spotlight this post!  
Unread 21-01-2006, 13:10
phrontist's Avatar
phrontist phrontist is offline
Proto-Engineer
AKA: Bjorn Westergard
FRC #1418 (Vae Victus)
Team Role: College Student
 
Join Date: Feb 2004
Rookie Year: 2004
Location: Falls Church, VA
Posts: 828
phrontist has a reputation beyond reputephrontist has a reputation beyond reputephrontist has a reputation beyond reputephrontist has a reputation beyond reputephrontist has a reputation beyond reputephrontist has a reputation beyond reputephrontist has a reputation beyond reputephrontist has a reputation beyond reputephrontist has a reputation beyond reputephrontist has a reputation beyond reputephrontist has a reputation beyond repute
Send a message via AIM to phrontist
Re: Bizzare Quaderature Behavior

Did I say ammemeter? I meant voltmeter...

We checked them initially with an O-scope, and since then have been using the LEDs as ghetto logic probes.
__________________

University of Kentucky - Radio Free Lexington

"I would rather have a really big success or a really spectacular crash and failure then live out the warm eventual death of mediocrity" - Dean Kamen
  #7   Spotlight this post!  
Unread 21-01-2006, 14:05
Kevin Watson's Avatar
Kevin Watson Kevin Watson is offline
La Caņada High School
FRC #2429
Team Role: Mentor
 
Join Date: Jan 2002
Rookie Year: 2001
Location: La Caņada, California
Posts: 1,335
Kevin Watson has a reputation beyond reputeKevin Watson has a reputation beyond reputeKevin Watson has a reputation beyond reputeKevin Watson has a reputation beyond reputeKevin Watson has a reputation beyond reputeKevin Watson has a reputation beyond reputeKevin Watson has a reputation beyond reputeKevin Watson has a reputation beyond reputeKevin Watson has a reputation beyond reputeKevin Watson has a reputation beyond reputeKevin Watson has a reputation beyond repute
Re: Bizzare Quaderature Behavior

Quote:
Originally Posted by phrontist
We have spec-ed a 61K64 Grayhill quaderature encoder in part of our design this year. We have given them supply current from both a voltage regulator and from the +5/GND pins on the RC's digital in/out ports. Initially they functioned flawlessly, responding to rotation with the expected:

00
01
11
01
00

pattern, perfectly in phase and everything. Life was good. But after testing them individually with LEDs, I hooked them up to the RC and they weren't functioning at all. Assuming it was a programming error, I tried everything I could think of and exausted all reasonable possibilites. I went back to my LED test rig and found the encoders were behaving in a bizzare manner. Upon first being connected they would function as described above, but then one output (usually the B output) would start to blink slowly, even when the encoders weren't being rotated. It's blink rate would steadily increase until it was on fully!

Disconnecting and reconnecting the power did nothing. If the whole setup was allowed to sit for a while without being on, the encoders would once again function briefly before "decaying". Am I right in assuming these have been fried internally? I can't imagine what else would cause this behavior...
Are you trying to drive the LEDs directly from the encoder's output? If so, the Grayhill's don't have much drive capability. This is why I suggest most teams use a 74ACT244 line driver for higher count rates.

-Kevin
__________________
Kevin Watson
Engineer at stealth-mode startup
http://kevin.org
  #8   Spotlight this post!  
Unread 21-01-2006, 14:10
KenWittlief KenWittlief is offline
.
no team
Team Role: Engineer
 
Join Date: Mar 2003
Location: Rochester, NY
Posts: 4,213
KenWittlief has a reputation beyond reputeKenWittlief has a reputation beyond reputeKenWittlief has a reputation beyond reputeKenWittlief has a reputation beyond reputeKenWittlief has a reputation beyond reputeKenWittlief has a reputation beyond reputeKenWittlief has a reputation beyond reputeKenWittlief has a reputation beyond reputeKenWittlief has a reputation beyond reputeKenWittlief has a reputation beyond reputeKenWittlief has a reputation beyond repute
Re: Bizzare Quaderature Behavior

something else: when the encoder has one LED right on the edge (between being full on and full off) it can twitch back and forth. Thats why there are two outputs, when one changes state you ignore it until the other one changes state.

If one LED is blinking its possible the encoder is turned so that sensor is on the edge of a mark?
  #9   Spotlight this post!  
Unread 22-01-2006, 09:04
Unsung FIRST Hero
Al Skierkiewicz Al Skierkiewicz is offline
Broadcast Eng/Chief Robot Inspector
AKA: Big Al WFFA 2005
FRC #0111 (WildStang)
Team Role: Engineer
 
Join Date: Jun 2001
Rookie Year: 1996
Location: Wheeling, IL
Posts: 10,795
Al Skierkiewicz has a reputation beyond reputeAl Skierkiewicz has a reputation beyond reputeAl Skierkiewicz has a reputation beyond reputeAl Skierkiewicz has a reputation beyond reputeAl Skierkiewicz has a reputation beyond reputeAl Skierkiewicz has a reputation beyond reputeAl Skierkiewicz has a reputation beyond reputeAl Skierkiewicz has a reputation beyond reputeAl Skierkiewicz has a reputation beyond reputeAl Skierkiewicz has a reputation beyond reputeAl Skierkiewicz has a reputation beyond repute
Re: Bizzare Quaderature Behavior

Bjorn,
Were you using LEDs without current limiting resistors? The stated output drive on the endcoder is only 16ma. If you hung a normal LED on that output, without series resistors to limit current, you have likely fried the output(s).
__________________
Good Luck All. Learn something new, everyday!
Al
WB9UVJ
www.wildstang.org
________________________
Storming the Tower since 1996.
Closed Thread


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
Servo behavior question / advanced servo/PIC programming question DanL Electrical 12 18-10-2005 18:33
Bad behavior in the hotels. Tiki General Forum 45 26-03-2005 23:39
Un-Gracious & Professional Behavior at AZ Team Social Weightmn General Forum 27 23-03-2005 12:09
Selecting Autonomous Behavior Gobiner Programming 5 22-01-2003 09:44


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

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