I have 3 LEDs powered by an Arduino; each LED has its own flash rate.
Now I want it to be powered by an external 12V power source and still have the flashing function of the Arduino?
I have 3 LEDs powered by an Arduino; each LED has its own flash rate.
Now I want it to be powered by an external 12V power source and still have the flashing function of the Arduino?
Use a N-channel MOSFET, wire load to drain pin, source to (common) ground, and place a 1 kilo-ohm resistor in series with your arduino pins. Bear in mind that MOSFETs respond to voltage, not milliamps, on the gate - get one that responds well to 5V logic.
Or you could use a relay. Many small ones available for a couple of dollars.
As has been mentioned, you could use an N Channel MOSFET, but preferably look for a Logic Level MOSFET. These are capable of being turned on by lower voltage levels such as on the pins of an Arduino.
Having said that, i have used two non logic level MOSFEt's in Arduino projects successfully. They are the IRF3205 and IRF 520 - both are readily availalable and will work OK with the Arduino output pins for your low-current-driving-an-LED requirement.