![]() |
Encoder Wiring Help Needed
This is our team's first time using encoders and we are encountering issues as to where on the robot/cRio we should be connecting the encoder wires. If anyone can please help and show what part of the robot we should wire our encoders to (electrically) and more specifically how.
Please Note: we are using the kit of parts E4p encoders for our shooter. Thanks in advance! |
Re: Encoder Wiring Help Needed
The encoders in the KOP have 4 wires. +5, GND, A and B. You can connect the encoders either to the Jaguars directly (if you are using the Jaguars as your motor controllers) or to the digital input channels on the digital sidecar.
For connecting to the Jaguar, crimp a 5-pin header connector with the 4 wires ("+" goes to +5, "-" goes to GND, "A" goes to A and "B" goes to B, "I" has no connection). If connecting to the cRIO, each encoder needs two digital channels. On the first digital channel, "+" goes to +5 (red), "Gnd" goes to "GND" (black) and "A" goes to signal (white). For the second digital channel, "B" goes to signal (white). |
Re: Encoder Wiring Help Needed
Quote:
|
Re: Encoder Wiring Help Needed
If you wire the encoders to the Jags, you must use CAN or you can't access them. The benefits are pretty much the CAN versus PWM arguments such as: cleaner wiring, not taking 2 digital channels per encoder, can optionally use the Jag's built-in PID control etc.
|
Re: Encoder Wiring Help Needed
Is there a point to access both channels?
|
Re: Encoder Wiring Help Needed
Quote:
|
Re: Encoder Wiring Help Needed
Yes that's what I mean. But if you use PWM and use either A or B channel is it less accurate?
|
Re: Encoder Wiring Help Needed
Quote:
|
Re: Encoder Wiring Help Needed
Quote:
|
Re: Encoder Wiring Help Needed
Quote:
Code:
Encoder(UINT32 aChannel, UINT32 bChannel, bool reverseDirection=false, EncodingType encodingType = k4X); |
Re: Encoder Wiring Help Needed
Quote:
|
Re: Encoder Wiring Help Needed
Quote:
|
Re: Encoder Wiring Help Needed
Makes sense to me. My team since i've been involved, never really used anything more than just a limit switch. So I just figured I ask for future.
|
Re: Encoder Wiring Help Needed
Quote:
|
Re: Encoder Wiring Help Needed
Quote:
|
| All times are GMT -5. The time now is 11:03. |
Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.
Copyright © Chief Delphi