I am currently working on creating a usb powered led circuit for my desk as back lighting.
here is the rig in theory
usb port supplies power at up to 500 mA 5v
i have two options
1st option is an ac adapter powered usb hub that rates each port at the full 500mA output (obviously it would be software regulated to standard 100mA if powered through the optional usb plug) but it should supply a full 500mA if only powered by ac adapter
2nd Option: i could use my free usb ports on my pc, this is possibly problematic because power output is usually regulated by driver software in each usb peripheral .
i would have several individual strings of 4 or 8 White 5mm flat top leds rated at 20mA a piece. all of the individual strips of 4 or 8 leds would all be connected together with the usb cords positive and negative. they would be spliced when necessary.
all in all a total of 20 leds would be on my first test circuit. 20 leds at 20mA per led for a total need of 400mA
in a normal led circuit with excess voltage/amperage you would need resistors.
my questions are these:
1. do i need resistors or can i regulate the usb power through software or other means (like a volt regulator or other means)
2. if i need resistors what would be appropriate
3. am i missing a more simple option
4. in theory what if i had a full 25 leds on a single circuit that would of course pull the full 500mA would i still need resistors?
5. does anyone know how a usb outputs power if there is no device to ask it what amperage it needs? (example cut off a mouse and plug in the cord) does it output 100mA at default?
Thank you so much, im not new to electronics nor am i experienced i am open to all criticism and helpful ideas.
here is the rig in theory
usb port supplies power at up to 500 mA 5v
i have two options
1st option is an ac adapter powered usb hub that rates each port at the full 500mA output (obviously it would be software regulated to standard 100mA if powered through the optional usb plug) but it should supply a full 500mA if only powered by ac adapter
2nd Option: i could use my free usb ports on my pc, this is possibly problematic because power output is usually regulated by driver software in each usb peripheral .
i would have several individual strings of 4 or 8 White 5mm flat top leds rated at 20mA a piece. all of the individual strips of 4 or 8 leds would all be connected together with the usb cords positive and negative. they would be spliced when necessary.
all in all a total of 20 leds would be on my first test circuit. 20 leds at 20mA per led for a total need of 400mA
in a normal led circuit with excess voltage/amperage you would need resistors.
my questions are these:
1. do i need resistors or can i regulate the usb power through software or other means (like a volt regulator or other means)
2. if i need resistors what would be appropriate
3. am i missing a more simple option
4. in theory what if i had a full 25 leds on a single circuit that would of course pull the full 500mA would i still need resistors?
5. does anyone know how a usb outputs power if there is no device to ask it what amperage it needs? (example cut off a mouse and plug in the cord) does it output 100mA at default?
Thank you so much, im not new to electronics nor am i experienced i am open to all criticism and helpful ideas.