How can I turn LED lights?

Hello all,

This is for a project I am making. I will be making a traffic light and I want the lights to alternate between them. It will be kinda small so it will be using LED lights. I heard about resistors, but I need help on how to make and which ones to use. Please tell me how to make with detail.

Thanks a lot


led fluorescent lamps
recessed led ceiling lights
led strip lights

This?

Hey Crossroads, i know this is kind of thread jacking but im not sure where to post my first question. Im new to the forums and arduino but im trying to make a series of 6 leds that can be programmed for 2 modes using a pushbutton. Could you help me out with the program and diagram that you think would work? Anyone elses help is greatly appriciated, thanks.

Sure, use the Debounce to read when the button is pressed.
Each time it is pressed change modes:

if (button_pressed){
mode = 1-mode; // so mode will go 0-1-0-1-0-1...
then switch between modes
switch(mode){
case 0:
//do stuff
break;
case 1:
// do  stuff
break;
}

if you want you can read the button while within each mode also to switch to the other mode