First off, sorry for registering just to ask for help. Last time I took electronics was a LONG time ago.
Anyways, trying to make a simple circuit but it won't work and I'm not completely sure what's wrong with it.
So basically I'm trying to make a phone dock with a usb to micro-usb cable feeding into a box. I'm also trying to rig a LED and two switches in-line forming an and-gate so that the led will only illuminate if:
A) there is a phone charging (acting as a third switch?)
B) The manual on/off switch is on (in case you want it to charge without the light on)
C) the lid is open (so the LED isn't lit when it's closed)
I have the switches designed and tested fine, but my issue is I can't figure out how to wire the LED to the usb cord. The LED I chose came from a 4.5v portable light (3AAA powered) and comes with a resistor. My power source for the USB is a plug rated at 5v 1a so I assumed that the resistor/led pair would work fine already, but I assumed I cannot add the led/resistor/switches direcly to the power line in the USB cable without also resisting the flow of power to the phone itself, reducing its charging speed.
And wiring it up in parallel causes the led to either not light up, or be incredibly dim.
I've also tried testing it with a seperate standalone led also rated at 4.5v without a resistor, and it is also incredibly dim, so I'm not sure what I'm doing wrong, or how I can actually wire this.
Any help would be greatly appreciated. I'd draw a schematic of what I'm trying to do, but I have a feeling it would be easier to have someone else show me how to properly wire it instead of me just guessing. Assuming what I'm trying to do is even possible with the parts I have.
Thank you.
Anyways, trying to make a simple circuit but it won't work and I'm not completely sure what's wrong with it.
So basically I'm trying to make a phone dock with a usb to micro-usb cable feeding into a box. I'm also trying to rig a LED and two switches in-line forming an and-gate so that the led will only illuminate if:
A) there is a phone charging (acting as a third switch?)
B) The manual on/off switch is on (in case you want it to charge without the light on)
C) the lid is open (so the LED isn't lit when it's closed)
I have the switches designed and tested fine, but my issue is I can't figure out how to wire the LED to the usb cord. The LED I chose came from a 4.5v portable light (3AAA powered) and comes with a resistor. My power source for the USB is a plug rated at 5v 1a so I assumed that the resistor/led pair would work fine already, but I assumed I cannot add the led/resistor/switches direcly to the power line in the USB cable without also resisting the flow of power to the phone itself, reducing its charging speed.
And wiring it up in parallel causes the led to either not light up, or be incredibly dim.
I've also tried testing it with a seperate standalone led also rated at 4.5v without a resistor, and it is also incredibly dim, so I'm not sure what I'm doing wrong, or how I can actually wire this.
Any help would be greatly appreciated. I'd draw a schematic of what I'm trying to do, but I have a feeling it would be easier to have someone else show me how to properly wire it instead of me just guessing. Assuming what I'm trying to do is even possible with the parts I have.
Thank you.
Last edited by a moderator: