Pixel Smart Lamp

7,726

152

16

Introduction: Pixel Smart Lamp

This is a project I made for a smart lamp controled by Bluetooth with an Android App developed on Android Studio.

Pixel's main goal is to display beatiful lights. It's fireplace lightmode, for example, let's you see how a single-pixel fireplace might look like. Also the rainbow mode shows how a lot of gradients are "naturally" formed by the leds.

Pixel's eletronics are an Arduino Nano and 10 addressable LEDs ws2813. It also has a display showing the time, and a buzzer so you can set up an alarm.

It's body is made with MDF (laser-cut) and acrylic.

Github for .apk, arduino files, app files.

https://github.com/danielwilberger/PixelSmartLamp

EDIT: uploaded the cutting sheets for the MDF part

Supplies

  • Arduino nano;
  • Bluetooth module HC-05
  • Real Time Clock module;
  • 4-digits LED display;
  • 10 x Addressable LEDs ws2812b
  • Potentiometer;
  • 4 x Buttons;
  • Buzzer;
  • 5V-2amp font.

Step 1: Setting Up Eletronics

My first step, after getting the eletronics delivered, was assembling all of it on a protoboard.

This way, I could test it and begin programming the Arduino.

I had to:

  • Solder the leds;
  • Assemble all devices on protoboard;
  • Assemble the 10 addressable leds (two for each side of the cube, minus the bottom);
  • Begin programming.

Before getting the acrylic cube for the final display, I tested it on my mother's plastic bowl.

Step 2: Programming

My next step was programming. First, the arduino with all the funcionalities I first imagined for Pixel:

  • Display current time on clock;
  • Set up alarm for waking up (or a timer);
  • Display several lightmodes, from a simple white lamp to a rainbow show or a fireplace. For this part, several examples on FastLED library for Arduino were very helpful.

After completing it, I had a fully controllable lamp, using analog buttons and the potentiometer. So, the next step was setting up the bluetooth connection with an app I made just for Pixel. This was the part that took the longest. Before this project, I had no knowledge on Android programming, and didn't even know Java language. But I already knew Object-oriented programming, so I started a Android programming course, on Udemy.

You can check all you want on my Github. The link is above on the beginning of this arcticle.

Step 3: Designing Pixel

At this moment, I had imagined how Pixel would look like, but it was time to put it on the paper. Actually, on my PC. Since I would build Pixel on MDF wood and acrylic, I knew I had to draw a very precise project. So I chose a CAD software and started drawing Pixel.

This might look a bit much, but I already knew CAD drawing from my graduation course on Engeneering. And it was very helpful for getting the 2D drawings for laser cutting the MDF.

Step 4: Assembling the MDF

After drawing Pixel on CAD, I contacted a local company that made acrylic objects, like displays, trophies, etc. These places usually have laser cutting machines, so I asked if they could build my acrylic cube and cut the MDF.

So I got a 6mm MDF board, and sent them the cutting drawings.

I received them like in the picture above, and assembled all of it using cyanoacrylate glue.

Step 5: Soldering the Components

This was one of the most hard moments. I didn't have any experience soldering eletronics, so I watched some videos and tried it.

Step 6: Finishing the Wood Work.

At this moment, I had Pixel working as I've planned it. Some adjustments were necessary, like the setting up the LEDs brightness.

But the MDF finishing wasn't as I expected. So I got a wood sheet, witch is a very thin piece of wood. I covered all the MDF surface with if, after making sure the clock display could emit light through it.

Step 7: Enjoy the Lights!

After all this work, I had a lamp that was much brighter and better looking than I first imagined it.

You can check on the video above all of Pixel's light modes.

Please contact me if you have any doubts on your project. I will ble glad to help :)

Lighting Challenge

Participated in the
Lighting Challenge

Be the First to Share

    Recommendations

    • Fandom Contest

      Fandom Contest
    • First Time Author Contest

      First Time Author Contest
    • Backyard Contest

      Backyard Contest

    16 Comments

    0
    NoOne38
    NoOne38

    Question 3 months ago

    Hello,
    Great project! that I want to do (without Bluetooth for now)
    Unfortunately you have inhibited the 'TO SHOW CURRENT TIME:' part
    which makes it impossible to see the clock
    why please?

    cordially

    0
    daniel2dd
    daniel2dd

    Question 4 months ago on Step 4

    What measures did you use in both molds?

    0
    proyecelectronic
    proyecelectronic

    11 months ago on Step 7

    Good afternoon, how did you make the connection of the 4 buttons and the potentiometer?

    0
    wilberger.daniel
    wilberger.daniel

    Reply 11 months ago

    Hello.
    You can see on the circuit image on Step 1 there's one button connected to a digital pin and ground, and something similar for the potentiometer. I didn't add the four buttons on the image because I first planned having only one, and only later added the other 3

    0
    thelapisfox
    thelapisfox

    Question 11 months ago

    Very nice. I like this so much, I plan on making it myself. Unfortunately, after looking over all the images and files between here and github, I am noticing you have 4 buttons but the fritzing image only shows one. While I've been able to defer to the coding to figure out the other 3 buttons, it might be nice to add an updated fritzing image for those whom just wish to make this without arduino knowledge. Also, your fritzing file likes a 100 uf capacitor but your pictures show you using a 1000 uf capacitor. Just want to make sure of the actual value that was used.

    Anyways, thanks for uploading this project. It will be a nice addition to my rgb disco cabinet lol.

    0
    wilberger.daniel
    wilberger.daniel

    Answer 11 months ago

    Also, I'll be uploading an updated version for the app soon (maybe even put it on Play store)

    0
    wilberger.daniel
    wilberger.daniel

    Answer 11 months ago

    It's very nice to hear from someone that liked this project.
    Thanks for pointing out the mistakes, I'll correct them.

    About the capacitor, indeed I used a 1000uF, as recommended for the adressable LEDs.

    Now I'm curious about this rgb disco cabinet. Got any pics or links?

    0
    mikifox
    mikifox

    11 months ago

    Just wondering if you could provide your cut sheets so others can make it as well.

    0
    wilberger.daniel
    wilberger.daniel

    Reply 11 months ago

    Sure, I forgot them. I will edit my post and add them right now

    0
    mikifox
    mikifox

    Reply 11 months ago

    Thanks! One last thing, you should probably put your resistor and capacitor values some where.

    0
    wilberger.daniel
    wilberger.daniel

    Reply 11 months ago

    Thanks a lot Lucas

    0
    vedant04
    vedant04

    Tip 12 months ago

    Great Project! Here's a suggestion: Make it sound reactive so that it moves with song and tunes.

    0
    akshar1101
    akshar1101

    1 year ago

    nice one dude :)