Pixel Smart Lamp

by wilberger.daniel in Circuits > Arduino

9806 Views, 172 Favorites, 0 Comments

Pixel Smart Lamp

Pixel Smart Lamp
20200725_203909.jpg

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.

Setting Up Eletronics

luminaria_bb.png
20200709_213557.jpg
20200711_153851.jpg

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.

Programming

Capturar.PNG
cap2.PNG

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.

Designing Pixel

vista1.png
cap3.PNG
cap4.PNG

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.

Assembling the MDF

20200714_165449.jpg
20200714_173224.jpg
20200714_173243.jpg

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.

Soldering the Components

cap5.PNG

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

Finishing the Wood Work.

20200724_152909.jpg
20200724_152650.jpg

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.

Enjoy the Lights!

cap6.png
20200725_203950.jpg
20200725_203950.png
cap7.png

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 :)