Charging LED wiring help

VashTS

Beat it, son
OP
Member
Joined
Mar 14, 2009
Messages
4,308
Trophies
1
Age
39
Location
Upstate NY
XP
3,750
Country
United States
I cannot figure out how to wire this up...

I got a + and - from the battery to the + and - of the usb port. I want an LED to come on when its plugged in and just simply stay on until unplugged, nothing too fancy.

I just cannot think how to do it. Any ideas? maybe this diagram works?

R2wpcXJ.png




:lol: This did it! yeah.
 

FAST6191

Techromancer
Editorial Team
Joined
Nov 21, 2005
Messages
36,798
Trophies
3
XP
28,321
Country
United Kingdom
So I assume the obvious step of wiring the LED (plus any Voltage and current control) in parallel with the USB does not work. I guess if the battery/voltage potential turns around when things are unplugged and in turn powers the LED.

If the above is true then the following is unlikely and I know you said you wanted to keep it simple, however does the battery have any kind of proper charge regulator? Regulators will often have an indicator pin that you can tap (or wire into a transistor).

Anyway ignoring the charge regulator option then find a suitable diode*, put it so charge can only flow from the USB and into the device and then put the LED (and its stuff) such that it can only be powered by the USB (in parallel with it having a tap right off the USB and before the diode takes effect). You may also wish to measure the leakage current (measure current flow from the battery with and without the LED attached, I do not imagine it will be much but it will be more than zero.

*most modern ones will probably do, I am not sure they even make normal diodes that break down in USB range. Edit. They do but they seem to mainly be surface mount Schottky diodes so you should be good.
 

VashTS

Beat it, son
OP
Member
Joined
Mar 14, 2009
Messages
4,308
Trophies
1
Age
39
Location
Upstate NY
XP
3,750
Country
United States
i think i solved it. im going to put a resistor on the LED + leg. so normally 3.7v are flowing through it, resistance will lessen that causing it to not light up. plug in 5v and bam LED lights up.

I think it should work, but I tend to mess this stuff up lol. Worst that happens is i blow $2.

well that was an epic fail. i guess i don't understand how resistance works?

i grabbed a 10ohm resistor thinking thats would work but nerp. tried 100, 1k and 10k.

10k made the light not come on at all.

grrrrrr..anyone else got any ideas?

So I assume the obvious step of wiring the LED (plus any Voltage and current control) in parallel with the USB does not work. I guess if the battery/voltage potential turns around when things are unplugged and in turn powers the LED.

If the above is true then the following is unlikely and I know you said you wanted to keep it simple, however does the battery have any kind of proper charge regulator? Regulators will often have an indicator pin that you can tap (or wire into a transistor).

Anyway ignoring the charge regulator option then find a suitable diode*, put it so charge can only flow from the USB and into the device and then put the LED (and its stuff) such that it can only be powered by the USB (in parallel with it having a tap right off the USB and before the diode takes effect). You may also wish to measure the leakage current (measure current flow from the battery with and without the LED attached, I do not imagine it will be much but it will be more than zero.

*most modern ones will probably do, I am not sure they even make normal diodes that break down in USB range. Edit. They do but they seem to mainly be surface mount Schottky diodes so you should be good.



you lost me here fast.

i get diodes (a tiny bit), they allow current to flow in one direction. im not sure what you mean here...so

USB + -> diode -> led -> battery +? ive got some 1n914 switching diodes wonder if they will work?

edit: see the first post, it worked! yay!
 

Site & Scene News

Popular threads in this forum

General chit-chat
Help Users
  • Maximumbeans @ Maximumbeans:
    I can't believe you got me with that
    +1
  • SylverReZ @ SylverReZ:
    I haven't been gaming for such a long time. Been mostly busy with sleep, hardware tinkering and checking GBAtemp frequently.
  • SylverReZ @ SylverReZ:
    Hope you've had a good morning.
  • Maximumbeans @ Maximumbeans:
    It's going alright thanks :) I know what you mean with gaming time. It's precious where I can get it these days.
    +1
  • Maximumbeans @ Maximumbeans:
    I think that's why I focus on just enjoying single player experiences that aren't too competitive
  • Maximumbeans @ Maximumbeans:
    How are you doing?
  • SylverReZ @ SylverReZ:
    There's also this thing where I'm hyperfocused at night and cannot get to sleep.
  • SylverReZ @ SylverReZ:
    @Maximumbeans, I'm doing alright, thanks.
    +1
  • Maximumbeans @ Maximumbeans:
    That must be rough. Productive I'm sure but hard to balance with daily life
    +1
  • SylverReZ @ SylverReZ:
    @Maximumbeans, Indeed. I've been working on getting this Infecutus chip to work on my PS2. But after soldering, I realised that a plastic piece was missing from the power ribbon cable to the power and eject buttons.
  • SylverReZ @ SylverReZ:
    Now I could go with soldering the contacts from the cable to the connector on the mobo, but doesn't sound like a good permanent solution.
  • Maximumbeans @ Maximumbeans:
    Man, that's beyond my brain :rofl: I'm no good with hardware for now. I'd like to get into hardmods in future though
  • SylverReZ @ SylverReZ:
    @Maximumbeans, Maybe start practice soldering. Get a cheap-ass soldering iron and follow some good YouTube tutorials.
    +1
  • SylverReZ @ SylverReZ:
    Least my experience has gotten better than over a decade ago. My iron would constantly bump into components and break them.
  • Maximumbeans @ Maximumbeans:
    Sounds good. I actually did soldering but like 16 years ago for school so uuuuh probably rusty haha
  • SylverReZ @ SylverReZ:
    @Maximumbeans, Same here. I did soldering at school from a teacher who I honestly liked since he had plenty of good electronics experience.
    +1
  • Maximumbeans @ Maximumbeans:
    I wish I could play chess well
    +1
  • Maximumbeans @ Maximumbeans:
    Useless but a true art
    +1
  • SylverReZ @ SylverReZ:
    @Maximumbeans, I had a friend who had a glass chess set for their birthday.
  • SylverReZ @ SylverReZ:
    It was like all clear and fancy. Tbf I'm not too experienced with chess, but would like to learn someday.
  • Maximumbeans @ Maximumbeans:
    That sounds really cool
  • Maximumbeans @ Maximumbeans:
    I know the basics but no strategy at all :rofl:
    Maximumbeans @ Maximumbeans: I know the basics but no strategy at all :rofl: