Results 1 to 7 of 7

Thread: AX-12 Servos with Arduino

  1. AX-12 Servos with Arduino

    Hey all,
    I've been trying (unsuccessfully) to control the Dynamixel AX-12 servos with an Arduino Uno. I've been using this Serial libraryhttp://savageelectronics.blogspot.co...dynamixel.html, but it isn't working with me. When I try to tell it to move with "Ax12.move(1, 512)" the light on the servo just blinks at me. So is it correct to assume that the blinking light means that the servo isn't understanding the message? And how would I have to change it to understand?
    My whole code:

    Code:
    #include "Dynamixel_Serial.h"
    
    void setup()
    {
      Ax12.begin(1000000,2);
    
      if(Ax12.ping(1) != 0)
      {
         Ax12.ledStatus(1,ON);
      }
      delay(1000);
    }
    
    void loop()
    {
      Ax12.move(1, 512);
      delay(5000);
    }

  2. #2
    Join Date
    Sep 2010
    Location
    ಠ_ಠ
    Posts
    2,297
    Images
    27
    Rep Power
    278

    Re: AX-12 Servos with Arduino

    Did you add the 74LS241 logic IC to turn the full-duplex UART of the Arduino Uno into the half-duplex UART of the dynamixel bus? If you don't find the schematic on his site, it is definitely located in the AX-12.pdf datasheet on the Dynamixel product page in the trossen shop. Without the external circuit, you would have to use the software trick like the arbotix (short the TXD and RXD pins together, then enable the TXD circuitry and disable the RXD circuitry during transmission and reverse it during receipt).
    Please pardon the pedantry... and the profanity... and the convoluted speech pattern...
    "You have failed me, Brain!"
    bleh
    more bleh

  3. Re: AX-12 Servos with Arduino

    Yes, I do have that set up exactly as it is shown on the website. That is why I'm so puzzled.

  4. Re: AX-12 Servos with Arduino

    To add to the puzzlement, I can use the "Ax.12.ledStatus" command to turn the LED on and off reliably.

  5. #5
    Join Date
    Jun 2011
    Location
    USA
    Posts
    547
    Images
    107
    Rep Power
    42

    Re: AX-12 Servos with Arduino

    What are you powering the AX-12's with? I initially tried to use NiMH 9V batteries for getting the basics working. I had one of one brand that would work, and the other brand wouldn't wouldn't (and it took a week for me to think of trying to use the former)... it was probably a problem of the batteries not being able to supply the current needed.

  6. Re: AX-12 Servos with Arduino

    I actually just had that same thought about half an hour ago! That would seem to be the only logical answer. I was just using a standard 9V, just because that's what I always use, not even thinking that it was the battery's problem.

  7. #7
    Join Date
    Jun 2011
    Location
    USA
    Posts
    547
    Images
    107
    Rep Power
    42

    Re: AX-12 Servos with Arduino

    If you're going to be using AX-12's, I'd definitely recommend a 3S Lipo and a 3S battery monitor and a good charger. Ya, it's an investment

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. About arduino
    By gdavenport75 in forum Arbotix, Microcontrollers, Arduino
    Replies: 2
    Last Post: 11-17-2011, 12:55 PM
  2. Project Simple programming of arduino and servos
    By Retrievertech in forum Projects For Request and/or Sale
    Replies: 0
    Last Post: 03-23-2011, 05:05 PM
  3. Question(s) Arduino & AX-12
    By SteamAutomaton in forum Arbotix, Microcontrollers, Arduino
    Replies: 16
    Last Post: 06-02-2010, 12:43 PM
  4. PVision library for Arduino (Pixart/Wiimote to Arduino)
    By shobley in forum Robot Computers
    Replies: 1
    Last Post: 03-01-2009, 05:07 PM
  5. HITEC Servos: Can the OEM RN-1 Servos handle 7.4V?
    By MYKL in forum DYNAMIXEL & Robot Actuators
    Replies: 10
    Last Post: 06-23-2008, 04:39 PM

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •