Hi,
Yes, it look OK to me, the quadrature decoding seems to be correct but I'm sure someone around here knows of a faster/slicker way of doing it. (I'm not saying your way is slow).
Are you sending directly to a VB program for testing or are you sending to a terminal program or something like that? If a terminal program I'd put Pause 100 or whatever in the mainloop and add a CR to the end of the "message". If you're sending to a VB program, you could send the high and low byte of the counter and put them together in the PC.
If the encoders have Index-channel you could use that to zero the counter, at startup you move each joint of the arm thru "center" and it automatically zeros.
/Henrik.




I think it's going to have to be based on the Denavit Hartenberg Representation. Crazy math, I must say. I'm actually chatting on another forum with a guy from Carnegie Mellon University, National Robotics Engineering Center. He told me one of his co-workers built a six axis arm and worked out the kinematics for it too. Oh boy, I hope I can garner some info from him! In the mean time, if you want to tinker with it, or have any thoughts on it, it would be a huge help. I hope to have something very soon, as I think this project would be beneficial to so many!

Bookmarks