I am very new to the arduino, I have a little knowledge playing around with leds but am far from really knowing what I am doing. I want to build some flashing lights to go into my rc car, here is a link that I found
Hi, this is a very simple circuit that kinda looks light police car lights. Just connect the long leg of a red LED to the arduino on pin 13 and the other leg to the ground (GND) pin. Do the same with a blue LED but on pin 12. Then copy and paste this code to a sketch.
//Turns on two LEDs like police car lights.
int red = 13;
int blue = 12;
void setup() {
pinMode(red, OUTPUT);
pinMode(blue, OUTPUT);
}
void loop() {
digitalWrite(red, HIGH); //turns led on
delay(250); //waits
digitalWrite(red, LOW); //turns led off
digitalWrite(blue, HIGH);
delay(250);
digitalWrite(blue, LOW);
}
Here is the problem though, I am new to all of this, I am not sure what components to use, it needs to be small enough that I can fit/hide it in a rc car, also I want to run this off a 9v battery. I need to do this with 6 lights, spitting image of the video is what I need.
I dont want to buy a kit I want to learn how to build this, I also need long enough wires to reach different parts of the vehicle, basically just like the video.
brandoncook:
Here is the problem though, I am new to all of this, I am not sure what components to use
...
I want to learn how to build this
It's laudable that you want to learn everything, but trying to do it all from scratch on your first project isn't sensible. I suggest you buy a standard Arduino and wire up the appropriate number of LEDs. You'll need to write a sketch to make them light up and flash etc however you want. This is entirely suitable for a first project. Building your own protoboard Arduino, I'd suggest, isn't.
brandoncook:
I also need long enough wires to reach different parts of the vehicle, basically just like the video.
Do you understand that anywhere you can connect a LED, you can connect a pair of wires to a remote LED? Your objection here doesn't make any sense.