For USB-powered devices with an on/off button This is the converter cable you can use. You can use it with devices such as Arduino and Raspberry Pi, as well as USB-powered devices such as fans and lamps. It helps prevent wear and tear of the USB connector due to frequent pulling and plugging of the USB cable.
Only used for charging, cannot support data transfer.