Electronics USB Indicator Lights

Discussion in 'Modding' started by Infamous Jum, 7 May 2002.

  1. ZapWizard

    ZapWizard Enter the Mod Matrix

    Joined:
    19 Sep 2002
    Posts:
    4,705
    Likes Received:
    5
    The switches i am thinking of are MUCH smaller.
    The type used to detect the WRITE Protect status in a floppy drive.
    These are very tiny plunger type switches.
     
  2. nleahcim

    nleahcim What's a Dremel?

    Joined:
    22 Apr 2003
    Posts:
    550
    Likes Received:
    1
    If you don't want to use a microswitch (that isn't my style...) then I'd just put a really small resistor on ground and use a comparator before and after the resistor. I don't see why this is all that complicated... I wouldn't know which exact chip to reccomend - someone smarter than me probabaly could make a better reccomendation...
     
  3. Ben999_

    Ben999_ What's a Dremel?

    Joined:
    28 Jul 2002
    Posts:
    32
    Likes Received:
    0
    so what's a comparator? does it detect a change in the voltage (of ground?) or something? would it trigger a 5v line or something for the LED? lots of questions but if this works then it will be worth it.
     
  4. Ben999_

    Ben999_ What's a Dremel?

    Joined:
    28 Jul 2002
    Posts:
    32
    Likes Received:
    0
    Well i managed to get a pic of half of one side of the usb daughterboard on the xbox. Maybe something on here will help. BTW, it is from someone who messed up a resistor or something, so disregard the red circle.


    [​IMG]
     
  5. ZapWizard

    ZapWizard Enter the Mod Matrix

    Joined:
    19 Sep 2002
    Posts:
    4,705
    Likes Received:
    5
    Do you know the numbers on that chip?
     
  6. JazzXP

    JazzXP Eh! Steve

    Joined:
    30 Apr 2002
    Posts:
    1,669
    Likes Received:
    13
    Would it be possible to put some type of sensor (I have no idea what) on the +5v line of the usb port then once the current draw goes up, turn the LED on then?
     
  7. ZapWizard

    ZapWizard Enter the Mod Matrix

    Joined:
    19 Sep 2002
    Posts:
    4,705
    Likes Received:
    5
    That is exactly what cpemma's circuit does.

    I senses a current change.
     
  8. star882

    star882 What's a Dremel?

    Joined:
    19 Mar 2003
    Posts:
    925
    Likes Received:
    1
    I just noticed that my USB hub just does what you want.
    Plug hub into USB port, red(power) LED turns on.
    Then plug device into hub(provided it's a low power device), green(device) LED for that port turns on.
     
  9. cpemma

    cpemma Ecky thump

    Joined:
    27 Nov 2001
    Posts:
    12,328
    Likes Received:
    55
    The second op-amps (IC1b) in the above circuits are being used as comparators, as you say when the voltage on one input is higher than the voltage on the other, it switches about 4v to the led. I made one input a nats above ground, so when theres nothing plugged in its definitely off. :)

    The other input is either ground or about 100mV to switch the led.

    The first op-amp (IC1a) is just a buffer and may not be needed, but a dual package is about the same price as a single so WTF. ;)
     
  10. JazzXP

    JazzXP Eh! Steve

    Joined:
    30 Apr 2002
    Posts:
    1,669
    Likes Received:
    13
    Okay I'm confused... if it's sensing the current change, what's the switch in the circuit for?
     
  11. eaterofpies

    eaterofpies What's a Dremel?

    Joined:
    12 Feb 2002
    Posts:
    1,745
    Likes Received:
    0
    er im guessing but i think thats to simulate a usb device being plugged in so you can simulate hte circuit
     
  12. bee2643

    bee2643 What's a Dremel?

    Joined:
    7 Mar 2002
    Posts:
    1,770
    Likes Received:
    1
    why not just use usb cables that have clear ends with the LED's inside that light up when you plug them in?
    i saw a pair at future shop (red and blue) for $19.99CAD

    edit:: and, if you want to integrate this into like a usb mouse, open the mouse up, splice one of the ends of the usb connector and wire it directly inside the mouse, that way you have no visible splices, the connector still lights, and your usb looks mad leet
     
  13. Ben999_

    Ben999_ What's a Dremel?

    Joined:
    28 Jul 2002
    Posts:
    32
    Likes Received:
    0
    That's the problem, i don't want to have to open up my xbox again unless i'm gonna do this mod. It's a pain to take out the screws when they are blocked by a dvd enclosure and attached by an IDE cable. I did post a request for some other xbox case modders to scan theirs, but i dunno how that will turn out. Here is the original thread of the mod idea. You can also check out that site to see some of the xbox case mods being done. You might be surprised to know that besides games the Xbox can run Linux (Debian, Mandrake, Gentoo), at least 15 different Emulators, and XBOX MEDIA PLAYER!! All with up to a 120 gb hard drive replacement. It's really been hacked more than any other console. BTW, you need a modchip.
    Yeah that would be cool, but its just not the same.
     
  14. cpemma

    cpemma Ecky thump

    Joined:
    27 Nov 2001
    Posts:
    12,328
    Likes Received:
    55
    Could be even simpler. I spotted a cheap Maplin 5-USB socket bay panel with "activity indicator lights" on each socket. All the connections it has are the 4 USB wires, +5v, 0v and the 2 data lines, so perhaps a logic probe-type circuit on the right data wire will do the trick.

    Anybody got a USB hub or panel with lights who can tell us what chips are in the box?
     
  15. Ben999_

    Ben999_ What's a Dremel?

    Joined:
    28 Jul 2002
    Posts:
    32
    Likes Received:
    0
    Okay so i still didn't scan the USB controller but i don't think i will have to. I installed Gentoo the other day and was messing around with KDE for a while. I went to the system info thing and go the information for the USB controller. I took a screenshot and managed to get it on my PC with an ftp server (still don't know how to get samba working) so here it is. Looks nicer here than on my TV.
    [​IMG]

    Does that look like the right info?
     
  16. Dad

    Dad You talkin to me?

    Joined:
    15 Apr 2003
    Posts:
    5,375
    Likes Received:
    8
    w00t!!! KDE!!! :D


    Anyone ever figure this out? I'm extremely interested in doing this on my current project...
     
  17. Ben999_

    Ben999_ What's a Dremel?

    Joined:
    28 Jul 2002
    Posts:
    32
    Likes Received:
    0
    Oh yeah i think so. If you use the shielding of the usb device as the ground connection for your LED or whatever you want powered, and then the positive connection to your power source then it should work.
     
  18. kracso

    kracso What's a Dremel?

    Joined:
    23 Feb 2003
    Posts:
    37
    Likes Received:
    0
    Okay you guys want something to indicate that something is plugged into the usb connector.....
    (if wrong, ignore me :wallbash: )

    My idea is following:
    [​IMG]
    Make a slit in the ground casing shown by an arrow (my usb actually has a slit)
    Then take a piece of wire and bend it like shown in the pic. (top-left) It should be some wire that you can bend but dosen't deform to easily.
    Then cut of some of the isolation of, but not all, so that it actually looks like a connector pin and mount that to the usb casing.
    (the gray color on the pic)
    This wire piece is connected to the LED ground (the other side of the LED is connected to supply voltage with a resistor)...
    Now when you plug in your usb device it's ground will activate the LED......... look no fancy chips :clap:

    I know this will work, it's all in may head :geek:
    I hope the text is understandable... :sigh:

    ....Instead of wire maybe use what i call spring-iron the metal stuff in relay's....:worried:

    :EDIT...Okay Ben you beat me to it....
     
  19. Darkside

    Darkside What's a Dremel?

    Joined:
    16 Nov 2002
    Posts:
    548
    Likes Received:
    0
    I think that EaterOfPies and ZapWizard have the simplest solution there is. But I thought of another way.......

    You could use a magnetically operated switch, and have a small magnet on the USB plug, which now I type it out sounds like a proximity switch to me :duh:

    Still think a weeny little push switch in the USB socket would be best though......

    Darkside.
     
  20. Guest-2808

    Guest-2808 Guest

    There might be a really simple solution to this.

    When you plug a device in, it draws power from the USB +5V line. So, all you need to do is detect that current is flowing through that line. Stick an opto-isolator in line with it, and when the device completes the circuit (effectivly connecting it to ground with some resistance in between) the opto will turn on and can light your LED.

    The reason I suggest an opto-isolator is that it won't put much current load on the port (a few mA max I should think, should really check). Other electronic switches like transistors should also work. Alternativly, just put an LED in line with a resistor, but that would put extra load (20-30mA) on.

    MoJo
     

Share This Page