I suspect, if all you want to do is count the pulses from the sensor you just need to connect the output pin to one of th Arduino I/O pins and use digitalRead() to detect when it is HIGH.
If the motor runs fast and produces a large number of pulses you may need to use attachInterrupt() to capture the pulses (see the Reference section). The code for the Interrupt Service Routine (ISR) could be as simple as
void countPulses() {
pulseCount ++;
}
where pulseCount as been defined as a global variable with
Tnx Robin2
I think I connect the 2 motor directly to the motor shield MD 25 and not to the arduino digital pin.
.
.
Maybe I'll have to use a resistor to clean the digital signal !!!
how do you see this engine uses a single channel encoder.
I will try to use routine CC or CCW to read UP or down
Arduino is also connected to the ETH shield
.
I 'm new to the arduino world and still do not know how to do,
where can I get info for standard connections and program
.
.
The output is open-collector (OC) so you'll need to use a pull-up resistor to 5V,
preferrably 4k7 or so (the internal pullup is very weak for dealing with a long cable,
note).