Can I connect both sensors to Odrive? I need to connect two of these motors.
Is the firmware ready to handle the input from both sources? Or if not: Can I configure the firmware to use the hall information for initial positioning and then go with the more precise incremental encoder?
I must avoid an index search on startup as that would move a big robot without control.
The encoder does have higher resolution, but since itâs incremental the startup position is unknown. I canât do an index search because this is the traction motor of a heavy robot. Wouldnât that be a problem?
We actually made a feature to solve this exact situation for a client with the exact same situation. We havenât had time to merge it back into the main codebase yet.
The idea is to use an arbitrary hall signal as the index pulse: the rising edge of the hall signal will be in a repeatable location, but you must find it with a known rotation direction (left/right will be rising/falling or swapped depending on rotation direction). So we do a small lock-in drive in a known direction, then look at the rising edge of this hall signal (plugged into the index input).
You can check out the feature branch here, and the script with the settings required.
I have incremental encoder (4096 CPR) and halls (96 CPR).
Is it possible to route the halls to the GPIO and then follow the âindex searchâ procedure but interrupt on hall state change?
On a hall state change the electrical phase position is known and commutation can switch to use the incremental encoder. This technique is used in other sinusoidal motor amps such as Elmo and RoboteQ.
âdo a small lock-in drive in a known directionâ, that means the motor still need to spin a bit before actual use? I have the same problem as lalten, the motor is mounted on heavy load and calibration/search need to be avoided. Is it possible to use the GPIO to read the HALL at every startup instead?
I found a paper how to detect magent position by using hall sensor.
(a) The detection of magnetic pole position, that in which 60-degrees-sector the rotor is positioned, is performed by using six patterns of the Hall sensor signals.
(b) Assume that the initial magnetic pole position is the center of the 60-degrees-sector.
With the robot I work on we will have the same problem.
We cannot do an index search or even move the robot in a constant direction because of the steering system.
The motors have integrated hall sensor and high res encoder.
We have industrial encoders too. And we want to know how to connect them on the Odriveâs board.
Can you explain in more detail the problem you confronted?
Did you use hall sensorâs (UVW) or the encoderâs wires (ABZ) on your robot?
I have not used it yet, but if I would I would have the same problem as lalten. The robot is too heavy to move without a problem in open loop,to much geared down, and calibrating in a predefined direction is not possible because of the robot steering system.
The motors do work with the ODrive but only either the encoder or hall sensor. ODrive can work better with the encoder.
Has this feature been rolled into the main firmware? Seems really desirable, since youâd have to do a much shorter jog to find an absolute reference, rather than potentially having to do almost a complete revolution to find an index pulse.