CCS C Software and Maintenance Offers
FAQFAQ   FAQForum Help   FAQOfficial CCS Support   SearchSearch  RegisterRegister 

ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

CCS does not monitor this forum on a regular basis.

Please do not post bug reports on this forum. Send them to support@ccsinfo.com

dynamixel ax-12a

 
Post new topic   Reply to topic    CCS Forum Index -> General CCS C Discussion
View previous topic :: View next topic  
Author Message
fred2014



Joined: 01 Dec 2014
Posts: 1

View user's profile Send private message Send e-mail

dynamixel ax-12a
PostPosted: Mon Dec 01, 2014 12:51 pm     Reply with quote

i have a servo ax-a12
i want to drive it by 16f877a in ccs
i need to know how i can drive it
is there any library for it?
someone can explain to me step by step
i have read its datasheet but i cant understand enough
thanks
Ttelmah



Joined: 11 Mar 2010
Posts: 19338

View user's profile Send private message

PostPosted: Mon Dec 01, 2014 1:26 pm     Reply with quote

You need the interface circuit that converts TTL serial RX/TX signals to the one wire interface it uses (CM-5). Then you can just use serial commands to control it. For the extra 'direction' wire, connect this to one other pin on the PIC, and set this as the direction control line (ENABLE in the #USE RS232).
The unit then accepts serial commands. It uses 1000000bps initially. You send it simple commands for maximum torque, where to go, speed etc., and can read back replies. Each packet needs a checksum, which is the low byte of the sum of all the bytes sent, inverted.
You can daisy chain multiple units on one bus, with different ID's.
I've seen a couple in use, and they are nice units.
dyeatman



Joined: 06 Sep 2003
Posts: 1923
Location: Norman, OK

View user's profile Send private message

PostPosted: Mon Dec 01, 2014 1:48 pm     Reply with quote

Some more info can be found here:
http://developer.mbed.org/users/chris/notebook/Dynamixel-AX-12/

and more here:
http://webbot.org.uk/WebbotLibDocs2/44080.html

even more connection info here:
http://www.instructables.com/id/How-to-drive-Dynamixel-AX-12A-servos-with-a-Raspbe/step3/The-Joy-of-UART-Communication/

PIC code here in the Talking to the AX-12 using a PIC Section:
http://www.lukeallen.com/AX12robotleg.html
_________________
Google and Forum Search are some of your best tools!!!!
Display posts from previous:   
Post new topic   Reply to topic    CCS Forum Index -> General CCS C Discussion All times are GMT - 6 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group