Giter VIP home page Giter VIP logo

dimmercontrol's People

Stargazers

 avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar

dimmercontrol's Issues

Last value stored

[Feature Request]
Add a possibility to use "last stored value" on the next ON command. This for the purpose to go back to the stored dimlevel next time.

Customized fade curve

[Feature Request]
Add the possibility to use a customized fade curve since a strict linear 0-255 [0-100%] is not represented in a good way for the human eyes.

A colleague of my has used this fade algorithm for a better experience.

const unsigned char ucLinear[MAX_LINEAR] = { 0, 1, 1, 1, 1, 2, 2, 2, 2, 2, 2, 3, 3, 3, 3, 4, 4, 4, 5, 5, 6, 6, 7, 8, 8, 9, 10, 11, 12, 13, 14, 15, 17, 18, 20, 21, 23, 26, 28, 31, 33, 36, 40, 43, 47, 52, 56, 62, 67, 73, 80, 87, 95, 104, 114, 124, 135, 148, 161, 176, 192, 210, 229, 250}

fade curve

Flickering LEDs while DIM_UP and DIM_DOWN functions is called

When using the One_button_dimmer example the LEDs are flickering while the DIM_UP or DIM_DOWN function is called. Trying to understand how to change behavior to get a smoother dimmer without flickering.

I suppose the _updatedInterval in the DimmerControl.cpp handle this?
_updateInterval = (byte)((_valueMax - _valueMin)/ 10) + 1;

My configuration today is, valueMax = 100 and valueMin = 0. Meaning (100-0)/10+1 = 9.
But what does that really mean in terms of update intervall frequency?

ESP8266 compatible

Found this intressting project which I want to try out. My plan is to integrate a dimmer using a NodeMCU (esp8266) with my home automation hub Homey. The LEDs I want to control is 12VDC mounted in my kitchen and today contoled by Nexa M-Spot

Before starting of I have some questions.

  1. Any specific adaptions in the code needed for NodeMCU more than pinout
  2. What PWM frequency is used, didn´t find this easily in the code
  3. Do you have a hardware sketch example with needed MOSFET driver etc.

Thanks in advice!

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.