The utility model discloses an automatic switching device for a DC power supply, and the device comprises a main control module which is used for obtaining the
potential difference of two DC buses at different sampling moments through a
voltage detection module, and obtaining a target
voltage according to the
potential difference; and if it is monitored that the
bus battery pack voltage of one section of direct-current
bus is abnormal based on the target voltage, controlling a
contactor to pull in so as to make the two sections of direct-current buses parallel, thereby using a normal power supply to supply power to the abnormal direct-current
bus. According to the invention, a normal power supply is automatically and quickly used to replace an abnormal power supply to supply power to the
DC bus with abnormal power supply, the current situation of passive and
hysteresis operation of personnel is changed, uninterrupted power supply is realized, the power failure time is reduced, loss caused by power failure is avoided, the user experience is improved, and the application prospect is wide. According to the invention, automatic switching of the dual power supplies during fault, maintenance and
operation mode adjustment is realized, the operation of operation and maintenance personnel on equipment is reduced, and the
safety coefficient of operation is improved.