Main > Main Forum

I need some kind of switch . . . I think

Pages: (1/2) > >>

Justin Z:

I have a bit of a conundrum, you see.  I have an IPAC4 and Novagem buttons.

I want the player 1 and player 2 buttons to flash.  The IPAC has that functionality.

But Novagems require about 100mA at +5v, and the IPAC can only drive about 20mA without getting overloaded.

So what I think I need is to connect the Novagems to my +5v power source via a switch.  This switch should only be open if receiving current from the IPAC4 . . . follow me?  That way, I can use the IPAC4's relatively low amperage to tell the switch when it needs to be providing the main, higher amp power to the Novagem buttons.

I am not at all an expert when it comes to electrical wiring.  Can someone think of a way to make this work?  Does my idea even make any sense?

Thanks,

Justin


MonMotha:

So you want to have the lights ON when the signal from the IPAC is LOW (i.e. 0V)?  If so, you can use a PNP transistor or a PFET.  You can actually buy suitable ones (rated 1A+) from Radio Shack, believe it or not.

Connect the base of the transistor to your IPAC signal through a 250 to 300 ohm resistor, the emitter to 5V, and the collector to the high side of the lamp (other side grounded).

If you want it the other way, lamp on when the signal from the IPAC is high (i.e. 5V), you want a NPN transistor or NFET.  In this case, connect the base of the transistor to the IPAC via the resistor (again 250-300 ohms is about right), the emitter to ground, and the collector to the low side of the lamp (other side connected to power).

You can also use a relay for this, but they make noise, have limited lifespan, and require a diode to prevent inductive transients from damaging the output pin on the driver.

You can use any transistor whose Ic (collector current) is rated for the task. It's generally a good idea to overspec by a significant margin when possible - I usually go for at least a factor of 2.  Larger transistors are also in larger packages, which may be easier to handle.

Oh, I should point out that the NPN based solution is a bit more ideal.  There are some problems with the high-side switching if the micro's output does not fully reach 5V (which not all micros do).

polaris:

im no expert either but i think the answer youre looking for is on the pac drive page

third photo down

MonMotha:

He said it's only rated for 20mA.  Given how low that is, I assume that's per channel driver and not the 5V source.  20mA is about right for a high-drive micro output, which is probably all it is.

polaris:

i bow to those with superior knowledge and im tired so i may be getting confused.

he needs a relay then ? the pac drive would tell the relay to allow the power to come from the source to power the button light ?


edit, yes i am tired obviously as im looking at the pac drive not the ipac , sorry, but so far im standing by my relay answer

Pages: (1/2) > >>

Go to full version