Hello I am the type of person who has no idea about electronics (not my field) and I am trying to set up lighting in my car. I have an ARDX that I used for a class and I am trying to get it to control the lights that I will install in my car to flicker like in Tron uprising then stay on. Problem to start is the light flashes 2-3 times before running the code and that totally ruins everything. Does anyone know of how I can hook up and have the arduino power the led's or el wire possibly and make it flicker when powered on? I would appreciate the help otherwise I'm out of luck . Thanks
The usual: post your code.
I just used the basic flashing led code and played with it a bit. Nothing really of my doing that wasn't from the tutorial.
int ledPin = 13; // LED connected to digital pin 13
void setup() {
// initialize the digital pin as an output:
pinMode(ledPin, OUTPUT);
digitalWrite(ledPin, HIGH); // set the LED on
delay(100); // wait for a second
digitalWrite(ledPin, LOW); // set the LED off
delay(100); // wait for a second
digitalWrite(ledPin, HIGH); // set the LED off
delay(100); // wait for a second
digitalWrite(ledPin, LOW); // set the LED off
delay(400); // wait for a second
}
void loop()
{
digitalWrite(ledPin, HIGH);
}
So if you don't want the initial flashing, don't use pin 13.
Exactly. Whilst those tutorials are nice, you picked the one pin which flashes when you power the device on. The others don't.
Ah okay thanks. This is what happens when I try doing things like this haha This should get me a little further on my project!