Legacy Forum: Preserving Nearly 20 Years of Community History - A Time Capsule of Discussions, Memories, and Shared Experiences.

problem with an AX-12+

Bioloid robot kit from Korean company Robotis; CM5 controller block, AX12 servos..
17 postsPage 1 of 21, 2
17 postsPage 1 of 21, 2

problem with an AX-12+

Post by elvisss » Fri Nov 16, 2007 2:10 pm

Post by elvisss
Fri Nov 16, 2007 2:10 pm

Hello,
I have just bought an AX-12+, and I try to communicate with it by using an Atmega324.
Nevertheless, I don't know the ID of the servo, there is nothing written on it...
I tried to change the ID by sending a broadcast command, and after, switching on the LED of the new ID servo, but it didn't works...
I have checked that the command is the right one, because when I send it, in the same time, i check with the other USART the sent data.

When I switch on the servo, the led blinks once, and is red...the red color is ok, or does it mean there is a problem?...

Thank you for your answer, and sorry for my poor english...:-p

Elvisss
Hello,
I have just bought an AX-12+, and I try to communicate with it by using an Atmega324.
Nevertheless, I don't know the ID of the servo, there is nothing written on it...
I tried to change the ID by sending a broadcast command, and after, switching on the LED of the new ID servo, but it didn't works...
I have checked that the command is the right one, because when I send it, in the same time, i check with the other USART the sent data.

When I switch on the servo, the led blinks once, and is red...the red color is ok, or does it mean there is a problem?...

Thank you for your answer, and sorry for my poor english...:-p

Elvisss
elvisss
Robot Builder
Robot Builder
Posts: 9
Joined: Fri Nov 16, 2007 2:05 pm

Post by Robo1 » Fri Nov 16, 2007 2:13 pm

Post by Robo1
Fri Nov 16, 2007 2:13 pm

You could try using the scan command to find the servo. Have you tried different baud setting. I think there 57600 out of the box and should be ID1. You could also try the 0xFE (I think) that's the universal address.

Bren
You could try using the scan command to find the servo. Have you tried different baud setting. I think there 57600 out of the box and should be ID1. You could also try the 0xFE (I think) that's the universal address.

Bren
Robo1
Savvy Roboteer
Savvy Roboteer
Posts: 501
Joined: Fri Jun 30, 2006 1:00 am
Location: UK - Bristol

Post by elvisss » Fri Nov 16, 2007 2:24 pm

Post by elvisss
Fri Nov 16, 2007 2:24 pm

Thank you for your help, I'm going to try it...
but I thought the default speed is 1mbps...or is it an other thing?...
Thank you for your help, I'm going to try it...
but I thought the default speed is 1mbps...or is it an other thing?...
elvisss
Robot Builder
Robot Builder
Posts: 9
Joined: Fri Nov 16, 2007 2:05 pm

Post by Robo1 » Fri Nov 16, 2007 5:44 pm

Post by Robo1
Fri Nov 16, 2007 5:44 pm

If you look through the manual these different speed setting. I only have DX-117 to go by, but most of them came with the same setting but one had a different speed and ID2 so took me some time to figure out why it wasn't working.

Bren
If you look through the manual these different speed setting. I only have DX-117 to go by, but most of them came with the same setting but one had a different speed and ID2 so took me some time to figure out why it wasn't working.

Bren
Robo1
Savvy Roboteer
Savvy Roboteer
Posts: 501
Joined: Fri Jun 30, 2006 1:00 am
Location: UK - Bristol

Post by elvisss » Sat Nov 17, 2007 2:58 am

Post by elvisss
Sat Nov 17, 2007 2:58 am

Thank you,
I'm going to check it...
and what about the red led?...is it a normal color, or does it mean there is a problem?
It only blinks once, then stay switched off...
Thank you,
I'm going to check it...
and what about the red led?...is it a normal color, or does it mean there is a problem?
It only blinks once, then stay switched off...
elvisss
Robot Builder
Robot Builder
Posts: 9
Joined: Fri Nov 16, 2007 2:05 pm

Post by hivemind » Sat Nov 17, 2007 5:24 am

Post by hivemind
Sat Nov 17, 2007 5:24 am

I think the default baud might be 34 (0x22) ? - thats what it is for the DX-117. Also, the red light is standard.
I think the default baud might be 34 (0x22) ? - thats what it is for the DX-117. Also, the red light is standard.
hivemind
Savvy Roboteer
Savvy Roboteer
User avatar
Posts: 211
Joined: Sat Jul 01, 2006 1:00 am
Location: between my computer and robot.

Post by elvisss » Sat Nov 17, 2007 11:28 am

Post by elvisss
Sat Nov 17, 2007 11:28 am

Hello,

I tried during 5 or 6 hours, but no results...
I would like to know if it is possible to use the 1 mbps at 8 MHz...maybe the problem comes from this point...

I also wanted to know something about AX-12 and RS485...
because I have a board on which I will plug my Atmega, and the board has a RS485 port...

But I am a newbie, so i am not sure if it is possible to send data from the board directly...

Thanks for the previous answers!!
Hello,

I tried during 5 or 6 hours, but no results...
I would like to know if it is possible to use the 1 mbps at 8 MHz...maybe the problem comes from this point...

I also wanted to know something about AX-12 and RS485...
because I have a board on which I will plug my Atmega, and the board has a RS485 port...

But I am a newbie, so i am not sure if it is possible to send data from the board directly...

Thanks for the previous answers!!
elvisss
Robot Builder
Robot Builder
Posts: 9
Joined: Fri Nov 16, 2007 2:05 pm

Post by JonHylands » Sat Nov 17, 2007 12:30 pm

Post by JonHylands
Sat Nov 17, 2007 12:30 pm

Yes, you can use 1 Mbps from an 8 MHz ATmega. I do it all the time.

AX-12 has nothing to do with RS-485.

How do you have the bus connected to your ATmega?

- Jon
Yes, you can use 1 Mbps from an 8 MHz ATmega. I do it all the time.

AX-12 has nothing to do with RS-485.

How do you have the bus connected to your ATmega?

- Jon
JonHylands
Savvy Roboteer
Savvy Roboteer
User avatar
Posts: 512
Joined: Thu Nov 09, 2006 1:00 am
Location: Ontario, Canada

Post by elvisss » Sat Nov 17, 2007 1:43 pm

Post by elvisss
Sat Nov 17, 2007 1:43 pm

Thank you for the tip!
But now, I understand nothing ...
I wrote several codes, and none is ok...I have now way to check the speed of the second USART, the one at 1 Mbps...
And when I try to use both USART, I have strange results...
I connected Rx and Tx pins of the second USART , and I try to desactivate the TX pin in order to be able to recieve data...but it doesn't work...
I never programmed Atmega before...with only one USART, it's ok, but with two, it's too difficult...
Does anybody has a good code for an Atmega 324?
I begin to think about buying an CM5 or USB2Dynamixel...
Thank you for the tip!
But now, I understand nothing ...
I wrote several codes, and none is ok...I have now way to check the speed of the second USART, the one at 1 Mbps...
And when I try to use both USART, I have strange results...
I connected Rx and Tx pins of the second USART , and I try to desactivate the TX pin in order to be able to recieve data...but it doesn't work...
I never programmed Atmega before...with only one USART, it's ok, but with two, it's too difficult...
Does anybody has a good code for an Atmega 324?
I begin to think about buying an CM5 or USB2Dynamixel...
elvisss
Robot Builder
Robot Builder
Posts: 9
Joined: Fri Nov 16, 2007 2:05 pm

Post by JonHylands » Mon Nov 19, 2007 1:27 am

Post by JonHylands
Mon Nov 19, 2007 1:27 am

I sell a board that allows a PC to talk to the Bioloid bus directly over USB.

http://www.huvrobotics.com

I also have some code on my site that works as a bus device on an ATmega. See http://www.bioloid.info, under User Projects on the 6-axis IMU page.

- Jon
I sell a board that allows a PC to talk to the Bioloid bus directly over USB.

http://www.huvrobotics.com

I also have some code on my site that works as a bus device on an ATmega. See http://www.bioloid.info, under User Projects on the 6-axis IMU page.

- Jon
JonHylands
Savvy Roboteer
Savvy Roboteer
User avatar
Posts: 512
Joined: Thu Nov 09, 2006 1:00 am
Location: Ontario, Canada

Post by elvisss » Mon Nov 19, 2007 2:15 am

Post by elvisss
Mon Nov 19, 2007 2:15 am

your board seems very interesting!
But what about the software?...I run under linux...
I fact, I was thinking to buy a CM5 because it has a scan mode (only for this reason...) because I am not sure of the adresse and of the speed of my AX12...
is it possible to do so with your board?
your board seems very interesting!
But what about the software?...I run under linux...
I fact, I was thinking to buy a CM5 because it has a scan mode (only for this reason...) because I am not sure of the adresse and of the speed of my AX12...
is it possible to do so with your board?
elvisss
Robot Builder
Robot Builder
Posts: 9
Joined: Fri Nov 16, 2007 2:05 pm

Post by JonHylands » Mon Nov 19, 2007 3:06 pm

Post by JonHylands
Mon Nov 19, 2007 3:06 pm

Yes, my board gives you direct access to the bus. You can open the serial connection at any baud rate you like, and send out a series of pings to each allowable ID to see if you get a response (that's what I do).

It also works fine in Linux - the drivers for the FT232 were included back in around 2.4, so anything after that should be fine.

- Jon
Yes, my board gives you direct access to the bus. You can open the serial connection at any baud rate you like, and send out a series of pings to each allowable ID to see if you get a response (that's what I do).

It also works fine in Linux - the drivers for the FT232 were included back in around 2.4, so anything after that should be fine.

- Jon
JonHylands
Savvy Roboteer
Savvy Roboteer
User avatar
Posts: 512
Joined: Thu Nov 09, 2006 1:00 am
Location: Ontario, Canada

Post by elvisss » Fri Nov 23, 2007 4:36 am

Post by elvisss
Fri Nov 23, 2007 4:36 am

Thank you very much for your help!
I have an other question...is it possible to send data to an AX12 directly from a serial bus if the speed of the servomotor is, for instance, 9600 bps?...
I know this is not very fast, but i would like to make tests with only one motor, to know if i should buy more...
Thank you very much for your help!
I have an other question...is it possible to send data to an AX12 directly from a serial bus if the speed of the servomotor is, for instance, 9600 bps?...
I know this is not very fast, but i would like to make tests with only one motor, to know if i should buy more...
elvisss
Robot Builder
Robot Builder
Posts: 9
Joined: Fri Nov 16, 2007 2:05 pm

Post by JonHylands » Fri Nov 23, 2007 5:08 am

Post by JonHylands
Fri Nov 23, 2007 5:08 am

No, you can't. You can talk to it from a micro-controller, with some supporting hardware (or with none if you're using an ATmegaXXX), or you can use an interface board like I sell.

The problem is the serial bus is a one-wire bus - both Rx and Tx are on the same line.

- Jon
No, you can't. You can talk to it from a micro-controller, with some supporting hardware (or with none if you're using an ATmegaXXX), or you can use an interface board like I sell.

The problem is the serial bus is a one-wire bus - both Rx and Tx are on the same line.

- Jon
JonHylands
Savvy Roboteer
Savvy Roboteer
User avatar
Posts: 512
Joined: Thu Nov 09, 2006 1:00 am
Location: Ontario, Canada

Post by elvisss » Fri Nov 23, 2007 8:11 am

Post by elvisss
Fri Nov 23, 2007 8:11 am

yes, I know the protocol, since I triedd to send data to the AX12 with an Atmega...but If I don't care about the data sent by the motor (I know, it's stupid...), could it be possible?
yes, I know the protocol, since I triedd to send data to the AX12 with an Atmega...but If I don't care about the data sent by the motor (I know, it's stupid...), could it be possible?
elvisss
Robot Builder
Robot Builder
Posts: 9
Joined: Fri Nov 16, 2007 2:05 pm

Next
17 postsPage 1 of 21, 2
17 postsPage 1 of 21, 2