Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How to change this code working at XL430-25? #6

Open
dkrmsptlfk opened this issue Jul 27, 2018 · 0 comments
Open

How to change this code working at XL430-25? #6

dkrmsptlfk opened this issue Jul 27, 2018 · 0 comments

Comments

@dkrmsptlfk
Copy link

Hi
I want to use this code to XL430-25
so i tried to change #define of XL320.h like this (blocked ones are original codes but they are not noticed in XL430 e-manual of robotis)

//#define XL_CW_ANGLE_LIMIT_L 6
//#define XL_CW_ANGLE_LIMIT_H 7
//#define XL_CCW_ANGLE_LIMIT_L 8
//#define XL_CCW_ANGLE_LIMIT_H 9
//#define XL_CONTROL_MODE 11
//#define XL_MAX_TORQUE_L 15
//#define XL_MAX_TORQUE_H 16
//#define XL_GOAL_TORQUE 35
//#define XL_PUNCH 51

#ifndef XL320_H_
#define XL320_H_

/EEPROM Area/
#define XL_MODEL_NUMBER_L 0
#define XL_MODEL_NUMBER_H 1
#define XL_MODEL_INFORMATION 2
#define XL_VERSION 6
#define XL_ID 7
#define XL_BAUD_RATE 8
#define XL_RETURN_DELAY_TIME 9
#define XL_DRIVE_MODE 10
#define XL_OPERATING_MODE 11
#define XL_LIMIT_TEMPERATURE 31
#define XL_UP_LIMIT_VOLTAGE 32
#define XL_DOWN_LIMIT_VOLTAGE 34
#define XL_ALARM_SHUTDOWN 63

/RAM Area/
#define XL_TORQUE_ENABLE 64
#define XL_LED 65
#define XL_RETURN_LEVEL 68
#define XL_REGISTERED_INSTRUCTION 69
#define XL_HARDWARE_ERROR 70
#define XL_D_GAIN 80
#define XL_I_GAIN 82
#define XL_P_GAIN 84
#define XL_GOAL_SPEED_L 104
#define XL_GOAL_POSITION_L 116
#define XL_MOVING 122
#define XL_PRESENT_LOAD 126
#define XL_PRESENT_SPEED 128
#define XL_PRESENT_POSITION 132
#define XL_PRESENT_VOLTAGE 144
#define XL_PRESENT_TEMPERATURE 146

#define Tx_MODE 1
#define Rx_MODE 0

Also i blocked the codes in main file(XL320_servo_example.ino file) about led since XL430 has no color variation.
However it doesn't work. i check the baudrate, but it was same in the code and motor, 9600.

How should i do to work this motor?
I'm almost the beginner about dynamixel so I'd be obliged if you give me detail comments.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant