In short, I have a logic level circuit I need to switch. A very small SPDT relay and small 2-3 second timer would do the job. I don't know where to ge t such a relay or timer, but using transistors and possibly a 555 seems lik e a more reasonable solution.
After getting power it needs to switch after 2 or 3 seconds and then switch no more.
I don't know how to make this work, but would really appreciate some guidan ce in making a solution for this problem.
Here is a crude .jpg schematic of the current circuit I would like to autom ate.
I have a windows tablet pc that has only one micro USB port on it. It uses this port for charging as well as USB OTG to connect USB peripherals. The p roblem is it won't usually charge while in OTG mode. Just applying 5v to th e power lines of the USB port won't make it charge.. To get it to charge, y ou have to short the data+/- lines together. Then as long as you keep power applied to the Power +/- lines it will continue to charge without shorting the data +/-. You can then connect usb devices to the data lines and the P C and they work.
Currently I am using a SPDT switch to accomplish this, but would like it to be on an automatic timer.
The purpose of this is so that I can charge the tablet and use USB devices at the same time. As it is now, I have to plug the usb hub in with the SPDT switch in shorted position and then flip the switch every time I connect t he hub. I want to make it all automatic. It needs to have the lines shorted for a few seconds and then switch in the lines for the USB hub.
Detecting the USB plug in is easy, just use the USB shield and USB ground p in as a switch.. i.e. leave the ground wire disconnected in the USB cable. The shield wire is used to carry ground. When you plug it into the tablet p c it connects the shield to the GND wire (since they are tied together on t he tablet's USB port) and completes the circuit.
Thanks in advance