Remote Controlled RGB Desk Light

by snibo in Circuits > Arduino

156 Views, 0 Favorites, 0 Comments

Remote Controlled RGB Desk Light

Base v3.png
IMG20210622001533.jpg
IMG20210622001557.jpg

Today we are making a very simple RGB desk light that you can control from your cell phone. The light is designed to allow for seasonal attachments to celebrate or draw attention to whatever is going on in your life at the moment!

Supplies

3D Printer

White or Translucent Filament

Adafruit Circuit Playground Bluefruit

Micro USB Cable

Sandpaper - Optional

Code

To allow the Circuit Playground to interface with the app, later on, we need to upload a bit of code.

The files above both need to be in the same folder when they are compiled.

In a nutshell, the code just reads in the day sent from the application and parses out the numbers representing the red, green and blue colour channels. It then sets all the pixels to be the corresponding colour. If you were to select something other than the colour picker option in the app, the device would not respond.

This could easily be upgraded, add more precise controls on an individual LED level or add preset colour sequences for added fun!

Note: If your Circuit Playground is not yet set up, make sure to follow the Getting Started Guide on the Adafruit website before trying to et anything running on it:

Getting Started with the Adafruit Circuit Playground Bluefruit

The App

Screenshot_2021-06-22-00-16-43-96_bec55b7953d4d219825de96c0729401c.jpg
Screenshot_2021-06-22-00-16-51-59_bec55b7953d4d219825de96c0729401c.jpg
Screenshot_2021-06-22-00-16-54-99_bec55b7953d4d219825de96c0729401c.jpg
IMG20210622001741.jpg
IMG20210622001807.jpg
IMG20210622001757.jpg
Screenshot_2021-06-22-00-18-13-53_bec55b7953d4d219825de96c0729401c.jpg

Rather than trying to build an app ourselves from scratch, we are going to make use of the graciously provided Bluefruit Connect App available on Android and IOS.

Once you are in the app, make sure your Bluefruit has the code installed and search for devices.

You should find one labelled Bluefruit.

From there select "Controller" and then "Color Picker"

Pick a colour here and press the select button to see your Bluefruit light up to your selection!

(Hint: If you ever want to turn the light out simply unplug the device or set the colour to black)

Customization and 3D Printing

Base v3.png
IMG20210622001736.jpg

We designed a simple cover to prevent exposing the internals of the light and give a bit of diffusion. Using the plus-shaped hole at the top you can attach anything you want to get in the festive spirit. Model your name and have it light up or check out the Christmas Tree and Valentine's Heart we made. Anything is possible!

(Hint: If you want to make your own attachments you can use acrylic for better light dispersal)

(Hint Hint: The plus is symmetric! It's made from a pair of 1mm by 5mm rectangles with a common centre. Go nuts!)