Skip to content

WS2811 chipset and Arduino Uno problem #10

@performanc3

Description

@performanc3

Hi Aaron ,

I'm trying to scrolling some words but when i upload the code ; code does not show properly on my matrix . LEDs are working randomly , examples of matrixs are not working same problem.
Arduino gnd & supply gnd common by the way , using step down module for Arduino 5v.
I suspected of matrix type any do u have any idea ? Where could i have done wrong ?

Thank you for your concern
Best Regards,

Matrix Properties : 9hx30w total 270 rgb5050
Matrix Connections: LED_PIN -- resistor-- Din---Do--Din --Do
Chipset: Ws2811 12v Data Gnd
Supply: 12v 16,5 Amp Smps

Here is sample code :

#include <FastLED.h>

#include <LEDMatrix.h>
#include <LEDText.h>
#include <FontMatrise.h>

#define LED_PIN 6
#define COLOR_ORDER GRB
#define CHIPSET WS2811

#define MATRIX_WIDTH 30
#define MATRIX_HEIGHT 9
#define MATRIX_TYPE HORIZONTAL_ZIGZAG_MATRIX // There might be a problem ???

cLEDMatrix<MATRIX_WIDTH, MATRIX_HEIGHT, MATRIX_TYPE> leds;

cLEDText ScrollingMsg;

const unsigned char TxtDemo[] = { EFFECT_SCROLL_LEFT "HELP "};

void setup()
{
FastLED.addLeds<CHIPSET, LED_PIN, COLOR_ORDER>(leds[0], leds.Size());
FastLED.setBrightness(16);
FastLED.clear(true);
delay(500);
FastLED.showColor(CRGB::Red);
delay(1000);
FastLED.showColor(CRGB::Lime);
delay(1000);
FastLED.showColor(CRGB::Cyan);
delay(1000);
FastLED.showColor(CRGB::White);
delay(1000);
FastLED.show();

ScrollingMsg.SetFont(MatriseFontData);
ScrollingMsg.Init(&leds, leds.Width(), ScrollingMsg.FontHeight() + 1, 0, 0);
ScrollingMsg.SetText((unsigned char *)TxtDemo, sizeof(TxtDemo) - 1);
ScrollingMsg.SetTextColrOptions(COLR_RGB | COLR_SINGLE, 0xff, 0x00, 0xff);
}

void loop()
{
if (ScrollingMsg.UpdateText() == -1)
ScrollingMsg.SetText((unsigned char *)TxtDemo, sizeof(TxtDemo) - 1);
else
FastLED.show();
delay(10);
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions