DIY ceiling lamp

First of all, I really love Blynk. Makes everything so easy :thumbsup:
I’ve made a “little” ceiling lamp with Blynk, Particle Photon, 13m White LED Strip, 2x MOSFET’s and WS2812 LED’s although It isn’t completely finished ( had no 5V 4A power supply laying around ) I wanted to share this with you. :wink:
The main part consist of a 0,6m x 0,6m wooden panel where also the LED stripes are mounted.

If you have any suggestions what I also could add please tell me :v:


#include "neopixel/neopixel.h"
#include "blynk/blynk.h"

#define PIXEL_PIN D3
#define PIXEL_COUNT 64
#define PIXEL_TYPE WS2812B

Adafruit_NeoPixel strip = Adafruit_NeoPixel(PIXEL_COUNT, PIXEL_PIN, PIXEL_TYPE);

char auth[] = "Haha nice try";

void setup()
  pinMode(0, OUTPUT);
  pinMode(1, OUTPUT);
  analogWrite(0, 255);
  analogWrite(1, 255);

void loop()
    if (ModeBtnPressed()) {
        Blynk.notify("Mode button was pressed");

    analogWrite(0, param.asInt());

    analogWrite(1, param.asInt());

// Attach a ZeRGBa widget (mode: Merge) to the Virtual pin 21
    int r = param[0].asInt();
    int g = param[1].asInt();
    int b = param[2].asInt();
    if (r > 0 && g > 0 && b > 0) {

        strip.setPixelColor(29, r, g, b);
    } else {


  // Some example procedures showing how to display to the pixels:
  // Do not run more than 15 seconds of these, or the b/g tasks
  // will be blocked.

  //strip.setPixelColor(0, strip.Color(255, 0, 255));

  //colorWipe(strip.Color(255, 0, 0), 50); // Red

  //colorWipe(strip.Color(0, 255, 0), 50); // Green

  //colorWipe(strip.Color(0, 0, 255), 50); // Blue



  //colorAll(strip.Color(0, 255, 255), 50); // Cyan
void colorAll(uint32_t c, uint8_t wait) {
  uint16_t i;

  for(i=0; i<strip.numPixels(); i++) {
    strip.setPixelColor(i, c);

bool ModeBtnPressed() {
    if(millis() > 5000) {
        if(BUTTON_GetDebouncedTime(BUTTON1) >= 50) {
            return 1;
    return 0;

That’s awesome, dude! We want to see it in action now! :wink:

With @Pavel, show us the candy man!!

Have you considered adding opaque glass or plexi to diffuse the light some more? You can also tear down an old LCD monitor. There in you will find a special diffusor foil they use to get an even backlighting. It works wonders for LED’s :slight_smile:

1 Like

Haha I have filmed the whole production of this lamp so maybe I will make a YouTube video if I have enough time…
@Lichtsignaal That’s a really nice Idea but I wanted to put there a white fabric which is mounted nearby the corners of the lamp so it can hang down there pretty loose.
Made for today some progress :slight_smile:

1 Like

That looks awesome. I really like the idea with the fabric. I love to see how that would look.

1 Like