I cannot connect the encoders to the ramps.
I have four 42STH38-1684B (1.8º, 2.8V, 1.68A) Nema 17 stepper motors (3324-0-42sth38-nema-17-bipolar-gearless-stepper) with the HKT2204-702C1-300B-5E encoder (3531-0-optical-rotary-encoder-hkt22).
I think I have the ramps connected to the encoder according to the encoder’s datasheet (datasheet), and the indication in the github code (github), but the motor moves brusquely during half a second and then it stops.
Does anybody have any experience on how to connect this encoder to the ramps? Any tip or guidance will be very welcome (a wiring diagram of a functioning setup will be ideal). I know where the 5V wire goes, but I don’t know where the rest of the connections go. By the way, do I have to configure Arduino’s firmware in any special way? I have it configured as indicated in FarmBot’s github link.
Thanks you very much for this exciting project and your support,