Go to Post I'm hoping for a JVN action figure this year! - marshall [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 23-01-2010, 22:01
NerdGuy's Avatar
NerdGuy NerdGuy is offline
Registered User
FRC #2974
 
Join Date: Jan 2010
Location: Atlanta
Posts: 16
NerdGuy is an unknown quantity at this point
Wiring Encoders?

Hey so i am a bit confused as to where the optical encoders go on the digital sidecar

Can they plug into the Digital I/O slots?

Also what color wire correspond to 5V,GRND, and sig1,sig2, from encoders (assuming standard kit from first)
__________________
"Life would be so much easier if we only had the source code."
  #2   Spotlight this post!  
Unread 23-01-2010, 22:11
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: Wiring Encoders?

They go to the Digital IO section.

You will need some spare PWM cables to connect the encoders, two per encoder. There are four wires in the encoder - Plug the cable into the encoder and read the labels on the cover for what wire goes to what. There should be an +5v, A, B, and Gnd. Cut the female end off of each PWM cable, leaving enough cable to run from your DSC to wherever your encoder is. You do not need the male end. Wire the red wire from one of the two cables to the +5 wire, the black one to the GND wire, and the white from one to the A wire. The other one will only need the white wire, and that will connect to the B wire. It does not matter where you plug the cable into the DSC, as long as they are in the Digital IO section. Usually you would plug them in to IO pins next to each other.

If you need help with the software, ask.
__________________
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
  #3   Spotlight this post!  
Unread 23-01-2010, 23:02
NerdGuy's Avatar
NerdGuy NerdGuy is offline
Registered User
FRC #2974
 
Join Date: Jan 2010
Location: Atlanta
Posts: 16
NerdGuy is an unknown quantity at this point
Re: Wiring Encoders?

OK thanks we will try that tomorrow.
__________________
"Life would be so much easier if we only had the source code."
  #4   Spotlight this post!  
Unread 28-01-2010, 13:34
bobvader505 bobvader505 is offline
Registered User
FRC #0343
 
Join Date: Jan 2007
Location: Sugar Land
Posts: 6
bobvader505 is an unknown quantity at this point
Re: Wiring Encoders?

Thanks from team 434 as well!
  #5   Spotlight this post!  
Unread 30-01-2010, 19:27
PortugazD.Ace's Avatar
PortugazD.Ace PortugazD.Ace is offline
Registered User
AKA: Timothy Gonzales
FRC #1165 (Team Paradise)
Team Role: Student
 
Join Date: Jan 2010
Rookie Year: 2008
Location: Arizona
Posts: 46
PortugazD.Ace is an unknown quantity at this point
Re: Wiring Encoders?

which wires are channel A and channel B???
  #6   Spotlight this post!  
Unread 30-01-2010, 20:33
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: Wiring Encoders?

As in which port goes to what wire?

It dosen't matter, if you get them backwards the controller will think the robot is going in the other direction. If the robot thinks its going backwards then swap the A and B wires.

What color wire?

Plug the cable into the encoder and read which wire is A and B. It should be labeled.
__________________
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
  #7   Spotlight this post!  
Unread 30-01-2010, 20:43
DonRotolo's Avatar
DonRotolo DonRotolo is offline
Back to humble
FRC #0832
Team Role: Mentor
 
Join Date: Jan 2005
Rookie Year: 2005
Location: Atlanta GA
Posts: 7,019
DonRotolo has a reputation beyond reputeDonRotolo has a reputation beyond reputeDonRotolo has a reputation beyond reputeDonRotolo has a reputation beyond reputeDonRotolo has a reputation beyond reputeDonRotolo has a reputation beyond reputeDonRotolo has a reputation beyond reputeDonRotolo has a reputation beyond reputeDonRotolo has a reputation beyond reputeDonRotolo has a reputation beyond reputeDonRotolo has a reputation beyond repute
Re: Wiring Encoders?

Perhaps you should look here.
I got that from the FRC Manual. Did you look there?
__________________

I am N2IRZ - What's your callsign?
  #8   Spotlight this post!  
Unread 08-02-2010, 17:15
jaster67 jaster67 is offline
Jose Sanchez
FTC #2978 (Cavaliers)
Team Role: Programmer
 
Join Date: Jan 2010
Rookie Year: 2007
Location: St. Louis
Posts: 12
jaster67 is an unknown quantity at this point
Re: Wiring Encoders?

Umm, could you please post a picture of an encoder wired properly? It would be a great help.
__________________
I will give you a million dollars if you don't read this sig.
  #9   Spotlight this post!  
Unread 08-02-2010, 21:58
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: Wiring Encoders?

I'm not at the BotCave right now, so I'll use a picture from AndyMark's site. You plug the encoder cable into the encoder board, make sure it is in. Then, you place the cover on top of it so you can see how the labels line up. You take two PWM cables, and cut the male end off of them. You strip all three wires of one and only the white or yellow wire from the other. You connect the red wire from the first cable, to the cable that matches with the "+5v" on the encoder. Solder it and wrap the connection in electrical tape or heat tubing. Then, connect the black wire from the first cable to the wire that matches the "gnd" on the encoder. Then, you connect the white or yellow wire from the first cable to the "A" wire on the encoder. You connect the white or yellow wire from the second cable to the "B" wire on the encoder. You plug the two PWM cables into the Digital SideCar in the Digital IO section, not the PWM section. The black wire goes to the outside. If the software sees your robot going backwards, you need to switch the two PWM cables on the Digital Sidecar so the A is where the B was and the B is where the A was, or set the gain negative.
__________________
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

Last edited by apalrd : 16-02-2010 at 11:51.
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
Encoders..... manderson5192 Programming 4 07-02-2008 10:10
Wiring Gyros and Encoders? SuspectZero Electrical 3 03-02-2008 15:30
Encoders Ctx32 Programming 8 13-05-2006 23:54
3 Encoders stephenthe1 Programming 5 17-11-2005 19:21


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

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