Community Question

Hi everyone,

I have just joined the EZ-Robot community and I am so far enjoying it!

Im having an issue reading a dynamixel servo's position feedback.

I followed the tutorials and successfully connected the servo thru D5 and the supplied plug in.

I have tried the tutorial and sample project from this thread:

However, it doesnt work :(

Am I missing something? *confused* *mad* *confused*

Can the servo provide position feedback based on the connection to port D5? A code snippet would definitey help :(

Thanks for your help,

DJ Sures
Commented October 2016
1) You don't need a OnServoGetPosition because the position is set and stored with SetServoPosition().

So what you would do is have a button on the dynamixel control that "Get Servo Positions" and it would query the servos and set the positions in the software.

2) The hardware will support reading and writing but not on the same port for obvious reasons.

What you would do is connect the dynamixel communication wire to both the respective TX and RX ports of the selected EZ-B uart. Then, when ever you send the "give me your positions" command to the servos, simply send a uart INIT directly after that command which will reset the input buffer. Pause for a second until enough time has passed to assume the data has been sent from the dynamixels to the ez-b and voila. You now have every dynamixel position in the UART RX buffer.
Commented October 2016
finally came back to the forums for the first time in about 7 months just to see my Dynamixel guide again :^)

i wouldn't use that guide anymore, it's outdated out the wazzoo and doesn't account for any new changes or plug-ins that may have been added to EZ-Builder for Dynamixels
DJ Sures
Commented December 8 —Updated December 8
Guess what? Next update includes reading from dynamixel servos :D - temperature, load, direction of load, etc... With the auto position update allowing frames to be created programatically, this now applies to dynamixel servos. We got it working tonight

Teaser for you all...

Commented December 8
Omg omg omg omg omg omg omg omg omg! Thank you guys!!!!
DJ Sures
Commented December 8
You can see the full functionality here:

Avatarby sadashi
Published Friday, October 14, 2016