|
|
|
![]() |
|
|||||||
|
||||||||
![]() |
|
|
Thread Tools | Rate Thread | Display Modes |
|
|
|
#1
|
|||
|
|||
|
Encoder Hookup
Does anyone know what the left or right encoder's phase-A output is, and how do we wire up the 4 CA-3285-1FT Pin (supplied with encoders) into the Digital Input Panel? Thanks
![]() Last edited by kutty18 : 22-01-2005 at 11:42. |
|
#2
|
||||
|
||||
|
Re: Encoder Hookup
A mechanical encoder typically has three pins: a phase A, a phase B, and a common. When wiring up an encoder to the RC, you would connect the phase A and phase B to two separate digital inputs, and then connect the common to +5. Optical encoders has a similar pinout, but with a connection for ground, too. Kevin Watson (http://kevin.org/frc) has an example of how to read an encoder in programming, but I'm guessing from the terminology that you used that you've already seen this code. I couldn't really understand what you were asking, but I hope that answers your question.
|
|
#3
|
|||
|
|||
|
Re: Encoder Hookup
Thanks! We're using optical encoders, and they came supplied with a four-wire cable. At one end, the cable is attached to a miniature 4-pin. The four cables coming off of the pin are yellow, brown
(possibly maroon), blue, and orange. We are trying to figure out where these wires need to connect to. Any ideas? A picture of our encoder is available at: http://www.usdigital.com/products/s4/ A picture of the cable is available at: http://www.usdigital.com/products/co...in-micro.shtml (It is the second picture, the CA-3285-(length)FT) |
|
#4
|
||||
|
||||
|
Re: Encoder Hookup
See the picture on that first page? It says:
1: +5 2: A 3: - 4: B Farther down the page, there is another picture and a table that reinforces this data. So, hook up two PWM cables to two different digital I/O pins (one should probably be one of the hardware interrupt pins, if you're using Kevin Watson's code). The reds go to pin 1, the blacks go to pin 3. One white goes to pin 2. One white goes to pin 4. On the other page, it shows you which side of the connector is pin 1, so you can identify which wire is which. |
|
#5
|
|||
|
|||
|
Re: Encoder Hookup
Thank you very much! We really appreciate it. The thread can be closed, if needed.
|
![]() |
| Thread Tools | |
| Display Modes | Rate This Thread |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Rotary Encoder (optical etc.) | Gary C | Technical Discussion | 4 | 16-01-2005 18:23 |
| encoder vs. motor | stephenthe1 | Programming | 55 | 06-01-2005 22:07 |
| Updated Encoder Code Available | Kevin Watson | Programming | 2 | 04-01-2005 01:00 |
| Choosing an Encoder for the Drive-train | MikeDubreuil | Electrical | 11 | 21-10-2004 00:50 |
| how to add steps in the provided encoder program for the edu | Zaramel2002 | Programming | 3 | 11-02-2004 08:35 |