Go to Post BEING a chairmans team is alot more important then WINNING the chairmans award. - fuzzwaz [more]
Home
Go Back   Chief Delphi > FIRST > General Forum
CD-Media   CD-Spy  
portal register members calendar search Today's Posts Mark Forums Read FAQ rules

 
Reply
Thread Tools Rating: Thread Rating: 2 votes, 5.00 average. Display Modes
  #1   Spotlight this post!  
Unread 14-02-2011, 11:29
Team473 Team473 is offline
Registered User
FRC #0473
 
Join Date: Feb 2011
Location: Montana
Posts: 4
Team473 is an unknown quantity at this point
E4P encoder

We are having trouble getting any kind of reading from our encoders. We have them on our Andy Marks transmissions and they don't give us a reading. I think we have them hooked up right but not sure if it is the wiring or programming. We want to use them to make the transmission shift at a certain RPM.
Reply With Quote
  #2   Spotlight this post!  
Unread 14-02-2011, 11:31
Mark McLeod's Avatar
Mark McLeod Mark McLeod is offline
Just Itinerant
AKA: Hey dad...Father...MARK
FRC #0358 (Robotic Eagles)
Team Role: Engineer
 
Join Date: Mar 2003
Rookie Year: 2002
Location: Hauppauge, Long Island, NY
Posts: 8,899
Mark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond repute
Re: E4P encoder

Perhaps photos and a description of the wiring.

Perhaps code and a description of the programming that isn't receiving input.
__________________
"Rationality is our distinguishing characteristic - it's what sets us apart from the beasts." - Aristotle
Reply With Quote
  #3   Spotlight this post!  
Unread 14-02-2011, 11:45
BrianT103's Avatar
BrianT103 BrianT103 is offline
Registered User
AKA: Brian Taylor a.ka. BT
FRC #0103 (Cybersonics)
Team Role: Mentor
 
Join Date: Apr 2006
Rookie Year: 2006
Location: Kintnersville, PA
Posts: 57
BrianT103 has much to be proud ofBrianT103 has much to be proud ofBrianT103 has much to be proud ofBrianT103 has much to be proud ofBrianT103 has much to be proud ofBrianT103 has much to be proud ofBrianT103 has much to be proud ofBrianT103 has much to be proud ofBrianT103 has much to be proud of
Send a message via AIM to BrianT103
Re: E4P encoder

Make sure that the spacing between the encoder and the codewheel is correct. US Digital says that an air gap of .07 inches is ideal. Be sure that the pattern-side of the codewheel is facing down towards the encoder and that the codewheel is snug on the shaft.

Here's a link to their website with more information.

http://usdigital.com/products/encode...otary/kit/e4p/

Hope this helps.
__________________
Reply With Quote
  #4   Spotlight this post!  
Unread 14-02-2011, 12:02
Hugh Meyer's Avatar
Hugh Meyer Hugh Meyer is offline
Registered User
FRC #1741 (Red Alert Robotics)
Team Role: Mentor
 
Join Date: Feb 2009
Rookie Year: 2008
Location: Greenwood Indiana
Posts: 158
Hugh Meyer has much to be proud ofHugh Meyer has much to be proud ofHugh Meyer has much to be proud ofHugh Meyer has much to be proud ofHugh Meyer has much to be proud ofHugh Meyer has much to be proud ofHugh Meyer has much to be proud ofHugh Meyer has much to be proud of
Re: E4P encoder

When the encoder is powered it will have a red glow from the LED inside on the chip. You need to remove the cover to see the light. It isn't very bright, but it is definitely visible. If it is not lit, then your wiring is suspect.

The best way to know if they are working is with a two channel oscilloscope. If you have one, connect each channel on the scope to the A and B channel outputs from the encoder. You should see two square waves 90 degrees out of phase.

-Hugh
Reply With Quote
  #5   Spotlight this post!  
Unread 14-02-2011, 13:05
Team473 Team473 is offline
Registered User
FRC #0473
 
Join Date: Feb 2011
Location: Montana
Posts: 4
Team473 is an unknown quantity at this point
Re: E4P encoder

We have power to it, the little red light is on but we are not getting any thing back in the programming. Where should the A and B wires be hook up.
Reply With Quote
  #6   Spotlight this post!  
Unread 14-02-2011, 13:08
apalrd's Avatar
apalrd apalrd is offline
More Torque!
AKA: Andrew Palardy (Most people call me Palardy)
VRC #3333
Team Role: College Student
 
Join Date: Mar 2009
Rookie Year: 2009
Location: Auburn Hills, MI
Posts: 1,347
apalrd has a reputation beyond reputeapalrd has a reputation beyond reputeapalrd has a reputation beyond reputeapalrd has a reputation beyond reputeapalrd has a reputation beyond reputeapalrd has a reputation beyond reputeapalrd has a reputation beyond reputeapalrd has a reputation beyond reputeapalrd has a reputation beyond reputeapalrd has a reputation beyond reputeapalrd has a reputation beyond repute
Re: E4P encoder

A and B go to two digital inputs on the digital sidecar.

In software (labview), you would open the two digital channels as digital inputs, then use To Digital Source to create a digital source, then use the two digital sources to open an Encoder. Once you open the encoder, you have to START them (very easy to forget), then you can GET them whenever you want.
__________________
Kettering University - Computer Engineering
Kettering Motorsports
Williams International - Commercial Engines - Controls and Accessories
FRC 33 - The Killer Bees - 2009-2012 Student, 2013-2014 Advisor
VEX IQ 3333 - The Bumble Bees - 2014+ Mentor

"Sometimes, the elegant implementation is a function. Not a method. Not a class. Not a framework. Just a function." ~ John Carmack
Reply With Quote
  #7   Spotlight this post!  
Unread 14-02-2011, 13:22
Team473 Team473 is offline
Registered User
FRC #0473
 
Join Date: Feb 2011
Location: Montana
Posts: 4
Team473 is an unknown quantity at this point
Re: E4P encoder

We have A and B hooked up to the digital I/O pins. As far as programming goes, I used the Open Encoder.vi that came with the FRC tools in our Begin.vi. I hooked that to the StartEncoder block, then wired to a To Digital Source. I have the GetEncoder block in my teleop code, and I have a display off the encoder rate node. However, when we run the program and spin the shaft, we get no reading. I will upload a screenshot of the program and/or a photo of our wiring later today when our programming computer is available.
Reply With Quote
  #8   Spotlight this post!  
Unread 14-02-2011, 13:30
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: E4P encoder

Quote:
Originally Posted by Team473 View Post
I have the GetEncoder block in my teleop code, and I have a display off the encoder rate node. However, when we run the program and spin the shaft, we get no reading.
Did you ENABLE the robot? Your Teleop code probably doesn't run if the robot is DISABLED.
Reply With Quote
  #9   Spotlight this post!  
Unread 14-02-2011, 13:33
Team473 Team473 is offline
Registered User
FRC #0473
 
Join Date: Feb 2011
Location: Montana
Posts: 4
Team473 is an unknown quantity at this point
Re: E4P encoder

We did enable it using the FRC driver station software. Motors were responding to joystick, everything worked except for the encoder.
Reply With Quote
  #10   Spotlight this post!  
Unread 14-02-2011, 15:08
Mr. Lim Mr. Lim is offline
Registered User
AKA: Mr. Lim
no team
Team Role: Leadership
 
Join Date: Jan 2004
Rookie Year: 1998
Location: Toronto, Ontario
Posts: 1,125
Mr. Lim has a reputation beyond reputeMr. Lim has a reputation beyond reputeMr. Lim has a reputation beyond reputeMr. Lim has a reputation beyond reputeMr. Lim has a reputation beyond reputeMr. Lim has a reputation beyond reputeMr. Lim has a reputation beyond reputeMr. Lim has a reputation beyond reputeMr. Lim has a reputation beyond reputeMr. Lim has a reputation beyond reputeMr. Lim has a reputation beyond repute
Re: E4P encoder

Check the encoder A and B wires with a digital multimeter. You should see them transition between 0V and 5V as you touch the encoder. It doesn't take much to get the voltage to change, since there are 360 pulses per revolution.

If you don't get any changes on either the A or B, double check that you are getting a bright red light in the encoder. Check the spacing between the disc and the red light, it can't be too close or too far. Then check if you haven't accidentally ripped the connector traces our of the encoder. The white plastic connector on the encoder PCB is fragile, and can only take so many connects and disconnects... if not done very carefully.
__________________
In life, what you give, you keep. What you fail to give, you lose forever...
Reply With Quote
  #11   Spotlight this post!  
Unread 14-02-2011, 15:14
apalrd's Avatar
apalrd apalrd is offline
More Torque!
AKA: Andrew Palardy (Most people call me Palardy)
VRC #3333
Team Role: College Student
 
Join Date: Mar 2009
Rookie Year: 2009
Location: Auburn Hills, MI
Posts: 1,347
apalrd has a reputation beyond reputeapalrd has a reputation beyond reputeapalrd has a reputation beyond reputeapalrd has a reputation beyond reputeapalrd has a reputation beyond reputeapalrd has a reputation beyond reputeapalrd has a reputation beyond reputeapalrd has a reputation beyond reputeapalrd has a reputation beyond reputeapalrd has a reputation beyond reputeapalrd has a reputation beyond repute
Re: E4P encoder

Try looking at both Rate and Distance in software. If Distance works fine (and counts correctly, up and down) but Rate returns 0, that is a known bug in the encoder library.

The only workarounds are to either write your own code based on the delta of distance and time between iterations, or allocate two encoders (since every other one works).

Another modification I suggest to the default code is to open Robot Main.vi, and look to for where it calls Disabled. Place a call to Teleop after disabled, and wire it in parallel. In Disabled, stop setting the outputs to 0. This will allow you to run your code, and probe the wires and outputs, without enabling the robot.
__________________
Kettering University - Computer Engineering
Kettering Motorsports
Williams International - Commercial Engines - Controls and Accessories
FRC 33 - The Killer Bees - 2009-2012 Student, 2013-2014 Advisor
VEX IQ 3333 - The Bumble Bees - 2014+ Mentor

"Sometimes, the elegant implementation is a function. Not a method. Not a class. Not a framework. Just a function." ~ John Carmack
Reply With Quote
  #12   Spotlight this post!  
Unread 14-02-2011, 20:19
browny996's Avatar
browny996 browny996 is offline
Eduardo Torres
AKA: Frozt Byte
FRC #3574 (High Tekerz)
Team Role: CAD
 
Join Date: Jan 2011
Rookie Year: 2010
Location: Burien, WA
Posts: 24
browny996 is an unknown quantity at this point
Re: E4P encoder

Hey rockie team 3574 here
So how do you mount the encoders using the base that they come with
Reply With Quote
  #13   Spotlight this post!  
Unread 15-02-2011, 07:40
Mark McLeod's Avatar
Mark McLeod Mark McLeod is offline
Just Itinerant
AKA: Hey dad...Father...MARK
FRC #0358 (Robotic Eagles)
Team Role: Engineer
 
Join Date: Mar 2003
Rookie Year: 2002
Location: Hauppauge, Long Island, NY
Posts: 8,899
Mark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond repute
Re: E4P encoder

Assembly video
__________________
"Rationality is our distinguishing characteristic - it's what sets us apart from the beasts." - Aristotle
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 02:08.

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