How to connect to power

What is the suggested way to connect the odrive to power? With a barrel connector to a switching powersupply I get sparking at 36V.

I now integrated a switch that limits the inrush current by using a 200 Ohm resistor. The switches might have some bounce…

Here is a badly drawn schematic of my setup (sorry), the switches at the power supply are the barrel connector. Power on sequence is: open switches, connect barrel connector, close 200 ohm switch, close normal switch and reverse for power down.

Great question!

What you drew there is a pretty textbook precharge circuit – I run something similar to that on my desk. There’s also products that do this specifically (sometimes called antispark switches), as well as connectors with integrated precharge resistor. One other option that I frequently use is to just only connect the power supply to wall power once everything is wired up, so that only the AC power is being physically switched.