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

nothing is happening #7

Open
itsroki opened this issue May 29, 2019 · 17 comments
Open

nothing is happening #7

itsroki opened this issue May 29, 2019 · 17 comments

Comments

@itsroki
Copy link

itsroki commented May 29, 2019

does anyone know what do we have to change in code to make it work because i can not make my motor run?

@sighmon
Copy link
Member

sighmon commented May 30, 2019

@itsroki I'll see if I can find the ones I was playing with this weekend and boot them up again.

@itsroki
Copy link
Author

itsroki commented May 30, 2019

thanks @sighmon , that would be great!

@itsroki
Copy link
Author

itsroki commented May 30, 2019

i have figured it out (how to make motor run), but i don't know how to give him position to go to because every time i run the servo_example, dynamixel just runs in circles. any suggestions?

@benedikt966
Copy link

I dont have the motors anymore, but for me it worked with the library at the "bene" branch very well - together with the xl320 library

@benedikt966
Copy link

https://1drv.ms/f/s!Ankn9OnwjyR2geFR-GZQqe1xCRvmbg - here are the two libraries and one example code, that worked with my teensy board and arduino board. But I dont have these here anymore to test it. You have to look, the motors have to modes: joint mode and wheel mode. So if you are in joint mode, you can give the motor positions and if you are in wheel mode, you can give the motor driving speeds.

@benedikt966
Copy link

benedikt966 commented May 30, 2019

And be careful,
-if you work with the ROBOTIS software directly. It happens very fast, that you crash the software at the XL320 Motors and have big problems to reset them again.
To give the motor Positions - normally use setPosition() ore setJointPosition or sth like that. Thats all I want to give you at your way with these motors =)
But all in one these are nice motors, which can do a lot, if you use them rigth and dont have to high expecations for the accuracy (<5% deviations for the target speed )

@itsroki
Copy link
Author

itsroki commented May 30, 2019

thank you very much, i will look at it now and tomorrow. i'm sure i will make it work, you have been very helpful!

@itsroki
Copy link
Author

itsroki commented May 30, 2019

i have managed to fix the problem, i only had to change operating mode to JOINT in roboplus2 software to make it move to wanted position, thanks!

@ryantjhi
Copy link

i have figured it out (how to make motor run), but i don't know how to give him position to go to because every time i run the servo_example, dynamixel just runs in circles. any suggestions?
i have the same problem how you figured it out ? (only red led out from motor)

@itsroki
Copy link
Author

itsroki commented Nov 26, 2019

i have figured it out (how to make motor run), but i don't know how to give him position to go to because every time i run the servo_example, dynamixel just runs in circles. any suggestions?
i have the same problem how you figured it out ? (only red led out from motor)

You need to set the motor parameters in robotis roboplus software, important is to set operating mode to JOINT if you want to give him position, or WHEEL if you want to give him speed.

@NikeetPandit
Copy link

@itsroki Hope all is well. What did you do to initially make the motor run? Having issues.

@NikeetPandit
Copy link

@benedikt966 are you able to re-upload your two libraries? Would be greatly appreciated. The onedrive link seems to be offline unfortunately.

@itsroki
Copy link
Author

itsroki commented Feb 1, 2021 via email

@NikeetPandit
Copy link

NikeetPandit commented Feb 1, 2021

@itsroki Wow! Thank you for your quick reply! I think I am out of my scope of knowledge. But what is meant by setting everything in the robotis software before trying to run?
Is it incorrect to assume that this standalone library and examples cannot be downloaded on Teensy to control the XL320 servos as a simple starting point? Or is there further work that needs to be done? (Other than proper wiring, power to servo etc.)

@itsroki
Copy link
Author

itsroki commented Feb 3, 2021 via email

@NikeetPandit
Copy link

Okay, thank you. I will try and let you know if anything gets working! Thanks

@NikeetPandit
Copy link

Followed this method by Walker's blog: http://walker.gosrich.com/posts/xl320.html ...
Simply connected as he wired and downloaded the software onto Arduino - worked (must initially have default baud to 1Mbs). For teensy - had to change the int_16 variables to unsigned short and worked no problem. If you study the datasheet for XL-320 servo and cross reference to his example (and have some exp. with hex) you should have no problem sending any command to the servo! Good luck.

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

5 participants