|
![]() |
Overclock.net - Overclocking.net > Case Mods & Cases > Other Hardware Mods | |
Help with PNP/NPN Transistors and LEDs?
|
||
![]() |
|
|
LinkBack | Thread Tools |
|
|
#1 (permalink) | |||||||||||||
|
Audiophile
![]() |
To explain in brief, I'm wiring some transistors and LEDs in an Xbox 360 wireless controller, and have had multiple ideas tossed at me on how to wire it... And now I want to try and do a hybrid wiring design.
I'm going to be using four 4.5v high intensity white LEDs and one 3.3v (?) RGB cycling LED in this controller, and I only have a few options for powering them. In an "always on (when device is on)" configuration, I can wire them to a 2.7v power source, which would mean I won't be using a resistor. Of course, that means the LEDs would be kinda dim.. The white ones will be backlighting the ABXY buttons, and the RGB will be backlighting the Xbox 360 guide button dome. I need a transistor for this because the 2.7v is not a switched power source. I'm using an NPN and a 2k OHM resistor between it's base pin and a lower, switched power source on the controller's board. Since the base would be getting low power, electricity would flow free from the collector to the emitter, powering my LEDs and making my 2.7v source "switched". Now because the LEDs would be dim, I was told it may be better to try wiring to the 5v pin of the Play and Charge connector (ie. LEDs would only be on when P&C cable is connected). This sparked an idea. I very much still want the LEDs to be lit when not connected to the P&C, no matter how dim they are.. But a 5v source would make the LEDs really shine. I use the P&C cable on occasion, so I thought I could wire it both ways in the same controller, then switch between the power sources with a small SPDT switch. ...But if transistors can technically be "automatic" switches, couldn't I wire it in a way where when the P&C cable is plugged in, the transistors automatically do the switch for me? There's another power source on the P&C cable, and it's 3.3v. I started thinking maybe I could use that source with a PNP transistor to cut the connection of the 2.7v source from way above to form my second "auto switch". The biggest problem is I'm new to the concept of transistors and do not understand now a PNP transistor would need to be wired to acomplish this (or if it even can! but reading stuff on how these types of transistors work leads me to believe it might be possible?). If anyone can shed some light on this for me, it would be GREATLY appreciated. All helpful posts will be rewarded. If you require a few visuals, I'd be happy to provide them.
__________________
i <3 my 何か
timxirish's OCN Blog on philosophy and technology ![]() I'm selling heavenly sketches.. A world out of my mind. Ready to explode in purity.. To fill the holes inside. An ever moving stream with glowing rays of light. Emotions tied to past lies.. and I know I should let go. Socket 939 Club [Project] Hollow (CM Mystique 632S) Mod Your Merc Stealth! ![]()
|
|||||||||||||
|
|
|
|
|
#3 (permalink) | |||||||||||||
|
Audiophile
![]() |
I'll provide visuals in that case. Here is the original schematic for wiring switched LEDs in a wireless controller:
![]() (image by g0t m4xx 21) Here are the points in question: ![]() (image by RDC) Red is 2v switched, and is what would be wired to the base of the transistor seen in the schematic above. g0t m4xx uses a 1k ohm resistor there, but apparently a 2k ohm works just as well. Black pin is ground. ![]() (image by RDC) The black wire here goes to the collector on the first NPN transistor, and the red wire there is attached to the 2.7v source I've spoken of. Installing the NPN transistor this way will technically make that 2.7v source switched (ie. the LEDs I plan on wiring will only be on when the controller is. without the transistor, the LEDs would remain on even when the controller is off-- the 2.7v source taps into the rechargable battery pack). ![]() (image by RDC) This is the other spot I've considered for wiring LEDs-- The Play and Charge cable connector. The 5v and 3.3v are only active when the cable is connected to the controller (to charge the battery pack). What I want to do (and am led to believe it may be possible to pull off) is use more transistors to switch from the 2.7v source to the 5v source when the Play and Charge cable is connected. I could certainly use a SPDT switch to change between them, but if it's possible to use transistors to auto switch power sources when the cable is connected, I would prefer that route. Thanks for your help, and sorry for my first explanation.
__________________
i <3 my 何か
timxirish's OCN Blog on philosophy and technology ![]() I'm selling heavenly sketches.. A world out of my mind. Ready to explode in purity.. To fill the holes inside. An ever moving stream with glowing rays of light. Emotions tied to past lies.. and I know I should let go. Socket 939 Club [Project] Hollow (CM Mystique 632S) Mod Your Merc Stealth! ![]()
|
|||||||||||||
|
|
|
|
|
#4 (permalink) | |||||||||||||
|
Resident EI
![]() |
I'd suggest using a relay to auto-switch between power sources rather than trying to do so with a transistor.
__________________
Project RAD GT SR-1/2 radobases for Crazy Carl's Antec 900 mod Modding/electronics/hardware supply thread | Hosted PC Component CAD Models
|
|||||||||||||
|
|
|
|
#5 (permalink) | |||||||||||||
|
Audiophile
![]() |
Something like this?
That's the smallest one I can find, and most of the controller's insides are cramped.. So I'm uncertain as to if it would fit. Another concern is that particular one says it's 18mA... Would this be a problem if my LEDs are 20mA?
__________________
i <3 my 何か
timxirish's OCN Blog on philosophy and technology ![]() I'm selling heavenly sketches.. A world out of my mind. Ready to explode in purity.. To fill the holes inside. An ever moving stream with glowing rays of light. Emotions tied to past lies.. and I know I should let go. Socket 939 Club [Project] Hollow (CM Mystique 632S) Mod Your Merc Stealth! ![]()
|
|||||||||||||
|
|
|
|
|
#6 (permalink) | |||||||||||
|
IBEW Local 369
![]() |
It would be kind of cool to use an illuminated Toggle switch... make it a mechanical choice of Power sources.
For that matter could you find a really small CT and wire it to the 2.7v source to make it produce 5v output?
__________________
My BIOS Settings for EP45-UD3P/E8400
|
|||||||||||
|
|
|
|
#7 (permalink) | ||||||||||||||
|
Resident EI
![]() |
Quote:
Basically you'd connect the coil across the control voltage (to ground) and then connect the NO to the external power, the NC to the internal power source, and the Common would provide the power to your LED circuit.
__________________
Project RAD GT SR-1/2 radobases for Crazy Carl's Antec 900 mod Modding/electronics/hardware supply thread | Hosted PC Component CAD Models
|
||||||||||||||
|
|
|
|
#9 (permalink) | |||||||||||||||
|
Audiophile
![]() |
Quote:
Well unfortunately space would still be a bit of an issue.. I have a lot of respect for Microsoft's design on their controller (still to this day is the most comfortable one I've ever held), but the sleek and compact package really took a toll on what you can manage on the inside. If I were to use the relay I linked above or use an illuminated toggle switch, I would likely have to remove the rumble motors or the D-pad.. Neither of which i'm too fond of doing right now.. but i'd consider it for an auto switch setup. Possible switch locations (should I give up and go to a mechanical SPDT switch) would be on the top or bottom of the controller. Here are some more pictures, this time taken by myself. It'll give you all an idea of what I'm working with. ![]() ![]() ![]() ![]() ![]() Quote:
Do you have any websites in mind that may have a small one with 5v coil voltage rating? It's no problem, but thanks regardless. Is there a specific reason in mind why a relay would be bad?
__________________
i <3 my 何か
timxirish's OCN Blog on philosophy and technology ![]() I'm selling heavenly sketches.. A world out of my mind. Ready to explode in purity.. To fill the holes inside. An ever moving stream with glowing rays of light. Emotions tied to past lies.. and I know I should let go. Socket 939 Club [Project] Hollow (CM Mystique 632S) Mod Your Merc Stealth! ![]()
Last edited by timxirish : 08-15-09 at 10:31 PM |
|||||||||||||||
|
|
|
![]() |
| Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
| Thread Tools | |
|
|