PurposeA switching depth controller based on a variable buoyancy system (VBS) is proposed to improve the performance of small autonomous underwater vehicles (AUVs). First, the requirements of VBS for small AUVs are analyzed. Second, a modular VBS with high extensibility and easy integration is proposed based on the concepts of generality and interchangeability. Subsequently, a depth-switching controller is proposed based on the modular VBS, which combines the best features of the linear active disturbance rejection controller and the nonlinear active disturbance rejection controller.Design/methodology/approachThe controller design and endurance of tiny AUVs are challenging because of their low environmental adaptation, limited energy resources and nonlinear dynamics. Traditional and single linear controllers cannot solve these problems efficiently. Although the VBS can improve the endurance of AUVs, the current VBS is not extensible for small AUVs in terms of the differences in individuals and operating environments.FindingsThe switching controller’s performance was examined using simulation with water flow and external disturbances, and the controller’s performance was compared in pool experiments. The results show that switching controllers have greater effectiveness, disturbance rejection capability and robustness even in the face of various disturbances.Practical implicationsA high degree of standardization and integration of VBS significantly enhances the performance of small AUVs. This will help expand the market for small AUV applications.Originality/valueThis solution improves the extensibility of the VBS, making it easier to integrate into different models of small AUVs. The device enhances the endurance and maneuverability of the small AUVs by adjusting buoyancy and center of gravity for low-power hovering and pitch angle control.