Go to Post ..attitude and willingness to work as a team...are the qualities that can make or break a team. - Monochron [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 15-02-2009, 21:03
agmlego's Avatar
agmlego agmlego is offline
Jack-of-all-trades
AKA: Andrew Meyer
FRC #0857 (Superior Roboworks)
Team Role: Mentor
 
Join Date: Apr 2006
Rookie Year: 2005
Location: Houghton, MI, USA, Terra
Posts: 13
agmlego is an unknown quantity at this point
Send a message via ICQ to agmlego Send a message via AIM to agmlego Send a message via MSN to agmlego Send a message via Yahoo to agmlego
Encoder Logic Range?

My team has been noticing that our US Digital encoders for the Toughboxes are not sending data to the Digital Sidecar, and I suspect I found the reason. According to an oscilloscope, the encoder is making a (roughly) square wave output bounded by the range [-1V,1V], and both outputs are producing the same wave pattern. This was confirmed to be the case on all four encoders we have on our system. Is anyone else noticing this problem, or is it something I am doing wrong?
__________________
"I can guarantee that if it breaks today, it will be something that has never broken before"
--Arthur C. Clarke, The Trigger
  #2   Spotlight this post!  
Unread 15-02-2009, 21:44
Uberbots's Avatar
Uberbots Uberbots is offline
Mad Programmer
AKA: Billy Sisson
FRC #1124 (ÜberBots)
Team Role: College Student
 
Join Date: Jan 2006
Rookie Year: 2005
Location: Avon
Posts: 739
Uberbots has a reputation beyond reputeUberbots has a reputation beyond reputeUberbots has a reputation beyond reputeUberbots has a reputation beyond reputeUberbots has a reputation beyond reputeUberbots has a reputation beyond reputeUberbots has a reputation beyond reputeUberbots has a reputation beyond reputeUberbots has a reputation beyond reputeUberbots has a reputation beyond reputeUberbots has a reputation beyond repute
Re: Encoder Logic Range?

have you looked at both waves superimposed (using both inputs on the sillyscope)?
the B wave should be trailing the A wave by a quarter-cycle if i remember correctly. It should also be a 0 to 5 volt pulse. are you sure you have the right encoders?
__________________
A few of my favorite numbers:
175 176 177 195 230 558 716 1024 1071 1592 1784 1816
RPI 2012
BREAKAWAY
  #3   Spotlight this post!  
Unread 15-02-2009, 21:50
EricLeifermann's Avatar
EricLeifermann EricLeifermann is offline
That was a short break
FRC #2826 (Wave Robotics)
Team Role: Engineer
 
Join Date: Jan 2007
Rookie Year: 2001
Location: Wisconsin
Posts: 1,054
EricLeifermann has a reputation beyond reputeEricLeifermann has a reputation beyond reputeEricLeifermann has a reputation beyond reputeEricLeifermann has a reputation beyond reputeEricLeifermann has a reputation beyond reputeEricLeifermann has a reputation beyond reputeEricLeifermann has a reputation beyond reputeEricLeifermann has a reputation beyond reputeEricLeifermann has a reputation beyond reputeEricLeifermann has a reputation beyond reputeEricLeifermann has a reputation beyond repute
Re: Encoder Logic Range?

yes we have the right encoders
  #4   Spotlight this post!  
Unread 15-02-2009, 22:29
agmlego's Avatar
agmlego agmlego is offline
Jack-of-all-trades
AKA: Andrew Meyer
FRC #0857 (Superior Roboworks)
Team Role: Mentor
 
Join Date: Apr 2006
Rookie Year: 2005
Location: Houghton, MI, USA, Terra
Posts: 13
agmlego is an unknown quantity at this point
Send a message via ICQ to agmlego Send a message via AIM to agmlego Send a message via MSN to agmlego Send a message via Yahoo to agmlego
Re: Encoder Logic Range?

Yes, I am quite sure we have the right encoders, as our four were ordered in two pairs, one from the KoP and one from Andy-Mark on the first or second week of build. According to the 'scope, the two channels' waveforms were roughly a quarter period or so opposed, however the range was very clearly bounded by [-1V,1V]. This is odd, because the data sheet for the sensor itself says that the signal should be the expected [0V,5V]. I can build a translating circuit, but I should not have to, though finding transistors that can switch at ~8.1MHz may be (ahem) interesting. Any ideas?
__________________
"I can guarantee that if it breaks today, it will be something that has never broken before"
--Arthur C. Clarke, The Trigger
  #5   Spotlight this post!  
Unread 15-02-2009, 22:59
lynca's Avatar
lynca lynca is offline
Andrew Lynch
FRC #2587 (DiscoBots)
Team Role: Mentor
 
Join Date: Feb 2004
Rookie Year: 2001
Location: Houston, TX
Posts: 1,612
lynca has a reputation beyond reputelynca has a reputation beyond reputelynca has a reputation beyond reputelynca has a reputation beyond reputelynca has a reputation beyond reputelynca has a reputation beyond reputelynca has a reputation beyond reputelynca has a reputation beyond reputelynca has a reputation beyond reputelynca has a reputation beyond reputelynca has a reputation beyond repute
Send a message via AIM to lynca
Re: Encoder Logic Range?

Quote:
Originally Posted by agmlego View Post
Yes, I am quite sure we have the right encoders, as our four were ordered in two pairs, one from the KoP and one from Andy-Mark on the first or second week of build. According to the 'scope, the two channels' waveforms were roughly a quarter period or so opposed, however the range was very clearly bounded by [-1V,1V]. This is odd, because the data sheet for the sensor itself says that the signal should be the expected [0V,5V]. I can build a translating circuit, but I should not have to, though finding transistors that can switch at ~8.1MHz may be (ahem) interesting. Any ideas?
We spent a few hours trying to understand these signals with the US digital encoder with no luck.

We promptly switched to Grayhill 61R and another encoder module with latex tubing. We are not going to use the US digital modules.
__________________
History: 624 - Cryptonite --> 118 - Robonauts --> 2158 - AusTIN CANS --> 2587 DiscoBots
Bio: Andrew Lynch "How I Work" ---- LinkedIn , Facebook, Twitter
  #6   Spotlight this post!  
Unread 15-02-2009, 23:18
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 Logic Range?

Quote:
Originally Posted by agmlego View Post
According to an oscilloscope, the encoder is making a (roughly) square wave output bounded by the range [-1V,1V], and both outputs are producing the same wave pattern. This was confirmed to be the case on all four encoders we have on our system. Is anyone else noticing this problem, or is it something I am doing wrong?
We can't tell if you're doing something wrong until you tell us what you're doing.

Specifically, how have you connected the encoders? They have four wires, each with a different color. Where does each wire go?
  #7   Spotlight this post!  
Unread 15-02-2009, 23:26
windell747 windell747 is offline
Registered User
FRC #2477
Team Role: Mentor
 
Join Date: Jan 2008
Rookie Year: 2001
Location: Hawaii
Posts: 158
windell747 will become famous soon enoughwindell747 will become famous soon enough
Re: Encoder Logic Range?

Why do you need to have such a high switching rate for the transitors? You shouldn't need to count pulses using electronics since the speed of the processor is so high and all the inputs are read simultaneously. The inputs are read at something like 38kHz. This limits the max freq of the encoder pulses to at most 19kHz. That is a rate of about 80 rev/sec of the encoders or 4800rpm.

If you really want to do it using ICs why not use a counter chip or build one using a shift register?
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
Limit Switchers Logic Problem Pasha Programming 17 14-02-2009 10:40
Screwing Encoder into Encoder Mount? Adrien Electrical 3 25-01-2009 18:14
Fuzzy Logic? skidmarks NI LabVIEW 1 25-01-2009 09:36
Logic Question aubinhick990 Website Design/Showcase 2 11-03-2006 16:45
Why I hate Logic EnderofDragon Chit-Chat 2 19-02-2002 21:02


All times are GMT -5. The time now is 07:42.

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