Hi,
seems not to be difficult, but I still do not get it to work. Read a lot, tried a lot... Have a Giga R1, a gear motor with encoder and a controller adressed via servo library.
Finally I tested at a low level - read the interrupt1 (pin 2) and interrrupt2 (pin 3) from the encoder. Both give "0" on "Serial.print" when the motor is running (the axis with the magnet are turning). Power and Gnd are connected to the board. With a multimeter I tested +/- right on the encoder positively.
Any suggestions for more simple, basic tests?
Thx!
Please read and use this link: How to get the best out of this forum - Using Arduino / IDE 1.x - Arduino Forum
What is the encoder's power supply voltage? What is the Giga's maximum input pin voltage? Post a link to the motor / encoder datasheet.
Hello JCA34F,
I guess your questions already helped. I looked at a datasheet before, but obviously I did not look carefully enough at a condition: a 10kΩ resistor is needed for each pin. Just now I looked at another datasheet, specifically for the gear motor I use and they point this out!
- The encoder's power needs 5 Volt supply.
- The Giga has 3,3 and 5 Volt output voltage supply.
- The motor is of type Cytron IG32E-14K.
Since I do not have those resistors here, I have to get them somewhere before I can write again, if this solved my problem.
Thank you a lot!
If the encoder outputs are 5V and the Giga's INPUTS are 3.3V. you need logic level converters between. What are the Giga's external interrupt pin numbers?
Uh. Pardon my english. The Arduino Giga has 3,3 AND 5 Volt power supply pins (the board has several and differnet pins). The encoder needs 5 Volts. So I connected the 5 Volts.
Here is a picture for the used motor and encoder for the wiring with an Arduino UNO:
Good luck.
It's not (only) about the power supply pins. If the encoder outputs are outputs with a 5V level, the outputs can damage the input pins of a 3.3V board.
Okay, the resistors solved my problem. Thank you everybody for taking your time.
This topic was automatically closed 180 days after the last reply. New replies are no longer allowed.