Pro'nun kargosunu mu yoksa yeni versiyonunu mu? Yakışıklı ama çok pahalı.Durum sasirtti beni , genelde odrive anahtar teslim rahat cozum gibi gorunuyordu. Ben pro'yu bekliyorum bakalim
Device 368D387E3333: Not a genuine ODrive! Some features may not work as expected.
Reconnected to device 368D387E3333 as dev0
In [59]: dev0.axis0.requested_state = AXIS_STATE_MOTOR_CALIBRATION
In [60]: dev0.axis0.motor.error
Out[60]: 0
In [61]: dev0.axis0.motor.config.phase_inductance
...: dev0.axis0.motor.config.phase_resistance
Out[61]: 0.2752224802970886
In [62]: dev0.axis0.motor.config.phase_inductance
...:
...: dev0.axis0.motor.config.phase_resistance
Out[62]: 0.2752224802970886
In [63]: dev0.axis0.motor.config.phase_inductance
Out[63]: 0.0003735609061550349
In [64]: dev0.axis0.motor.config.pre_calibrated = True
...:
In [65]: dev0.axis0.requested_state = AXIS_STATE_ENCODER_OFFSET_CALIBRATION
In [66]: dump_errors(dev0)
system: no error
axis0
axis: Error(s):
AxisError.ENCODER_FAILED
motor: no error
DRV fault: none
sensorless_estimator: no error
encoder: Error(s):
EncoderError.HALL_NOT_CALIBRATED_YET
controller: no error
axis1
axis: no error
motor: no error
DRV fault: none
sensorless_estimator: no error
encoder: no error
controller: no error
Denemedim. ama bu akşam yoğunlaşıp bakacam. İnşallah çözerim üzerimden büyük bir yük kalkarAbi merak ettim , benimkininde eli kulaginda. Sensorless mod'da denedin mi ?
In [13]: dev0.axis0.encoder.hall_state
Out[13]: 1
In [14]: dev0.axis0.encoder.hall_state
Out[14]: 6
In [15]: dev0.axis0.encoder.hall_state
Out[15]: 1
In [16]: dev0.axis0.encoder.hall_state
Out[16]: 4
In [17]: dev0.axis0.encoder.hall_state
Out[17]: 6
In [18]: dev0.axis0.encoder.hall_state
Out[18]: 2
In [19]: dev0.axis0.encoder.hall_state
Out[19]: 1
In [20]: dev0.axis0.encoder.hall_state
Out[20]: 5
In [21]: dev0.axis0.encoder.hall_state
Out[21]: 4
In [22]: dev0.axis0.encoder.hall_state
Out[22]: 6
In [23]: dev0.axis0.encoder.hall_state
Out[23]: 3
In [24]: dev0.axis0.encoder.pos_cpr_counts
Out[24]: 0.0
In [25]: dev0.axis0.encoder.pos_cpr_counts
Out[25]: 0.0
In [26]: dev0.axis0.encoder.hall_state
Out[26]: 1
dev0.erase_configuration()
dev0.config.enable_brake_resistor = True
dev0.config.brake_resistance = 2.0
dev0.config.dc_max_negative_current = -0.01
dev0.axis0.motor.config.pole_pairs = 15
dev0.axis0.motor.config.resistance_calib_max_voltage #sorgu
dev0.axis0.motor.config.requested_current_range #sorgu
dev0.axis0.motor.config.current_control_bandwidth #sorgu
dev0.axis0.motor.config.current_control_bandwidth
dev0.axis0.motor.config.resistance_calib_max_voltage = 4
dev0.axis0.motor.config.requested_current_range = 25
dev0.axis0.motor.config.current_control_bandwidth = 100
dev0.axis0.motor.config.torque_constant = 8.27
dev0.axis0.encoder.config.mode = ENCODER_MODE_HALL
dev0.axis0.encoder.config.cpr = 90
dev0.axis0.encoder.config.calib_scan_distance #sorgu
dev0.axis0.encoder.config.calib_scan_distance = 150
dev0.axis0.encoder.config.bandwidth #sorgu
dev0.axis0.encoder.config.bandwidth = 100
dev0.axis0.controller.config.pos_gain = 1
dev0.axis0.controller.config.vel_gain = 0.02 * dev0.axis0.motor.config.torque_constant * dev0.axis0.encoder.config.cpr
dev0.axis0.controller.config.vel_integrator_gain = 0.1 * dev0.axis0.motor.config.torque_constant * dev0.axis0.encoder.config.cpr
dev0.axis0.controller.config.vel_limit = 10
dev0.axis0.controller.config.control_mode = CONTROL_MODE_POSITION_CONTROL
dev0.save_configuration()
dev0.reboot()
dev0.axis0.requested_state = AXIS_STATE_MOTOR_CALIBRATION
dev0.axis0.motor.error
dev0.axis0.motor.config.phase_inductance
dev0.axis0.motor.config.phase_resistance
dev0.axis0.motor.config.pre_calibrated = True
dev0.axis0.requested_state = AXIS_STATE_ENCODER_OFFSET_CALIBRATION
dev0.axis0.requested_state = AXIS_STATE_FULL_CALIBRATION_SEQUENCE #önemli
dev0.erase_configuration()
dev0.config.enable_brake_resistor = True
dev0.config.brake_resistance = 2.0
dev0.config.dc_max_negative_current = -0.01
#axis0
dev0.axis0.motor.config.pole_pairs = 15
dev0.axis0.motor.config.resistance_calib_max_voltage #sorgu
dev0.axis0.motor.config.requested_current_range #sorgu
dev0.axis0.motor.config.current_control_bandwidth #sorgu
dev0.axis0.motor.config.current_control_bandwidth
dev0.axis0.motor.config.resistance_calib_max_voltage = 4
dev0.axis0.motor.config.requested_current_range = 25
dev0.axis0.motor.config.current_control_bandwidth = 100
dev0.axis0.motor.config.torque_constant = 8.27
dev0.axis0.encoder.config.mode = ENCODER_MODE_HALL
dev0.axis0.encoder.config.cpr = 90
dev0.axis0.encoder.config.calib_scan_distance #sorgu
dev0.axis0.encoder.config.calib_scan_distance = 150
dev0.axis0.encoder.config.bandwidth #sorgu
dev0.axis0.encoder.config.bandwidth = 100
dev0.axis0.controller.config.pos_gain = 1
dev0.axis0.controller.config.vel_gain = 0.02 * dev0.axis0.motor.config.torque_constant * dev0.axis0.encoder.config.cpr
dev0.axis0.controller.config.vel_integrator_gain = 0.1 * dev0.axis0.motor.config.torque_constant * dev0.axis0.encoder.config.cpr
dev0.axis0.controller.config.vel_limit = 10
dev0.axis0.controller.config.control_mode = CONTROL_MODE_POSITION_CONTROL
#axis1
dev0.axis1.motor.config.pole_pairs = 15
dev0.axis1.motor.config.resistance_calib_max_voltage #sorgu
dev0.axis1.motor.config.requested_current_range #sorgu
dev0.axis1.motor.config.current_control_bandwidth #sorgu
dev0.axis1.motor.config.current_control_bandwidth
dev0.axis1.motor.config.resistance_calib_max_voltage = 4
dev0.axis1.motor.config.requested_current_range = 25
dev0.axis1.motor.config.current_control_bandwidth = 100
dev0.axis1.motor.config.torque_constant = 8.27
dev0.axis1.encoder.config.mode = ENCODER_MODE_HALL
dev0.axis1.encoder.config.cpr = 90
dev0.axis1.encoder.config.calib_scan_distance #sorgu
dev0.axis1.encoder.config.calib_scan_distance = 150
dev0.axis1.encoder.config.bandwidth #sorgu
dev0.axis1.encoder.config.bandwidth = 100
dev0.axis1.controller.config.pos_gain = 1
dev0.axis1.controller.config.vel_gain = 0.02 * dev0.axis0.motor.config.torque_constant * dev0.axis0.encoder.config.cpr
dev0.axis1.controller.config.vel_integrator_gain = 0.1 * dev0.axis0.motor.config.torque_constant * dev0.axis0.encoder.config.cpr
dev0.axis1.controller.config.vel_limit = 10
dev0.axis1.controller.config.control_mode = CONTROL_MODE_POSITION_CONTROL
dev0.save_configuration()
dev0.reboot()
dev0.axis0.requested_state = AXIS_STATE_MOTOR_CALIBRATION
dev0.axis0.motor.error
dev0.axis0.motor.config.phase_inductance
dev0.axis0.motor.config.phase_resistance
dev0.axis0.motor.config.pre_calibrated = True
dev0.axis0.requested_state = AXIS_STATE_ENCODER_OFFSET_CALIBRATION
dev0.axis0.requested_state = AXIS_STATE_FULL_CALIBRATION_SEQUENCE #önemli
dev0.axis1.motor.config.phase_inductance
dev0.axis1.motor.config.phase_resistance
dev0.axis1.motor.config.pre_calibrated = True
dev0.axis1.requested_state = AXIS_STATE_ENCODER_OFFSET_CALIBRATION
dev0.axis1.requested_state = AXIS_STATE_FULL_CALIBRATION_SEQUENCE
In [102]: dump_errors(dev0)
system: no error
axis0
axis: Error(s):
AxisError.ENCODER_FAILED
motor: no error
DRV fault: none
sensorless_estimator: no error
encoder: Error(s):
EncoderError.HALL_NOT_CALIBRATED_YET
controller: no error
axis1
axis: Error(s):
AxisError.ENCODER_FAILED
motor: no error
DRV fault: none
sensorless_estimator: no error
encoder: Error(s):
EncoderError.HALL_NOT_CALIBRATED_YET
controller: no error