Vbus_voltage incorrect

I have a 56V odrive with two Turnigy Aerodrive SK3 - 6374-149kv motors hooked up. They are using cui 8192 encoders.

No matter what I do the bus voltage seems to be reported as 26 ish volts. I’ve verified with a multi-meter that the bus voltage is 48V.

I am unable to get the bus voltage errors to clear. It seems like the board came configured for 24V, so I was getting over voltage errors. After changing the following I’m getting under voltage errors:

dc_bus_undervoltage_trip_level = 42.0 (float)
dc_bus_overvoltage_trip_level = 50.400001525878906 (float)

Here is the output of odrv0

vbus_voltage = 26.196971893310547 (float)
ibus = 0.0 (float)
ibus_report_filter_k = 1.0 (float)
serial_number = 207D399B4D4D (int)
hw_version_major = 3 (int)
hw_version_minor = 6 (int)
hw_version_variant = 56 (int)
fw_version_major = 0 (int)
fw_version_minor = 5 (int)
fw_version_revision = 1 (int)
fw_version_unreleased = 0 (int)
brake_resistor_armed = True (bool)
brake_resistor_saturated = False (bool)
system_stats:
uptime = 218734 (int)
min_heap_space = 41560 (int)
min_stack_space_axis0 = 1692 (int)
min_stack_space_axis1 = 1692 (int)
min_stack_space_comms = 3864 (int)
min_stack_space_usb = 3708 (int)
min_stack_space_uart = 3924 (int)
min_stack_space_can = 844 (int)
min_stack_space_usb_irq = 1796 (int)
min_stack_space_startup = 1700 (int)
stack_usage_axis0 = 356 (int)
stack_usage_axis1 = 356 (int)
stack_usage_comms = 232 (int)
stack_usage_usb = 388 (int)
stack_usage_uart = 172 (int)
stack_usage_usb_irq = 252 (int)
stack_usage_startup = 348 (int)
stack_usage_can = 180 (int)
usb: …
i2c: …
config:
enable_uart = True (bool)
uart_baudrate = 115200 (int)
enable_i2c_instead_of_can = False (bool)
enable_ascii_protocol_on_usb = True (bool)
max_regen_current = 0.0 (float)
brake_resistance = 0.0 (float)
dc_bus_undervoltage_trip_level = 42.0 (float)
dc_bus_overvoltage_trip_level = 50.400001525878906 (float)
enable_dc_bus_overvoltage_ramp = False (bool)
dc_bus_overvoltage_ramp_start = 25.68000030517578 (float)
dc_bus_overvoltage_ramp_end = 25.68000030517578 (float)
dc_max_positive_current = inf (float)
dc_max_negative_current = -9.999999974752427e-07 (float)
gpio1_pwm_mapping: …
gpio2_pwm_mapping: …
gpio3_pwm_mapping: …
gpio4_pwm_mapping: …
gpio3_analog_mapping: …
gpio4_analog_mapping: …
user_config_loaded = True (bool)
axis0:
error = 0x0002 (int)
step_dir_active = False (bool)
current_state = 1 (int)
requested_state = 0 (int)
loop_counter = 1737297 (int)
lockin_state = 0 (int)
is_homed = False (bool)
config: …
fet_thermistor: …
motor_thermistor: …
motor: …
controller: …
encoder: …
sensorless_estimator: …
trap_traj: …
min_endstop: …
max_endstop: …
watchdog_feed()
clear_errors()
axis1:
error = 0x0002 (int)
step_dir_active = False (bool)
current_state = 1 (int)
requested_state = 0 (int)
loop_counter = 1737318 (int)
lockin_state = 0 (int)
is_homed = False (bool)
config: …
fet_thermistor: …
motor_thermistor: …
motor: …
controller: …
encoder: …
sensorless_estimator: …
trap_traj: …
min_endstop: …
max_endstop: …
watchdog_feed()
clear_errors()
can:
error = 0x0000 (int)
config: …
set_baud_rate(baudRate: int)
test_property = 0 (int)
test_function(delta: int)
get_oscilloscope_val(index: int)
get_adc_voltage(gpio: int)
save_configuration()
erase_configuration()
reboot()
enter_dfu_mode()

It should be the wrong firmware burning, 56V burning to 24 v

Thanks. It seems like my board was shipped with development firmware. After updating the firmware vbus is correct.

sudo odrivetool dfu
[sudo] password for chrisn:
ODrive control utility v0.5.1.post0
Waiting for ODrive…
Found ODrive 207D399B4D4D (v3.6-56V) with firmware v0.5.1-dev
Checking online for newest firmware… found v0.5.1

Warning: you are about to flash firmware v0.5.1 which is older than the firmware on the device (v0.5.1-dev).
Do you want to flash this firmware anyway? [y/N] y
Downloading firmware v0.5.1…
Saving configuration to /tmp/odrive-config-207D399B4D4D.json…
Configuration saved.
Putting device 207D399B4D4D into DFU mode…
Erasing… done
Flashing… done
Verifying… done
Waiting for the device to reappear…
Restoring configuration from /tmp/odrive-config-207D399B4D4D.json…
Configuration restored.

1 Like