Comments (27)
Technically there is no limit (leaving out the memory and pins) to the number of dimmers.
Just change the "soft" limit to the desired value here:
dimmable-light/src/thyristor.h
Line 165 in c780331
and here:
dimmable-light/src/dimmable_light.h
Line 129 in c780331
from dimmable-light.
I have never tested more than 8 dimmers, so I didn't want to document what it is not tested. However, if you have succeeded, I will add a note and eventually I can add an easier way to increment the max number of dimmers.
from dimmable-light.
I have to run some extra tests, but the test above seems to run good now. I raised the number of maximum lights to 12 by adjusting static const uint8_t N = 8;
to 12 on line 91 in thrystor.h
from dimmable-light.
would be great to know if this limit could be increased to 16. I am using Arduino Mega and was hoping to get up to 16 dimmers. not sure if anyone has tried increasing to this max number...?
from dimmable-light.
Glad to hear that. Maybe it is worth adding this in a comment so when others look at the limitation, they are going to be less concerned with making a change. Or perhaps maybe make it adjustable at the compile time?
I have cloned the repo anyway as I think I might need to also be able to retrieve the pin number from the thyristor class. This is handy when I have an array of dimmers.
from dimmable-light.
Related Issues (20)
- Flickering and odd behaviour HOT 12
- esp32 problem HOT 4
- ESP32 w/OTA - Guru Meditation Error: Core 1 panic'ed. When using OTA upload while light is on. HOT 4
- Add feature to measure frequency HOT 8
- PWM in others pin do not work if the zc is not connected HOT 1
- ESP8266/RobotDyn HOT 1
- Phase Control HOT 1
- ESP32 Flicker solution HOT 6
- Crashes on the ESP32 with SPIFFS HOT 6
- Cannot compile the code for UNO or ESP8266 HOT 3
- Adafruit ESP32 Feather crash on examples HOT 13
- Add "Count Mode" similiar to Circuitar HOT 3
- Crash esp32 PlatfotmIO HOT 8
- Create new release HOT 3
- Code changes to allow max brightness of 4095? HOT 2
- Excessive zero crossing pulse width HOT 4
- DimmableLightLinearized dim zero
- Does not work with Wifi on ESP8266 HOT 3
- Use without zero cross? HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from dimmable-light.