Good evening Forum,
New to coding, writing code and building on boards. In the short time I've been working with Arduino I've been trying to get two single color LED strips with only a positive and negative connector to function like a regular LED.
Each individual strip will be controlled by a push button but once turned on one will be solid and the other will begin to blink in a sequence. This works with the two 3mm LEDs i've tested on but when I hooked up the LED strip the LED comes in very, very dim.
Currently the power is coming from my laptop, but I've also tried this on a 12v Talencell battery with the same results.
Im using pin ~9 and 8
and looking to have the LED at it's optimal brightness.
Is this even possible?
I'm using a Arduino Uno, Proto Shield and a single color LED strip with + and - connectors.
This is the code i've written:
int led = 12; //Red LED
int led2 = 11; //Yellow LED
int led3 = 10; //Green LED
int led4 = 9; //Red Light Bulb Switched (Blinking)
int led5 = 8; //Green Light Bulb Switched (Steady)
void setup() {
pinMode(led, OUTPUT); //Red LED
pinMode(led2, OUTPUT); //Yellow LED
pinMode(led3, OUTPUT); //Green LED
pinMode(led4, OUTPUT); //Red Light Bulb (Blinking)
pinMode(led5, OUTPUT); //Green Light Bulb (Steady)
}
void loop() {
digitalWrite(led, LOW); //Red LED OFF
delay(200);
digitalWrite(led, HIGH); //Red LED ON
delay(200);
digitalWrite(led, LOW); //RED LED OFF
delay(200);
digitalWrite(led2, LOW); //Yellow LED OFF
delay(200);
digitalWrite(led2, HIGH); //Yellow LED ON
delay(200);
digitalWrite(led2, LOW); //Yellow LED OFF
delay(200);
digitalWrite(led3, LOW); //Green LED OFF
delay(200);
digitalWrite(led3, HIGH); //Green LED ON
delay(200);
digitalWrite(led3, LOW); //Green LED OFF
delay(200);
digitalWrite(led, HIGH); //Red LED ON
digitalWrite(led2,HIGH); //Yellow LED ON
digitalWrite(led3,HIGH); //Green LED ON
delay(5000); //RYG LED ON for 5 seconds
digitalWrite(led, LOW); //Red LED OFF
digitalWrite(led2,LOW); //Yellow LED OFF
digitalWrite(led3,LOW); //Green LED OFF
delay(2000); //RYG LED OFF for two seconds
digitalWrite(led, HIGH); //Red LED ON
digitalWrite(led2,HIGH); //Yellow LED ON
digitalWrite(led3,HIGH); //Green LED ON
delay(100); //RYG LED ON for 10 seconds
digitalWrite(led, LOW); //Red LED OFF
digitalWrite(led2,LOW); //Yellow LED OFF
digitalWrite(led3,LOW); //Green LED OFF
delay(100); //RYG LED OFF for two seconds
digitalWrite(led, HIGH); //Red LED ON
digitalWrite(led2,HIGH); //Yellow LED ON
digitalWrite(led3,HIGH); //Green LED ON
delay(100); //RYG LED ON for 10 seconds
digitalWrite(led, LOW); //Red LED OFF
digitalWrite(led2,LOW); //Yellow LED OFF
digitalWrite(led3,LOW); //Green LED OFF
delay(100); //RYG LED OFF for two seconds
digitalWrite(led, HIGH); //Red LED ON
digitalWrite(led2,HIGH); //Yellow LED ON
digitalWrite(led3,HIGH); //Green LED ON
delay(100); //RYG LED ON for 10 seconds
digitalWrite(led, LOW); //Red LED OFF
digitalWrite(led2,LOW); //Yellow LED OFF
digitalWrite(led3,LOW); //Green LED OFF
delay(100); //RYG LED OFF for two seconds
digitalWrite(led, HIGH); //Red LED ON
digitalWrite(led2,HIGH); //Yellow LED ON
digitalWrite(led3,HIGH); //Green LED ON
delay(100); //RYG LED ON for 10 seconds
digitalWrite(led, LOW); //Red LED OFF
digitalWrite(led2,LOW); //Yellow LED OFF
digitalWrite(led3,LOW); //Green LED OFF
delay(100); //RYG LED OFF for two seconds
digitalWrite(led, LOW); //Red LED OFF
delay(500);
digitalWrite(led, HIGH); //Red LED ON
delay(500);
digitalWrite(led, LOW); //RED LED OFF
delay(500);
digitalWrite(led2, LOW); //Yellow LED OFF
delay(500);
digitalWrite(led2, HIGH); //Yellow LED ON
delay(500);
digitalWrite(led2, LOW); //Yellow LED OFF
delay(500);
digitalWrite(led3, LOW); //Green LED OFF
delay(500);
digitalWrite(led3, HIGH); //Green LED ON
delay(500);
digitalWrite(led3, LOW); //Green LED OFF
delay(500);
digitalWrite(led5, HIGH); //Green Light Bulb Switched (Steady)
delay(1000);
digitalWrite(led4,HIGH); //RED Led ON
delay(2000);
digitalWrite(led4,LOW); //RED Led OFF
delay(2000);
digitalWrite(led4,HIGH); //RED Led ON
delay(2000);
digitalWrite(led4,LOW); //RED Led OFF
delay(2000);
digitalWrite(led4,HIGH); //RED Led ON
delay(2000);
digitalWrite(led4,LOW); //RED Led OFF
delay(2000);
digitalWrite(led4,HIGH); //RED Led ON
delay(2000);
digitalWrite(led4,LOW); //RED Led OFF
delay(2000);
digitalWrite(led4,HIGH); //RED Led ON
delay(2000);
digitalWrite(led4,LOW); //RED Led OFF
delay(2000);
}