Hey all,
I've currently got a toggle in the middle of a USB cable which allows me to stop the flow of data through the green wire inside the cable. When the switch is closed, data flow is normal. When the switch is open, the data is interrupted. My circuit (if you can call it that, it's so simple) currently looks like this:
I'm now trying to make this more intelligent, hopefully using a PICAXE. The PICAXE will read an input via a push-to-make switch, and should then allow the USB data to flow through the green wire for 5 seconds, after which data flow is restored. I've had a think about this and the only simple method which springs into my mind is an NPN transistor on an output leg of the chip.. I'm really not sure if what I'm suggesting will work though, and I don't have time to research it fully as I'm right in the middle of the exams. The picture is below - the data in the green wire is flowing from top to bottom.
Would the above work? If not, is there a simple change to make (i.e. resistors to prevent damage to the transistors?) Or am I on the completely wrong track and need guiding in the right direction?
Thanks a lot!
Charlie
I've currently got a toggle in the middle of a USB cable which allows me to stop the flow of data through the green wire inside the cable. When the switch is closed, data flow is normal. When the switch is open, the data is interrupted. My circuit (if you can call it that, it's so simple) currently looks like this:
I'm now trying to make this more intelligent, hopefully using a PICAXE. The PICAXE will read an input via a push-to-make switch, and should then allow the USB data to flow through the green wire for 5 seconds, after which data flow is restored. I've had a think about this and the only simple method which springs into my mind is an NPN transistor on an output leg of the chip.. I'm really not sure if what I'm suggesting will work though, and I don't have time to research it fully as I'm right in the middle of the exams. The picture is below - the data in the green wire is flowing from top to bottom.
Would the above work? If not, is there a simple change to make (i.e. resistors to prevent damage to the transistors?) Or am I on the completely wrong track and need guiding in the right direction?
Thanks a lot!
Charlie