but doesn't seem to work.... I don't know if I wire it correctly..
Connect the Emitter to the positive of the LEDs series and negative to the ground
I don't know if I wire it correctly..
I connected the Collector to a 12V. Connect the Base with the output pin from the atmega with 1k Ohm. Connect the Emitter to the positive of the LEDs series and negative to the ground. When I used my multimeter to test the voltages that the Emitter is giving out, its only 4 - 5 V, not 12V...
QuoteConnect the Emitter to the positive of the LEDs series and negative to the groundThe 2n3904 is an NPN, isn't it?
QuoteI don't know if I wire it correctly..Neither do we without a drawing showing what you are trying. Keep in mind that a transistor cannot create voltage, it can only control it. If your LED string requires +12vdc then you will of course first require a 12vdc voltage source. The transistor can then be wired up to switch the +12vdc current flow on and off via the arduino output pin wired to the base of the transistor with a suitable series current limiting resistor.Lefty
Or can I use it as a switch instead of an amplifier? A switch to turn 12V on or off?
Here's a circuit that I think will work for your application:http://ruggedcircuits.com/html/circuit__28.html
The MOSFET pins 1, 2, 3.