86Views2Replies

Author Options:

12v double flash with Arduino? Answered

Hi,

I am in the middle of trying to figure out how to get my Arduino to power a 12V LED on a double flash for use in a model (USS Enterprise NCC 1701).

The trouble I have is the double flash only has a delay of 0.7 secs so I think if I used a relay it would not be quick enough to turn on/off?

The LED powers OK and runs from the Arduino on it's normal 5V, however it is not bright enough (I am going to hook them upto fibre optic so need the extra brightness).

Any ideas how I can do this, presumably putting 12V into the USB connector would fry my Arduino? I have never programmed or used an Arduino before, nor have I done much in the way of electronics for 25yrs, so I am a little rusty, any help would be appreciated.

To give you an idea of the speed I require, this is some of the program (within a loop).

digitalWrite(7, HIGH);   // turn the LED on (HIGH is the voltage level)
    delay(70);              // wait for 0.07 second
digitalWrite(7, LOW);    // turn the LED off by making the voltage LOW
    delay(70);              // wait for 0.07 second
digitalWrite(7, HIGH);   // turn the LED on (HIGH is the voltage level)
    delay(70);              // wait for 0.07 second 
digitalWrite(7, LOW);    // turn the LED off by making the voltage LOW
    delay(3000)         // loop after


Discussions

None
Downunder35m

4 years ago

Some time ago I got 3mm high brightness LED's off Ebay.
They had a max rating of 2.1V and 18mA - enrgy savers so to speak.
Those should work directly in small numbers but the best option would be to use a transistor on the Arduino output to "switch" the LED's.
This way you can use anything uo to the ma voltage of 15V for the Arduino and when using 12V the transistor makes sure the Arduino ouputs can't draw too much power.

None
steveastrouk

4 years ago

Which LED are you using ? What's its MAXIMUM permitted current ?

Your code shows a 70msec delay, your question talks about a 700msec delay ?