ROBOTIS-GIT / Dynamixel2Arduino

DYNAMIXEL protocol library for Arduino
Apache License 2.0
87 stars 55 forks source link

XL430 and AX12A not working with dynamixel shield on Arduino MEGA/ UNO #101

Open adwaidya opened 2 years ago

adwaidya commented 2 years ago

Hello, I'm working on one project. Mainly I will be working with dynamixel xl430. Currently i have ax12a along with xl430. Few days before I had Arbotix M controller, through which i used to control AX12A. So i know ax12a are in working state. I recently bought Dynamixelshield and XL430. I did set up everything as per eManual. I also got USB to to serial converter and its working perfectly with shield and i can see texts on serial monitor. (Note: Now with mega, as per this post, im using serial on mega only for monitoring and that is working fine https://github.com/ROBOTIS-GIT/Dynamixel2Arduino/issues/31 ) But main issue is the motors are not working with the shield. i can see LED on servo blinks once after powering on. Scan program shows 0 dynamixels found (Tried both with AX12A and XL430) I have tried many possible solutions, but nothing is working. I checked with multimeter, shield is getting enough power. Also while uploading the sketch, switch was in uart mode and power turned off. And i assume XL430 have ID 1 and baudrate of 57600 as they are brand new and no any code has worked on them. Please help me solving this issue, Running the servos. Attaching the serial monitors output and my hardware setup for better understanding.

Screenshot (199) DynamixelShield-MEGA-AX12A

ROBOTIS-David commented 2 years ago

@adwaidya

Sorry for delay response.

If you would like to read serial data, please use Software Serial library (UART RX / TX)

As the Hardware serial port(0,1) on the Uno/ Mega ports are shared with DYNAMIXEL data line (Half-duplex) , this is not possible to use 0 / 1 ports as the serial read.

image

Talk on any ROBOTIS products are actively played at our community page. For your further inquiries and information, please visit our community. Thank you,