Public transport in cities in recent years has received more attention to increase the comfort of life in megacities. The economic and environmental performance of cities can be improved by efficiently connecting public transport resources and increasing vehicle mobility. Over the last two decades, there has been a huge increase in population in developing countries. Population growth has led to an increase in demand for mobility. If the transport infrastructure is not able to meet the requirements, it leads to an increase in the waiting time for public transport and congestion on the streets. Public transport can be more attractive by providing door-to-door mobility, and the development of transport services is an important factor for life in megacities. Transport sustainability, environmental conditions, health and economic well-being can be enhanced by moving to more mobile public transport. Simply put, mobility by public transport makes it possible to reduce the adverse effects of car use on the environment and health. The level of mobility of the city can be improved by providing a well-organized transport system. Therefore, the accessibility of public transport stops, the connectivity of public transport modes and the mobility of the system should be considered to ensure a user-friendly public transport system. The purpose of this article is to create a trolleybus power supply system with a high-voltage battery, which would reduce the load on the network during vehicle acceleration, and with the help of an additional converter was able to recover energy during braking to the battery. Therefore, the article considered the modes of movement of the trolleybus and on the basis of these data proposed a power supply system using a rechargeable battery. This type of vehicle power supply will increase the mobility of the trolleybus due to the use of a power battery, which in turn is useful in traffic jams, accidents, as well as in the absence of a network. The calculation of inverters required for the operation of such a system is shown. The control will take place by means of a relay control, which will allow the trolleybus to move autonomously, as well as allow it to store energy to the battery.