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

I just damaged my new roboclaw 2x45A controller by launching this file #4

Closed
ozgurerbulan opened this issue May 5, 2016 · 6 comments

Comments

@ozgurerbulan
Copy link

It is useless now and here is what I did,

I have opened the windows app and limited the max I to 50 for protection.
Checked P I D parameters. They were all 0.
Then cloned the repo.
Connected the computer via usb.
Started roslaunch roboclaw_node roboclaw.launch
Firstly motor 1 started to run in full pwm,
Then motor 2 started to run in full pwm and instantly changed direction
Because of the inertia, the controller died even Motors were in neutral.
It was the weirdest thing that I have experience. No idea what the launch file did.
There was not encoders only motors without touching ground.

Anyway, does anybody know why? I have just buy a 2x60A roboclaw and I certainly do not want to damage this one too.

@sonyccd
Copy link
Owner

sonyccd commented May 5, 2016

Wooooooo your PID was set to 0 ?! And you did not have the encoder hooked up?

@ozgurerbulan
Copy link
Author

Yep, I was trying to connections without any move. So I thought 0 pid gives no motion. What do you think, what was wrong?

@sonyccd
Copy link
Owner

sonyccd commented May 6, 2016

You have several problems:

  1. You have to have the encoders hooked up or the roboclaw has no way to know how fast the wheels are spinning. For the ROS driver to work that is needed.
  2. PID does not work that way, read this for more information. PID
  3. YOU MUST tune the PID loop using the software as I stated in the README for the ROS code to work or things like you described will happen.

@ozgurerbulan
Copy link
Author

I know how PID works. What do you expect when you give zero to P I D coefficients? Well, I expect no motion. As I said before, I set that parameters to zero for not to damage controller in the first launch.

@sonyccd
Copy link
Owner

sonyccd commented May 6, 2016

The ROS driver does not do anything but set speeds for the roboclaw controller to meet. If it is not properly configured it will not work. This means you must have the encoders attached. Also if you are just testing I would recommend to disconnect the motors from the power terminals and measure the voltage to see if things are operating properly.

@harryman1
Copy link

harryman1 commented May 6, 2016

agreed with Sonyccd, I have tested with all the proper connections to the encoders and setup the right values on the Windows application provided by ionmc, when you setup the correct values ans test the node it does work.

I had followed all the recommendations and also did an auto tune (and have PID values ), but in my case I did setup and test with low revolutions and thermo fused connections to the motors

the node work very well and does not burn your motor controller :), the only issue is the odom data

but it works :)

@sonyccd sonyccd closed this as completed May 28, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants