LED Lamp

I built an LED Lamp with 236 LEDs that could cycle through patterns and play music, with functions controlled through an app and various on-lamp controls.

Lamp Features

What it can do

Controls:

  1. Brightness
    • Available in app and via dial on base
  2. Volume
    • Available in app and via dial on base
  3. Switch patterns
    • Available in app and via "swipe stripe" on base
  4. USB Jack - Modify stored mp3 files
    • Stored mp3 files can be mapped to specific patterns
  5. Change patterns
    • Available in app only
    • Add/delete/reorder patterns
    • Change colors and settings of individual patterns
    • Create pattern sets
    • Send a pattern set to the lamp
  6. Change Lamp Settings (App Only)
    • Change between bluetooth, SD card, and dual audio modes
    • Play/pause music and patterns

Electronics

PCB

The lamp's electronics are controlled via a PCB, with the main component being the Particle Photon microcontroller.

The PCB was designed in Autodesk Eagle, and created using a CNC router and copper blanks. It contains a variety of controls, including multiplexers, a digital potentiometer, spectrum analyzer, levelshifter, music player, and several others. These provide the lamp its functions, aid in communication between components, and allow external components such as LEDs to work properly.

Code

C++

Javascript

The code that controls the lamp is written in C++. The different light patterns available are defined as functions, and more can easily be added in the future.

The app is written in ionic cordova/AngularJS. It uses the Particle API to send commands to the microcontroller, which processes them and carries out a function.

Gallery

Technical Documentation

Your browser does not have a PDF plugin

Download