i am little desperate with oDrive and HUB(Hoverboard) motors. It is 48V version of oDrive(v3.5) and 48V HUB motors.
I have connected two 8 Inch 48V motors with hall sensors to oDrive and try to
calibrate with this guide: https://docs.odriverobotics.com/hoverboard.html
so i followed this guide and put all commands there then
but nothing happens, sometime just motor turned about 1cm and then stopped, then it beeps
and no movement at all.
Same for both motors, i have checked connection, tried different voltages from 24-48V, no movement during calibration.
Problem is that i do not know how many magnets(poles) is inside of that motors, it is impossible to disassembly, but i have tried many combinations from 15 - 30 with
odrv0.axis0.motor.config.pole_pairs = 15
but no movement.
I believe that it does not matter which order i connect 3 phase(thick) wires, yellow, green, blue.
5 wires from Hall sensor is connected as:
Red -> +5V
Yellow -> A
Green -> B
Blue -> Z
Black -> GND
Can i move this motor without hall sensors connected just to determine if problem is in Hall sensor
or problem with connection with these sensors? Or it must be connected all the time?
Ok, this was unclear to me, thank you.
I was able to config those motors according to guide, and motor moves smoothly. Just after
offset_float = 0.504
so it looks just fine but for other motor(motors are same):
offset_float = 1.491
seems to be working but not sure why offset for second motor are so different?
maybe there is some error in my config?
another thing is that after :
odrv0.axis0.requested_state = AXIS_STATE_CLOSED_LOOP_CONTROL
odrv0.axis0.controller.vel_setpoint = 120
# Your motor should spin here
odrv0.axis0.controller.vel_setpoint = 0
odrv0.axis0.requested_state = AXIS_STATE_IDLE
motor is moving and than stop after setpoint 0 what is fine but when i execute it same
for second motor - no move
Then i have to reboot it and then i am able to control second motor but not first one and so on.
So i am able to control only one motor, when i want to drive second one i have to reboot it.
Any clue why?
error = 0x0010 (int)
after reboot no error axis1 working but error 0x0010 on axis0 after reboot OK and so on.
Maybe something with noise on HALL encoders pins, according to this post?