GithubHelp home page GithubHelp logo

led-cct-controller's Introduction

LED CCT Controller

This repository holds design files and code related to my ESP32 based LED CCT Controlled.

Problem Statement

Light is an important part of any living situation. One factor that is often overlooked is Color Temperature, measured in Kelvin. A typical range is from 2700K-5000K, with lower numbers being redder and higher numbers being 'brighter' and bluer.

I appreciate the role that f.lux has on my computer screen color, and I have attempted to emulate similar room lighting using a Phillips Wake up Light. However, I would like to have control over the lights being on/off and their color temperature throughout the day automatically.

The plan

To accomplish this, I set out to design a system that could be incorporated in my Home Assistant Setup, so that I can easily integrate it into my location based automations and even incorporate my digital calendar (i.e. if I am working at night, I want the color temperature to mirror my schedule).

I wanted to combine an ESP32 using ESPHome (Specifically the Cool White + Warm White Light platform), combined with a white tunable ("CCT") LED strip that I can customize and place around the house.

Parts

ESP32

For this project, I have been using an DOIT ESP32 DEVKIT v1 as the base.

For future iterations, I may plan to just use the ESP32 module (i.e. without the development board), e.g. ESP-WROOM-32, but this will require me to be able to solder/have on hand many SMD Resistors and capacitors.

LED strips

For the first iteration, I am using the 5m Tunable White LED Strip Lights, 12V from superbrightleds.com. It is definitely a bit on the pricey side, and I plan to source cheaper parts from aliexpress.com, but I wanted to have a strip that I could rely on to work to minimize troubleshooting steps.

Power Supply

I chose 12V LED strips intentionally (over 5V LEDs that are available) as I want to be able to power long runs of LEDs without significant voltage drop/heat dissipation concerns. It also allows me to buy a slightly cheaper power supply (fewer amps required). The LED strip above has a rating of 13.8 Watts/meter. As I bought 5 meters of LEDs, this works out to 5.75 amps of current at max load.

I am only planning on (at least initially) using the LED strips for a maximum of 2-3 feet, for 1 amp. With that in mind, I picked up a 12V, 1 amp DC power supply.

Stepping down to 3.3V

The ESP32 runs on 3.3V, however. I could not be bothered to design an include a switching buck converter, so I opted to include a pre-made 3.3V output, up to 21V input Buck converter from adafruit that I can include with a 4 pin header.

Transistors

When choosing a transister, I went with one that can switch a high current (at least 1 amp) of 12V, and quick on/off time (so I can run PWM signals from the ESP32 at at least 1kHz). Based on some quick googling, I've narrowed down to two:

led-cct-controller's People

Contributors

pike00 avatar

Stargazers

 avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.