Skip to content
  • MySensors
  • OpenHardware.io
  • Categories
  • Recent
  • Tags
  • Popular
Skins
  • Light
  • Brite
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Brand Logo
  1. Home
  2. Hardware
  3. Incorrect lighting of ws2811b led strips. Wemos D1 Arduino controlled

Incorrect lighting of ws2811b led strips. Wemos D1 Arduino controlled

Scheduled Pinned Locked Moved Hardware
ws2811bled striparduinowemos d1 mini
4 Posts 2 Posters 29 Views 2 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • B Offline
    B Offline
    Beeblebrox666
    wrote on last edited by mfalkvidd
    #1

    I have built this project: https://www.youtube.com/watch?v=duiAbLsXZSE It is a Lithophane lamp, 3D printed. A friend has this built and it works perfectly. The one I built was using the exact same links to buy all the parts. The function is to light up the lamp remotely using a phone app which can change the colors from all on white or any color picked from a color selector. Also a slider to change the stepper motor speed. The led strip in my friends lamp have all the leds light up exactly the same. My led strips light up with a repeating by 3 sequence. If my friends controller is connected to my led strip it also lights up wrong. I have not hooked my controller to his light strip yet. But logic dictates the problem is not my controller because his controller gives the same result with my lights. Are these defective or the wrong type? They were supposed to be ws2811b 5V strips. The second problem with the strips (I purchased two) was that only the first 45 of 60 led's lit up. The last 15 were not lit, voltage at the end of the strip was 5V.

    Here is the sketch code:

    #include <Adafruit_NeoPixel.h>
    #include <SPI.h>
    #include <BlynkSimpleEsp8266.h>
    #include <ESP8266WiFi.h>
    #include <Stepper.h>
    
    #define PIN D2
    #define NUMPIXELS 60
    #define BLYNK_PRINT Serial
    
    int motorSpeed; 
    int motorDirection; 
    
    const int stepsPerRevolution = 4096; 
    
    BlynkTimer timer; 
    Stepper myStepper(stepsPerRevolution, 14, 12, 13, 15); 
    Adafruit_NeoPixel pixels = Adafruit_NeoPixel(NUMPIXELS, PIN, NEO_GRB + NEO_KHZ800);
    
    void stepperControl() {
      if (motorSpeed > 0) {
        if (motorDirection == 0) {  // Rotate Clockwise
          myStepper.step(stepsPerRevolution / 50);
        } else {  // Rotate CounterClockwise
          myStepper.step(-stepsPerRevolution / 50);
        }
      }
    }
    
    void setup()
    {
      Serial.begin(9600);
      timer.setInterval(1, stepperControl);
      Blynk.begin("H9uwVJelnjeAEpjfIhNKe3VdwCb3ERZO", "SilentRunning", "Spectre972zpr4");
      pixels.begin();
      pixels.setBrightness(55);
    }
    
    void loop()
    {
      Blynk.run();
      timer.run();
    }
    
    
    
    BLYNK_WRITE(V0)
    {
      motorSpeed = param.asInt();
      myStepper.setSpeed(motorSpeed);
    }
    
    
    BLYNK_WRITE(V2)
    {
    
      int R = param[0].asInt();
      int G = param[1].asInt();
      int B = param[2].asInt();
      Serial.println(R);
      Serial.println(G);
      Serial.println(B);
      for (int i = 0; i < NUMPIXELS; i++) {
    
        pixels.setPixelColor(i, pixels.Color(R, G, B));
    
        pixels.show();
      }
    }
    

    LED Strip.jpg Lamp.jpg Blynk App.png

    mfalkviddM 1 Reply Last reply
    0
    • B Beeblebrox666

      I have built this project: https://www.youtube.com/watch?v=duiAbLsXZSE It is a Lithophane lamp, 3D printed. A friend has this built and it works perfectly. The one I built was using the exact same links to buy all the parts. The function is to light up the lamp remotely using a phone app which can change the colors from all on white or any color picked from a color selector. Also a slider to change the stepper motor speed. The led strip in my friends lamp have all the leds light up exactly the same. My led strips light up with a repeating by 3 sequence. If my friends controller is connected to my led strip it also lights up wrong. I have not hooked my controller to his light strip yet. But logic dictates the problem is not my controller because his controller gives the same result with my lights. Are these defective or the wrong type? They were supposed to be ws2811b 5V strips. The second problem with the strips (I purchased two) was that only the first 45 of 60 led's lit up. The last 15 were not lit, voltage at the end of the strip was 5V.

      Here is the sketch code:

      #include <Adafruit_NeoPixel.h>
      #include <SPI.h>
      #include <BlynkSimpleEsp8266.h>
      #include <ESP8266WiFi.h>
      #include <Stepper.h>
      
      #define PIN D2
      #define NUMPIXELS 60
      #define BLYNK_PRINT Serial
      
      int motorSpeed; 
      int motorDirection; 
      
      const int stepsPerRevolution = 4096; 
      
      BlynkTimer timer; 
      Stepper myStepper(stepsPerRevolution, 14, 12, 13, 15); 
      Adafruit_NeoPixel pixels = Adafruit_NeoPixel(NUMPIXELS, PIN, NEO_GRB + NEO_KHZ800);
      
      void stepperControl() {
        if (motorSpeed > 0) {
          if (motorDirection == 0) {  // Rotate Clockwise
            myStepper.step(stepsPerRevolution / 50);
          } else {  // Rotate CounterClockwise
            myStepper.step(-stepsPerRevolution / 50);
          }
        }
      }
      
      void setup()
      {
        Serial.begin(9600);
        timer.setInterval(1, stepperControl);
        Blynk.begin("H9uwVJelnjeAEpjfIhNKe3VdwCb3ERZO", "SilentRunning", "Spectre972zpr4");
        pixels.begin();
        pixels.setBrightness(55);
      }
      
      void loop()
      {
        Blynk.run();
        timer.run();
      }
      
      
      
      BLYNK_WRITE(V0)
      {
        motorSpeed = param.asInt();
        myStepper.setSpeed(motorSpeed);
      }
      
      
      BLYNK_WRITE(V2)
      {
      
        int R = param[0].asInt();
        int G = param[1].asInt();
        int B = param[2].asInt();
        Serial.println(R);
        Serial.println(G);
        Serial.println(B);
        for (int i = 0; i < NUMPIXELS; i++) {
      
          pixels.setPixelColor(i, pixels.Color(R, G, B));
      
          pixels.show();
        }
      }
      

      LED Strip.jpg Lamp.jpg Blynk App.png

      mfalkviddM Online
      mfalkviddM Online
      mfalkvidd
      Mod
      wrote on last edited by
      #2

      @Beeblebrox666 good work on isolating the problem.

      There are led strips that light upp three and three. I have one myself (purchased by mistake)

      It is also known that sellers on Ebay and Ali send different stuff for the same product. This happens from time to time.

      So the simple explanation is that the seller sent you a different type of strip.

      B 1 Reply Last reply
      0
      • mfalkviddM mfalkvidd

        @Beeblebrox666 good work on isolating the problem.

        There are led strips that light upp three and three. I have one myself (purchased by mistake)

        It is also known that sellers on Ebay and Ali send different stuff for the same product. This happens from time to time.

        So the simple explanation is that the seller sent you a different type of strip.

        B Offline
        B Offline
        Beeblebrox666
        wrote on last edited by
        #3

        @mfalkvidd said in Incorrect lighting of ws2811b led strips. Wemos D1 Arduino controlled:

        @Beeblebrox666 good work on isolating the problem.

        There are led strips that light upp three and three. I have one myself (purchased by mistake)

        It is also known that sellers on Ebay and Ali send different stuff for the same product. This happens from time to time.

        So the simple explanation is that the seller sent you a different type of strip.

        @mfalkvidd Thanks! This is the first project I had ever attempted with these components. It would be nice if the led strips themselves were printed with a code indicating type, Mine look identical to those my friend used with one exception, mine had wired plugs on both ends (One male, one female) If you have any info on how to use the 3 x 3 or whatever they are called, let me know... Again Thanks!

        mfalkviddM 1 Reply Last reply
        1
        • B Beeblebrox666

          @mfalkvidd said in Incorrect lighting of ws2811b led strips. Wemos D1 Arduino controlled:

          @Beeblebrox666 good work on isolating the problem.

          There are led strips that light upp three and three. I have one myself (purchased by mistake)

          It is also known that sellers on Ebay and Ali send different stuff for the same product. This happens from time to time.

          So the simple explanation is that the seller sent you a different type of strip.

          @mfalkvidd Thanks! This is the first project I had ever attempted with these components. It would be nice if the led strips themselves were printed with a code indicating type, Mine look identical to those my friend used with one exception, mine had wired plugs on both ends (One male, one female) If you have any info on how to use the 3 x 3 or whatever they are called, let me know... Again Thanks!

          mfalkviddM Online
          mfalkviddM Online
          mfalkvidd
          Mod
          wrote on last edited by
          #4

          @Beeblebrox666 you can use them just like any other strip, with the limitation that not all leds can be controlled individually.

          1 Reply Last reply
          0
          Reply
          • Reply as topic
          Log in to reply
          • Oldest to Newest
          • Newest to Oldest
          • Most Votes


          15

          Online

          11.7k

          Users

          11.2k

          Topics

          113.1k

          Posts


          Copyright 2025 TBD   |   Forum Guidelines   |   Privacy Policy   |   Terms of Service
          • Login

          • Don't have an account? Register

          • Login or register to search.
          • First post
            Last post
          0
          • MySensors
          • OpenHardware.io
          • Categories
          • Recent
          • Tags
          • Popular