Growth in renewable energy systems, direct current (DC) microgrids, and the adoption of electric vehicles (EVs) will substantially increase the demand for bi-directional converters. Precise control mechanisms are essential to ensure optimal performance and better efficiency of these converters. This paper proposes a deep neural network (DNN)-based controller designed to precisely control bi-directional converters for vehicle-to-vehicle (V2V) and vehicle-to-grid (V2G) applications. This control technique allows the converter to quickly attain new reference values, enhancing performance and efficiency by significantly reducing the overshoot duration. To train the DNN controller, large synthetic data are used by performing simulations for various sets of conditions, and the results are validated with a hardware setup. The real-time performance of the DNN controller is compared with a conventional proportional–integral (PI)-based controller through simulated results using MATLAB Simulink (version 2023a) and with a real-time setup. The converter attains a new reference of about 975 μs with the proposed control technique. In contrast, the PI controller takes about 220 ms, which shows that the proposed control technique is far better than the PI controller.