AC servo Encoder wiring

Hi, i have successfully used the Arduino along with this AC servo with simple programs etc.
I now would like to get output from the servo driver to the Arduino to know position. Here is the sketch i made in an attempt to wire the encoder output of (A B Z) where cz is signal open-circuit output as you can see more details in the manual diagram that i also posted. Is the wiring correct because i wanted to test a simple code like this but am getting nothing (suppose to manually rotate the rotor to see if any reading on serial):

https://github.com/jumejume1/Arduino/blob/master/ROTARY_ENCODER/ROTARY_ENCODER.ino

Most servos and this seems to be that same, will tell you when the servo has reached the position you sent it to. Did you find this is not the case?

Just hooked up A+ to pin 2 works. I see data in serial monitor when rotor moves. Question is, is there a way to know the starting position of the rotor or encoder after power on?

There is if you tell it to go to a starting point. You have the documentation. How do you tell it to go anywhere?

After more research today: Yes, you are able to go to a starting point, given that the point has been placed after the power is turned on. Once the power is off, the encoder will lose its current position and if the rotor gets moved while power is off, after powering on, the starting point would be different because the rotor moved. To my understanding, the only way is to buy a new servo with an "absolute" encoder not an incremental encoder (current motor), or buy an extra external absolute encoder, or to use some kind of "home position sensor" which i have yet to find.

This topic was automatically closed 180 days after the last reply. New replies are no longer allowed.