You can use this cable with all android and windows devices to use the OTG function and simultaneously charge the devices.
Step 1: Materials Required
Step 2: Wiring Micro USB
Wire the Micro USB male A according to the schematic shown and USB guidelines.
Step 3: Preparing USB Male a and Female A
Strip and tin the wires of the USB male A and female A
Step 4: Wiring
Wire the connectors to the switch as shown in the diagram below. A clear explanation has been given in the video and working has also been demonstrated.