Go to Post Don't let Dean's homework assignment enter into the equation; his homework is about spreading his organization and has nothing to do with you doing what you want to do. - jonathan lall [more]
Home
Go Back   Chief Delphi > Technical > Technical Discussion
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-04-2015, 21:29
Kherda's Avatar
Kherda Kherda is offline
Electrical, 2012-16
FRC #0537 (Charger Robotics)
Team Role: Electrical
 
Join Date: Feb 2015
Rookie Year: 2009
Location: Sussex, WI
Posts: 3
Kherda is an unknown quantity at this point
Encoders on breakout board

Our team thought of using the new breakout board on this year's control system to wire up a single-wire (5v, gnd, A, and B all on one 4-wire PWM) encoder using 4-pin wire-to-board terminal blocks. We thought of doing this instead of the way we did it before the new system (breaking off the A and B signals into two different PWMs). We thought of doing this with the REV proto board's (am-2994) top part, where it isn't like a breadboard.
Update: We do use absolute optical encoders.
To make things short, I was wondering if anyone has done this, and if there's been any issues with it.

Last edited by Kherda : 16-04-2015 at 19:29.
  #2   Spotlight this post!  
Unread 15-04-2015, 22:02
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: Encoders on breakout board

I'd like to help answer your question, but I don't know what you are asking. What new breakout board do you mean? What is a single-wire encoder? Do you have a part number for the terminal blocks you mention?

The bit about PWMs makes no sense to me. A and B sound like the signals from a quadrature encoder, and should go to digital inputs. PWM signals are outputs.
  #3   Spotlight this post!  
Unread 15-04-2015, 23:09
Tom Line's Avatar
Tom Line Tom Line is offline
Raptors can't turn doorknobs.
FRC #1718 (The Fighting Pi)
Team Role: Mentor
 
Join Date: Jan 2007
Rookie Year: 1999
Location: Armada, Michigan
Posts: 2,533
Tom Line has a reputation beyond reputeTom Line has a reputation beyond reputeTom Line has a reputation beyond reputeTom Line has a reputation beyond reputeTom Line has a reputation beyond reputeTom Line has a reputation beyond reputeTom Line has a reputation beyond reputeTom Line has a reputation beyond reputeTom Line has a reputation beyond reputeTom Line has a reputation beyond reputeTom Line has a reputation beyond repute
Re: Encoders on breakout board

We are using the Rev Robotics More Board since we had 15 motors at one point. They've worked well, with my only caveat being that the open nature of the board promotes bending of the pins - last time it happened when the mechanical team threw a towel over the board while drilling and towel snagged the pins.

We've also had to pull it off twice to clean off behind it due to aluminum swarf and dust. I feel like if they'd extended it a little taller and put stand-offs on it then it would have been perfect and a lot less likely to collect aluminum between it and the roborio.
  #4   Spotlight this post!  
Unread 15-04-2015, 23:17
mshafer1 mshafer1 is offline
Programming Mentor
AKA: Matthew Shafer
FRC #3937 (Breakaway)
Team Role: Mentor
 
Join Date: Jan 2015
Rookie Year: 2008
Location: Arkansas
Posts: 58
mshafer1 is an unknown quantity at this point
Re: Encoders on breakout board

My team utilizes Encoders for several reasons, although this year our encoders went on the Roborio's built in DI/O pins, we did use the Rev Robotics breakout board to control an arduino that runs some indicator lights for us.

You can indeed wire to the DI/O pins on the breakout board in much the same way as you would have in the past (I am assuming that by single cable you mean it is still an absolute optical encoder with A and B channels), and the only difference would be when you call them in begin.vi (assuming LabVIEW), that the ports become MXP DI/O __ (where blank is the channels you select).

If you mean by single cable that you are using a incremental encoder, you would just wire it's signal wire to a DI/O as if it were one of the channels (A or B) from past years, and set it up appropriately in the code (MXP or not).

If you are not using LabVIEW, then you will have to check, but I'm am fairly certain that C++ and Java (whether in Robot Builder or not I'm not sure) offer the option to use an MXP DI/O in a very similar way as using the DI/O's on the rest of the Roborio.
  #5   Spotlight this post!  
Unread 16-04-2015, 19:24
Kherda's Avatar
Kherda Kherda is offline
Electrical, 2012-16
FRC #0537 (Charger Robotics)
Team Role: Electrical
 
Join Date: Feb 2015
Rookie Year: 2009
Location: Sussex, WI
Posts: 3
Kherda is an unknown quantity at this point
Re: Encoders on breakout board

Quote:
Originally Posted by Alan Anderson View Post
I'd like to help answer your question, but I don't know what you are asking. What new breakout board do you mean? What is a single-wire encoder? Do you have a part number for the terminal blocks you mention?

The bit about PWMs makes no sense to me. A and B sound like the signals from a quadrature encoder, and should go to digital inputs. PWM signals are outputs.
I was just informed that we do use absolute optical encoders. Sorry for the confusion. What I meant by single wire encoder is running all 4 encoder wires on one 4-wire PWM (5v, gnd, A, B), instead splitting the encoder wires into two 3-pin PWMs (5v, gnd, A) and (5v, gnd, B) wires that go to separate 3-pin blocks. We'd then run two different DI/O signals to the A and B pins on one 4-pin plugin block.

Last edited by Kherda : 16-04-2015 at 19:29.
  #6   Spotlight this post!  
Unread 16-04-2015, 20:36
Spoam's Avatar
Spoam Spoam is offline
Registered User
AKA: Pedro M.
FRC #0955 (CV Robotics)
Team Role: Programmer
 
Join Date: Feb 2014
Rookie Year: 2012
Location: Corvallis
Posts: 54
Spoam is a jewel in the roughSpoam is a jewel in the roughSpoam is a jewel in the roughSpoam is a jewel in the rough
Re: Encoders on breakout board

Quote:
Originally Posted by Kherda View Post
I was just informed that we do use absolute optical encoders. Sorry for the confusion. What I meant by single wire encoder is running all 4 encoder wires on one 4-wire PWM (5v, gnd, A, B), instead splitting the encoder wires into two 3-pin PWMs (5v, gnd, A) and (5v, gnd, B) wires that go to separate 3-pin blocks. We'd then run two different DI/O signals to the A and B pins on one 4-pin plugin block.
I think you mean to say PWM cables. PWM is a type of control signal.
__________________
2015 PNW District Champions (955, 1983, 2930)





Co-Creator of 955 OPR
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


All times are GMT -5. The time now is 03:20.

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