I have 6 IR LEDs that I want to run off a cigarette lighter outlet in a car. (High output infrared LED 5mm 1.2VDC 100mA 940nm)
Currently I have all six in series with a 100ohm 1w 5% resistor.
I am going to use the Arduino Uno as a timer. Output on Pin 2.
int led = 2;
void setup() {
pinMode(led, OUTPUT);
}
void loop() {
digitalWrite(led, HIGH);
delay(35);
delayMicroseconds(544);
digitalWrite(led, LOW);
delay(35);
delayMicroseconds(552);
}
My 6 leds are in the place of "M". But for some reason this is not working for me.
The leds are sometimes off, blink at the inncorrect freq, or just stay lit.