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

Problem with AX-12+ in Half Dublex UART

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

Problem with AX-12+ in Half Dublex UART

Post by ak_1371 » Thu Feb 19, 2009 12:56 pm

Post by ak_1371
Thu Feb 19, 2009 12:56 pm

Dear Sir or Miss,


I have a problem with AX-12+ in half dublex Uart.I have used an ATmega 32 instead of CM-5 and a buffer & inverter for it as said in the PDF.It works correctly but after 3 or 4 instructions it has no response to the isnstructions e.g. the code sais to turn on and off the LED every 2 seconds.it is done for only 3 times and after that LED remains on.and i think that there is no problem with the ATmega32.
Please Help me!!!
Dear Sir or Miss,


I have a problem with AX-12+ in half dublex Uart.I have used an ATmega 32 instead of CM-5 and a buffer & inverter for it as said in the PDF.It works correctly but after 3 or 4 instructions it has no response to the isnstructions e.g. the code sais to turn on and off the LED every 2 seconds.it is done for only 3 times and after that LED remains on.and i think that there is no problem with the ATmega32.
Please Help me!!!
ak_1371
Newbie
Newbie
Posts: 1
Joined: Thu Feb 19, 2009 12:42 pm

Post by StuartL » Thu Feb 26, 2009 5:09 pm

Post by StuartL
Thu Feb 26, 2009 5:09 pm

This sounds most likely to be a software bug. Have you put debugging in your ATmega32 to output debugging to another port? Even if it's just an LED you can (with some imagination) come up with on/off and flashing sequences to indicate which part of the software you've got to.

The AX-12 is very sensitive to bad data on the bus and can take some time to resync after bad frames. It's worth programming another ATmega32 as a bus-sniffer and get it to output the frames to some other device (e.g. your PC?) so you can see what's actually occurring on the wire.
This sounds most likely to be a software bug. Have you put debugging in your ATmega32 to output debugging to another port? Even if it's just an LED you can (with some imagination) come up with on/off and flashing sequences to indicate which part of the software you've got to.

The AX-12 is very sensitive to bad data on the bus and can take some time to resync after bad frames. It's worth programming another ATmega32 as a bus-sniffer and get it to output the frames to some other device (e.g. your PC?) so you can see what's actually occurring on the wire.
StuartL
Savvy Roboteer
Savvy Roboteer
Posts: 350
Joined: Mon Jun 04, 2007 3:46 pm
Location: Thatcham, Berkshire, UK


2 postsPage 1 of 1
2 postsPage 1 of 1