Home |
Search |
Today's Posts |
|
Electronics Repair (sci.electronics.repair) Discussion of repairing electronic equipment. Topics include requests for assistance, where to obtain servicing information and parts, techniques for diagnosis and repair, and annecdotes about success, failures and problems. |
Reply |
|
LinkBack | Thread Tools | Display Modes |
#1
Posted to sci.electronics.repair
|
|||
|
|||
Analog Switch question
Looking for some advice on how to make this.
I need to make a DTDP analog switch work with a few second delay after receiving input. I was thinking about a 555 and some kind of analog switch like an AD7512 or something like that. For example, I have a usb cable I will plug into a tablet. It needs to short the D+ and D- pins (on the cable going to the tablet) together for a couple of seconds then connect the the D+ and D- (from a usb hub). You can read my description below or look at the circuit I drew here. http://tinypic.com/r/3326wpf/8 The hub will provide power to charge the tablet, but to put the tablet into charge mode you need to short the pins first. After that you can disconnect the short and it will continue charging. Switch in the USB hub's data lines and everything is working. Charging and connected to a hub all on one USB port. |
#2
Posted to sci.electronics.repair
|
|||
|
|||
Analog Switch question
On 3/4/2015 2:39 PM, Michael Kennedy wrote:
Looking for some advice on how to make this. I need to make a DTDP analog switch work with a few second delay after receiving input. I was thinking about a 555 and some kind of analog switch like an AD7512 or something like that. For example, I have a usb cable I will plug into a tablet. It needs to short the D+ and D- pins (on the cable going to the tablet) together for a couple of seconds then connect the the D+ and D- (from a usb hub). You can read my description below or look at the circuit I drew here. http://tinypic.com/r/3326wpf/8 The hub will provide power to charge the tablet, but to put the tablet into charge mode you need to short the pins first. After that you can disconnect the short and it will continue charging. Switch in the USB hub's data lines and everything is working. Charging and connected to a hub all on one USB port. By the way, sorry if you see my message twice. I tried posting from a google account to see if anyone would read it. I just got a real Usenet provider again for the first time in years. |
#3
Posted to sci.electronics.repair
|
|||
|
|||
Analog Switch question
On 3/3/2015 11:39 PM, Michael Kennedy wrote:
Looking for some advice on how to make this. I need to make a DTDP analog switch work with a few second delay after receiving input. I was thinking about a 555 and some kind of analog switch like an AD7512 or something like that. For example, I have a usb cable I will plug into a tablet. It needs to short the D+ and D- pins (on the cable going to the tablet) together for a couple of seconds then connect the the D+ and D- (from a usb hub). You can read my description below or look at the circuit I drew here. http://tinypic.com/r/3326wpf/8 The hub will provide power to charge the tablet, but to put the tablet into charge mode you need to short the pins first. After that you can disconnect the short and it will continue charging. Switch in the USB hub's data lines and everything is working. Charging and connected to a hub all on one USB port. Do you need it automatic, or can you just put a DPDT momentary switch on it and be done? Mikek --- This email has been checked for viruses by Avast antivirus software. http://www.avast.com |
#4
Posted to sci.electronics.repair
|
|||
|
|||
Analog Switch question
On 3/5/2015 3:15 AM, amdx wrote:
On 3/3/2015 11:39 PM, Michael Kennedy wrote: Looking for some advice on how to make this. I need to make a DTDP analog switch work with a few second delay after receiving input. I was thinking about a 555 and some kind of analog switch like an AD7512 or something like that. For example, I have a usb cable I will plug into a tablet. It needs to short the D+ and D- pins (on the cable going to the tablet) together for a couple of seconds then connect the the D+ and D- (from a usb hub). You can read my description below or look at the circuit I drew here. http://tinypic.com/r/3326wpf/8 The hub will provide power to charge the tablet, but to put the tablet into charge mode you need to short the pins first. After that you can disconnect the short and it will continue charging. Switch in the USB hub's data lines and everything is working. Charging and connected to a hub all on one USB port. Do you need it automatic, or can you just put a DPDT momentary switch on it and be done? Mikek --- This email has been checked for viruses by Avast antivirus software. http://www.avast.com Well, I have it with a switch now and it works just fine. That's how I know this works and made that circuit diagram. A switch is a simple solution but I guess I was wanting to turn this into a project I can learn something from. This seems like it should be a fairly simple circuit to build. but when it comes to designing circuits I have almost no experience so I figured I'd ask around since I don't know what kind of devices are out there. Maybe I should post this over on s.e.design. |
#5
Posted to sci.electronics.repair
|
|||
|
|||
Analog Switch question
On 3/4/2015 6:36 PM, Michael Kennedy wrote:
On 3/5/2015 3:15 AM, amdx wrote: On 3/3/2015 11:39 PM, Michael Kennedy wrote: Looking for some advice on how to make this. I need to make a DTDP analog switch work with a few second delay after receiving input. I was thinking about a 555 and some kind of analog switch like an AD7512 or something like that. For example, I have a usb cable I will plug into a tablet. It needs to short the D+ and D- pins (on the cable going to the tablet) together for a couple of seconds then connect the the D+ and D- (from a usb hub). You can read my description below or look at the circuit I drew here. http://tinypic.com/r/3326wpf/8 The hub will provide power to charge the tablet, but to put the tablet into charge mode you need to short the pins first. After that you can disconnect the short and it will continue charging. Switch in the USB hub's data lines and everything is working. Charging and connected to a hub all on one USB port. Do you need it automatic, or can you just put a DPDT momentary switch on it and be done? Mikek --- This email has been checked for viruses by Avast antivirus software. http://www.avast.com Well, I have it with a switch now and it works just fine. That's how I know this works and made that circuit diagram. A switch is a simple solution but I guess I was wanting to turn this into a project I can learn something from. This seems like it should be a fairly simple circuit to build. but when it comes to designing circuits I have almost no experience so I figured I'd ask around since I don't know what kind of devices are out there. Maybe I should post this over on s.e.design. I was thinking about a 555 and some kind of analog switch like an AD7512 What are you planing on using as the trigger for the 555? Just the power from when the USB is plugged into the tablet. hmm I think there is already voltage on the power pins What are the other uses of the USB. If you put the circuit internal to the tablet will this affect those other devices. You could switch a small DPDT relay with the 555. Mikek |
#6
Posted to sci.electronics.repair
|
|||
|
|||
Analog Switch question
"Michael Kennedy" wrote in message ... Looking for some advice on how to make this. I need to make a DTDP analog switch work with a few second delay after receiving input. I was thinking about a 555 and some kind of analog switch like an AD7512 or something like that. For example, I have a usb cable I will plug into a tablet. It needs to short the D+ and D- pins (on the cable going to the tablet) together for a couple of seconds then connect the the D+ and D- (from a usb hub). You can read my description below or look at the circuit I drew here. http://tinypic.com/r/3326wpf/8 The hub will provide power to charge the tablet, but to put the tablet into charge mode you need to short the pins first. After that you can disconnect the short and it will continue charging. Switch in the USB hub's data lines and everything is working. Charging and connected to a hub all on one USB port. How about just keeping it really simple ? All you need is a small DPDT relay with a high sensitivity 5v coil (Mouser, Digikey etc) , and an electrolytic cap of a few tens of uF. Just wire +5v - Relay coil - cap - GND. When you plug in, the cap will charge via the relay coil. The charging current through the coil will pull the relay. As the cap approaches full charge, the current through the coil will drop close to zero, and the relay will drop back out. The length of time that the relay stays closed for will depend on the DC resistance of the coil, the relay sensitivity, and the value of the cap. The whole thing could be 'tidied up' a bit if the operation of the relay is a bit 'scruffy', by adding an NPN transistor and a resistor to the mix. In that case, it would be +5v - R - C - GND Then from the junction of R and C you would take a connection to the base of the transistor. The remainder of the circuit would be +5v - Relay coil - Tr collector // Tr emitter - GND. You would need to have a diode connected directly across the relay coil, cathode to 5v anode to transistor collector. This is to protect the transistor from reverse spikes from the coil when it is de-energised. The value of the resistor needs to be between about 2k and 47k. The time delay will be in the vicinity of 0.7 CR. 22k and 68uF would be a couple of good values to start with. With this driver transistor added, the relay can be pretty much anything with a 5v coil that comes to hand. No need for it to be a high sensitivity type. There are other little sophistications that could be added in as well, such as a diode across the charging R. That will ensure that when you unplug, and the 5v disappears, the diode becomes forward biased by the charge on the cap, dumping that charge into the rail, ensuring that the cap is quickly discharged so that the timing will work again if you plug straight back in. These are just ideas based on generic circuit elements, but some combination of them should work for you. You could of course go down the 555 timer route, but that seems needlessly complicated to me. Arfa |
#7
Posted to sci.electronics.repair
|
|||
|
|||
Analog Switch question
On 3/5/2015 8:08 PM, Arfa Daily wrote:
"Michael Kennedy" wrote in message ... Looking for some advice on how to make this. I need to make a DTDP analog switch work with a few second delay after receiving input. I was thinking about a 555 and some kind of analog switch like an AD7512 or something like that. For example, I have a usb cable I will plug into a tablet. It needs to short the D+ and D- pins (on the cable going to the tablet) together for a couple of seconds then connect the the D+ and D- (from a usb hub). You can read my description below or look at the circuit I drew here. http://tinypic.com/r/3326wpf/8 The hub will provide power to charge the tablet, but to put the tablet into charge mode you need to short the pins first. After that you can disconnect the short and it will continue charging. Switch in the USB hub's data lines and everything is working. Charging and connected to a hub all on one USB port. How about just keeping it really simple ? All you need is a small DPDT relay with a high sensitivity 5v coil (Mouser, Digikey etc) , and an electrolytic cap of a few tens of uF. Just wire +5v - Relay coil - cap - GND. When you plug in, the cap will charge via the relay coil. The charging current through the coil will pull the relay. As the cap approaches full charge, the current through the coil will drop close to zero, and the relay will drop back out. The length of time that the relay stays closed for will depend on the DC resistance of the coil, the relay sensitivity, and the value of the cap. The whole thing could be 'tidied up' a bit if the operation of the relay is a bit 'scruffy', by adding an NPN transistor and a resistor to the mix. In that case, it would be +5v - R - C - GND Then from the junction of R and C you would take a connection to the base of the transistor. The remainder of the circuit would be +5v - Relay coil - Tr collector // Tr emitter - GND. You would need to have a diode connected directly across the relay coil, cathode to 5v anode to transistor collector. This is to protect the transistor from reverse spikes from the coil when it is de-energised. The value of the resistor needs to be between about 2k and 47k. The time delay will be in the vicinity of 0.7 CR. 22k and 68uF would be a couple of good values to start with. With this driver transistor added, the relay can be pretty much anything with a 5v coil that comes to hand. No need for it to be a high sensitivity type. There are other little sophistications that could be added in as well, such as a diode across the charging R. That will ensure that when you unplug, and the 5v disappears, the diode becomes forward biased by the charge on the cap, dumping that charge into the rail, ensuring that the cap is quickly discharged so that the timing will work again if you plug straight back in. These are just ideas based on generic circuit elements, but some combination of them should work for you. You could of course go down the 555 timer route, but that seems needlessly complicated to me. Arfa I like it, and mad that I didn't think of it! Mikek |
#8
Posted to sci.electronics.repair
|
|||
|
|||
Analog Switch question
On 3/5/2015 6:08 PM, Arfa Daily wrote:
"Michael Kennedy" wrote in message ... Looking for some advice on how to make this. I need to make a DTDP analog switch work with a few second delay after receiving input. I was thinking about a 555 and some kind of analog switch like an AD7512 or something like that. For example, I have a usb cable I will plug into a tablet. It needs to short the D+ and D- pins (on the cable going to the tablet) together for a couple of seconds then connect the the D+ and D- (from a usb hub). You can read my description below or look at the circuit I drew here. http://tinypic.com/r/3326wpf/8 The hub will provide power to charge the tablet, but to put the tablet into charge mode you need to short the pins first. After that you can disconnect the short and it will continue charging. Switch in the USB hub's data lines and everything is working. Charging and connected to a hub all on one USB port. How about just keeping it really simple ? All you need is a small DPDT relay with a high sensitivity 5v coil (Mouser, Digikey etc) , and an electrolytic cap of a few tens of uF. Just wire +5v - Relay coil - cap - GND. When you plug in, the cap will charge via the relay coil. The charging current through the coil will pull the relay. As the cap approaches full charge, the current through the coil will drop close to zero, and the relay will drop back out. The length of time that the relay stays closed for will depend on the DC resistance of the coil, the relay sensitivity, and the value of the cap. The whole thing could be 'tidied up' a bit if the operation of the relay is a bit 'scruffy', by adding an NPN transistor and a resistor to the mix. In that case, it would be +5v - R - C - GND Then from the junction of R and C you would take a connection to the base of the transistor. The remainder of the circuit would be +5v - Relay coil - Tr collector // Tr emitter - GND. You would need to have a diode connected directly across the relay coil, cathode to 5v anode to transistor collector. This is to protect the transistor from reverse spikes from the coil when it is de-energised. The value of the resistor needs to be between about 2k and 47k. The time delay will be in the vicinity of 0.7 CR. 22k and 68uF would be a couple of good values to start with. With this driver transistor added, the relay can be pretty much anything with a 5v coil that comes to hand. No need for it to be a high sensitivity type. There are other little sophistications that could be added in as well, such as a diode across the charging R. That will ensure that when you unplug, and the 5v disappears, the diode becomes forward biased by the charge on the cap, dumping that charge into the rail, ensuring that the cap is quickly discharged so that the timing will work again if you plug straight back in. These are just ideas based on generic circuit elements, but some combination of them should work for you. You could of course go down the 555 timer route, but that seems needlessly complicated to me. Arfa How about a pushbutton switch on the connector you plug in? Not everything in the world requires an electronic solution. |
#9
Posted to sci.electronics.repair
|
|||
|
|||
Analog Switch question
Arfa How about a pushbutton switch on the connector you plug in? Not everything in the world requires an electronic solution. If you read all of the posts, that was already suggested to the OP, and he says that is how he does it now and it works well enough, but he wants to do it automatically with a bit of electronics, as much as an exercise in designing and understanding some simple circuitry, as producing the functionality ... Arfa |
#10
Posted to sci.electronics.repair
|
|||
|
|||
Analog Switch question
These are just ideas based on generic circuit elements, but some combination of them should work for you. You could of course go down the 555 timer route, but that seems needlessly complicated to me. Arfa I like it, and mad that I didn't think of it! Mikek Why thank you, kind sir ... ! d:-) Arfa |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
Similar Threads | ||||
Thread | Forum | |||
Analog Switch | Electronic Schematics | |||
Analog Switch Subcircuit | Electronic Schematics | |||
Analog VHS to DVD question | Electronics Repair | |||
TEAC Receiver with shorted analog switch chip | Electronics Repair |