Unable to light a RGB LED connected to WS2803

Hi

i am trying to light a RGB LED that is connected to the WS2803, but it just won't work.
I am using the WS2803Single Library (http://forum.arduino.cc/index.php?topic=89104.msg670527#msg670527) and i connected the pins like shown in the attached file.(Power supply is 5 Volts and 3A max)

The code is the following(adapted the example in the library to my pins):

#include "SPI.h"
#include "WS2803Single.h"

/*****************************************************************************
Example sketch for driving WS2803 chips running single LED pixels
*****************************************************************************/

// Choose which 2 pins you will use for output.
// Can be any valid output pins.
// The colors of the wires may be totally different so
// BE SURE TO CHECK YOUR PIXELS TO SEE WHICH WIRES TO USE!
//int dataPin = 2;
//int clockPin = 3;
int dataPin = 8;
int clockPin = 9;

int ledCount = 3;
// Don't forget to connect the ground wire to Arduino ground,
// and the +5V wire to a +5V supply


// Set the first variable to the NUMBER of pixels. 25 = 25 pixels in a row
WS2803Single strip = WS2803Single(ledCount,dataPin, clockPin);

// Optional: leave off pin numbers to use hardware SPI
// (pinout is then specific to each board and can't be changed)
//WS2803Single strip = WS2803Single(ledCount);

void setup() {
  strip.begin();
  Serial.begin(19200);
  //Serial.println(strip.bufferSize,DEC);
  // Update LED contents, to start they are all 'off'
  strip.show();
}


void loop() {
  //--- light up all LEDs one at a time
  for (int i = 0  ;i < ledCount ; i++){
    if (i > 0){
        strip.setPixelColor(i-1,0);
    } else {
        strip.setPixelColor(ledCount-1,0);
    }
    strip.setPixelColor(i,255);
    strip.show();
    delay(100);
 } 

  // Fade up the final LED
 for (int j = 0  ;j < 255 ; j++){
    strip.setPixelColor(ledCount-1,j);
   strip.show();
   delay(500);
 }
 delay(200);
}

I also tried searching the forum, but i couldn't find anything. The most promissing thing i found was this: Arduino/Teensy: LedPWM-Driver WS2803 Problem - Mikrocontroller.net

Does anyone have expierence on how to wire this thing up, so i can light it up?
Thanks for helping!

In your diagram you need to connect the ground on the arduino to the ground on the WS2803 chip.

Hi i think this is one step closer to the solution, but it is still not working correctly.

Now the RGB Led is lighting up(verrry dim, and only green and blue are lit up), but it is far from the maximum brightness of this LED.
Any ideas? Can i really use any pin i want to? i am currently using 9(pwm) for clock and 8 for the data.

I added a picture of the current curcuit. The blue looks a lot brighter on the picture than it is in real life :wink:

Can i really use any pin i want to?

I have just looked at the code in the library and basically no you can't use any pins because the library uses the SPI interface and those only work on the specific pins on a processor. So you have to use 11 for the data and 13 for the clock.

Well i am using the constructor that take the pin number as parameter.
Nevertheless: i tried it using pin 13 and 11, but it did not work either. Furthermore: Green and blue are not lighting up any longer....

OK, forget everything I said...
Seems like my breadboard was just a complete waste of money... i moved the ws2803 a little bit around on the breadboard and connected everything as shown in the first image+the connection between ground of the arduino and my external power supply. Now it is bright as hell and shows different colors.(btw: i am using pin 8 and 9 instead of 11 and 13)

thx for helping me!

I got a follow up question: I am daisy chaining the ws2803 chips(10 in a row) and on the later chips, the leds are flickering very much. so i looked it up and I found out, that i should add a capacitor. Can someone please check out the attached image and tell me if the place of the capacity is correct?

Thanks!

Yes it is in the right place. You should use a 0.1 ceramic capacitor not any other type.
If that does not cure it then add a 47uF to 100uF across the first one.
Here is why:-
http://www.thebox.myzen.co.uk/Tutorial/De-coupling.html

yay thanks so much. now it's one of the few days in my life, where i am actually waiting for the weekend to end, so i can buy the capacitors :wink: