Hi, I am modifying Hasbro Interactive R2-D2 using Arduino Mega.
To control the dome's dc motor(not a servo) R2D2 has an Optical encoder that read a round gear with a lot of holes like a lot of 0 and 1.
To be more clear you can see it in this video, jump directly to 14.33 min:
How do I read the optical encoder with Arduino Mega?
Any link for basic code?
Thanks