RGB LED strip only glows red, will not show other colors

Hello all,

I'm trying to PWM my RGB LED strip. I have double checked my wiring and have tried different code from different projects but the strip will only glow in red.

I'm using N channel Mosfet 60v 30 amp

sketch_apr13e.ino (1.04 KB)

My iPad will not read ino files.
Try using regular leds ( with series resistors ) to see what happens.

Larry, get textastic if you want to be able to open up ino files (and other programming files) from your iPad ...

@Qdeathstar
Thank you!
How do you download the file from a forum post into this app?

on my iPad, it automatically asks me how I would like to open the file after clicking on the .ino file at the bottom of the post

http://s24.postimg.org/p6r3vhzth/image.jpg

@Qdeathstar
Thank you I just purchased it.
Works great.

+1

I've let it run continuously and all it does it PWM red. The weird thing is that I tried a different code and it the same thing. I thought it had to be my wiring, but everything looks right. Faulty LED strip?

if you change the wiring so that the wire coming from the arduino for the "red" goes to the blue on the led strip, does the strip only light up blue?

you could also try writing each pin high with a delay to see if the arduino is sending the right signals to the strip...

I ran this and with same wiring it still only lights up red

#define GREENPIN 6

void setup() 
{
 pinMode(GREENPIN, OUTPUT);
  }

void loop() 
{
 analogWrite(GREENPIN, HIGH);
  }

swap the red and green wires from the led strip and see if you get green light

This has to be a faulty LED. I tried swapping out the red and green wires. I haven't been able to do anything to get this strip to light any color besides red.

What sort of strip is that, is it a 5v strip (I only ask because a lot of the 4 wire RGB led strips I have seen are 12v strips)? If is a higher voltage strip you will have issues lighting blue or green off 5v supply as they seem to have higher requirements. I run some RGB LEDs off a battery, I can always tell when the battery is low because i lose blue altogether and then green starts to go, red just keeps on working. If it is a 5v strip maybe check that your 5v output is truly 5v before scrapping the strip.