Yes that was exactly my plan to do it
Can you tell me how you have made the connector pins and what voltage is on the connector pins? 5V?
And what kind of electronic you use?
I thought it's enougth to connect the cables directly with pin 1 and 4 of the usb port (the voltage pins of the usb port)