How To Wire The Encoder

We have some Andy mark encoders and we have used them on the 2008 control system and systems in the past. Can anyone tell me how to plug them into the 2009 control system.

Essentially, you have the A-channel, B-channel, ground, and power terminals. So…supply the power and ground appropriately.

Unlike previous years, where interrupts were only available on certain pins the the PIC18, this year you get to pick the ports for each channel. Use the signal line and ground line of two 3-pin cables to attach the A-channel and B-channel to two GPIO connections on the digital side cars, select the appropriate pins when you program, verify operation…and you’re all set.

if i connect the encoder using all 3 connections (a channel,+,-) on one pwm cable and another cable just the b channel with out the + and - will it work?

I don’t think that will work.:frowning:

Yes, you can use the red wire in the PWM cable to supply voltage.

You certainly need at least the ground and signal wires on both channels. This allows you to tie the grounds for each wire together at the encoder. The voltage supply should come from one of the two wires.

What you suggest will work, with one modification. Making the A channel PWM cable “fully wired” (i.e. +5, GND, and SIG all wired) works de facto. The B channel PWM cable should have the ground wire connected to the encoder ground, the signal wire connected to the B channel encoder wire, and the +5V wire terminated and insulated.

-Jeff

Could someone make a simple diagram for wiring the encoder? I haven’t been able to figure it out from this post and I can’t find any documentation.

This thread has confused me a bit…

On the digital side car’s digital input/output header, the ground pins are all tied together and the power pins are all tied together. There is nothing to force you to use the power or ground pin that correspond to a given I/O pin.

You need to pull (at least) one power line, (at least) one ground line and the two signal lines over to the encoder. If you want to pull plural power or ground, you may do so.

I think the easiest method might be to use a 1x4 cable and using the extra two power and ground pins that are in line with the signal pins.