Pec 11 encoder connection with arduino ??

Hi

I need to use pec11 encoder. i need to get pulse signal when push button is pressed. At which i need to take out. Is that, i can get pulse when i press push button in pec11.

Could any body tell me clear connection diagram for pec11 connection with arduino.

Thanks

Alagappan

Is this what you are talking about.

It looks simple enough, tie the common to ground and use pull-up (10k Ohm should do) for each channel. But perhaps you want to know how to deal with the pulses in software?

Also as a side note, it would be nice if I didn't have to look for the datasheet.

Yes ,

I go through data sheet. It has 5 pin , one side 3 pins(A,C,B) and other side(S1,S2)

In figure, it shows output points A,B. But in other side we have two pins s1,s2 .out of these two pins which one for pulse out when push button is pressed and which one to be grounded.

But in other side we have two pins s1,s2 .out of these two pins which one for pulse out when push button is pressed and which one to be grounded.

It does not matter. Set the Arduino pin connected to the center know push button as pinMode(pin, INPUT_PULLUP). Take A or B to the pin, and run the other to ground. When you push the center knob, the circuit will close and the Arduino pin will go low.

Edit: Take A or B to the pin >>Take S1 or S2

somewhere it is directly connected to io of controller as below link

link : Problem with encoder, causing resets and hot regulator - General Electronics - Arduino Forum

somewhere it includes pull up resistor,as below link

link:encoder

So i am confused either can directly it can be driven to io or else external circuitry to be added

I would follow the simple connection of the first link. S1 S2 to arduino pin and ground with pinmode (pin, INPUT_PULLUP). In my earlier post I mistakenly called S1 and S2, A and B.

The more elaborate connection in the second magusporta link is to place the switch on the interrupt input of A and B. I have never seen this before.

In both links, there is hardware debounce with capacitors on the A/B outputs and that is a good idea.