odriverobotics / ODrive

High performance motor control
https://odriverobotics.com
MIT License
2.95k stars 1.52k forks source link

The controller doesn't work #512

Closed gpistotnik closed 3 years ago

gpistotnik commented 4 years ago

I think I received faulty controller.

The motor doesn't turn after setup, on osciloscope, I don't even get output for motor. What can be issue?

Wetmelon commented 4 years ago

Hi @gpistotnik, can you give us a little more information?

Thanks!

gpistotnik commented 4 years ago

Odrive 3.6, communication via USB, I tried to control several hobby BLDC outrunners and https://www.ebay.com/itm/1PC-Nema17-BLDC-Motor-42BLF01-4000RPM-1-9A-24VDC-26W-47mm-Φ5mm/264438939575?ssPageName=STRK%3AMEBIDX%3AIT&_trksid=p2057872.m2749.l2649.

When I use dump_errors(odrv0), I get error after motor calibration (which does not even move the motor) that phase induction is 0 or something like that.

Wetmelon commented 4 years ago

It looks like these are very low current (high resistance) motors. Please see the error codes and the instructions described here https://docs.odriverobotics.com/api/odrive.motor.error to try to get them to calibrate properly.

Please be aware that with default settings, ODrive will see up to +/-0.5A of noise on the current shunts, swamping the measurements for small motors like these. An alternative is to treat them as gimbal motors (see https://docs.odriverobotics.com/#configure-m0)

Wetmelon commented 4 years ago

I'm going to close this, since I haven't heard any further issues. Please reopen it if you continue to have problems.

gpistotnik commented 3 years ago

So I managed to get the motors to work, but they only work on M0, I can swap them all I want, copy configuration from one to another, ... and still, only M0 works. What am I doing wrong?

Wetmelon commented 3 years ago

What does "work" and "not work" mean? Are you getting errors during calibration? If so, which ones?

gpistotnik commented 3 years ago

On M0 everything works. I mean, i can move with closed loop control and set speed. On M1 I can't even get motor to turn a little in calibration. I have changed motors, recalibrated M0 to another motor, everything fine, but only on M0, M1 does not work here. Motor doesn't turn even for 1 degree

Wetmelon commented 3 years ago

Can you please use the dump_errors(odrv0) command to check for errors on M1?

gpistotnik commented 3 years ago

Everything looks fine in dump_errors