From 6f66a5ed9f6b3f12cc515f5c51f8feb639a9e714 Mon Sep 17 00:00:00 2001 From: AJMansfield Date: Thu, 25 Mar 2021 13:42:51 -0400 Subject: [PATCH 1/9] another specialized dimmer control library --- readme.md | 22 +++++++++++----------- 1 file changed, 11 insertions(+), 11 deletions(-) diff --git a/readme.md b/readme.md index cd6ce47..909dde4 100644 --- a/readme.md +++ b/readme.md @@ -11,17 +11,17 @@ The main features of this library: Here a complete comparison among the most similar libraries: -| | Dimmable Light for Arduino | [RobotDynOfficial/RDBDimmer](https://github.com/RobotDynOfficial/RBDDimmer) | [circuitar/Dimmer](https://github.com/circuitar/Dimmer) | -|----------------------------------- |--------------------------------------------- |----------------------------------------------------- |---------------------------------- | -| Multiple dimmers | yes | yes | yes | -| Supported Frequencies | 50/60Hz | 50Hz | 50/60Hz | -| Supported architecture | AVR, SAMD, ESP8266, ESP32 | AVR, SAMD, ESP8266, ESP32, STM32F1, STM32F4, SAM | AVR | -| Control *effective* delivered power | yes, dynamic calculation | no | yes, static lookup table | -| Embedded automations | no | yes, automatic fade to new value | yes, swipe effect | -| Optional zero-crossing mode | no | no | yes | -| Resolution | up to 1us | 1/100 of semi-period energy | 1/100 of semi-period length | -| Smart Interrupt Management | yes, automatically activated only if needed | no | no | -| Number of interrupts per semi-period (1) | number of instantiated dimmers + 1 | 100 | 100 | +| | Dimmable Light for Arduino | [RobotDynOfficial/RDBDimmer](https://github.com/RobotDynOfficial/RBDDimmer) | [circuitar/Dimmer](https://github.com/circuitar/Dimmer) | [AJMansfield/TriacDimmer](https://github.com/AJMansfield/TriacDimmer) +|----------------------------------- |--------------------------------------------- |----------------------------------------------------- |---------------------------------- |---------------------------------- | +| Multiple dimmers | yes | yes | yes | 2 | +| Supported Frequencies | 50/60Hz | 50Hz | 50/60Hz | 50/60Hz | +| Supported architecture | AVR, SAMD, ESP8266, ESP32 | AVR, SAMD, ESP8266, ESP32, STM32F1, STM32F4, SAM | AVR | AVR | +| Control *effective* delivered power | yes, dynamic calculation | no | yes, static lookup table | no | +| Embedded automations | no | yes, automatic fade to new value | yes, swipe effect | no | +| Optional zero-crossing mode | no | no | yes | no | +| Resolution | up to 1us | 1/100 of semi-period energy | 1/100 of semi-period length | 0.5 us | +| Smart Interrupt Management | yes, automatically activated only if needed | no | no | no | +| Number of interrupts per semi-period (1) | number of instantiated dimmers + 1 | 100 | 100 | 3 | (1) In the worst case, with default settings From 12a07abcfde664433bc86a0bbffdb73199dc86dc Mon Sep 17 00:00:00 2001 From: AJMansfield Date: Thu, 25 Mar 2021 13:44:24 -0400 Subject: [PATCH 2/9] extra pipe --- readme.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/readme.md b/readme.md index 909dde4..6441d83 100644 --- a/readme.md +++ b/readme.md @@ -11,7 +11,7 @@ The main features of this library: Here a complete comparison among the most similar libraries: -| | Dimmable Light for Arduino | [RobotDynOfficial/RDBDimmer](https://github.com/RobotDynOfficial/RBDDimmer) | [circuitar/Dimmer](https://github.com/circuitar/Dimmer) | [AJMansfield/TriacDimmer](https://github.com/AJMansfield/TriacDimmer) +| | Dimmable Light for Arduino | [RobotDynOfficial/RDBDimmer](https://github.com/RobotDynOfficial/RBDDimmer) | [circuitar/Dimmer](https://github.com/circuitar/Dimmer) | [AJMansfield/TriacDimmer](https://github.com/AJMansfield/TriacDimmer) | |----------------------------------- |--------------------------------------------- |----------------------------------------------------- |---------------------------------- |---------------------------------- | | Multiple dimmers | yes | yes | yes | 2 | | Supported Frequencies | 50/60Hz | 50Hz | 50/60Hz | 50/60Hz | From 9b6f3df2b7a61f3bb6eaa75ae713270e28beee69 Mon Sep 17 00:00:00 2001 From: Fabiano Riccardi Date: Sat, 11 Nov 2023 18:05:01 +0100 Subject: [PATCH 3/9] fixes --- readme.md | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/readme.md b/readme.md index a46983c..bfabece 100644 --- a/readme.md +++ b/readme.md @@ -28,13 +28,13 @@ Here the comparison against 2 similar and popular libraries: | | Dimmable Light for Arduino | [RobotDynOfficial/RDBDimmer](https://github.com/RobotDynOfficial/RBDDimmer) | [circuitar/Dimmer](https://github.com/circuitar/Dimmer) | [AJMansfield/TriacDimmer](https://github.com/AJMansfield/TriacDimmer) | |----------------------------------- |--------------------------------------------- |----------------------------------------------------- |---------------------------------- |---------------------------------- | | Multiple dimmers | yes | yes | yes | 2 | -| Supported Frequencies | 50/60Hz | 50Hz | 50/60Hz | 50/60Hz | -| Supported architecture | AVR, SAMD, ESP8266, ESP32 | AVR, SAMD, ESP8266, ESP32, STM32F1, STM32F4, SAM | AVR | AVR | +| Supported frequencies | 50/60Hz | 50Hz | 50/60Hz | 50/60Hz | +| Supported architectures | AVR, SAMD, ESP8266, ESP32 | AVR, SAMD, ESP8266, ESP32, STM32F1, STM32F4, SAM | AVR | AVR | | Control *effective* delivered power | yes, dynamic calculation | no | yes, static lookup table | no | -| Embedded automations | no | yes, automatic fade to new value | yes, swipe effect | no | +| Predefined effects | no | yes, automatic fade to new value | yes, swipe effect | no | | Optional zero-crossing mode | no | no | yes | no | -| Resolution | up to 1us | 1/100 of semi-period energy | 1/100 of semi-period length | 0.5 us | -| Smart Interrupt Management | yes, automatically activated only if needed | no | no | no | +| Time resolution | up to 1us | 1/100 of semi-period energy | 1/100 of semi-period length | 0.5 us | +| Smart interrupt management | yes, automatically activated only if needed | no | no | no | | Number of interrupts per semi-period (1) | number of instantiated dimmers + 1 | 100 | 100 | 3 | (1) In the worst case, with default settings From 46b3bdb803e426eea3387e5a7340c83b69f7bb49 Mon Sep 17 00:00:00 2001 From: Fabiano Riccardi Date: Sat, 11 Nov 2023 18:37:18 +0100 Subject: [PATCH 4/9] fix --- readme.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/readme.md b/readme.md index bfabece..5980967 100644 --- a/readme.md +++ b/readme.md @@ -33,7 +33,7 @@ Here the comparison against 2 similar and popular libraries: | Control *effective* delivered power | yes, dynamic calculation | no | yes, static lookup table | no | | Predefined effects | no | yes, automatic fade to new value | yes, swipe effect | no | | Optional zero-crossing mode | no | no | yes | no | -| Time resolution | up to 1us | 1/100 of semi-period energy | 1/100 of semi-period length | 0.5 us | +| Time resolution | 1us (2) | 1/100 of semi-period energy | 1/100 of semi-period length | 0.5 us | | Smart interrupt management | yes, automatically activated only if needed | no | no | no | | Number of interrupts per semi-period (1) | number of instantiated dimmers + 1 | 100 | 100 | 3 | From a69abd1db0a44e40547b6301c8ff2cefadd7d902 Mon Sep 17 00:00:00 2001 From: Fabiano Riccardi Date: Sat, 11 Nov 2023 18:44:40 +0100 Subject: [PATCH 5/9] fix --- readme.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/readme.md b/readme.md index 5980967..450109a 100644 --- a/readme.md +++ b/readme.md @@ -25,7 +25,7 @@ This brief overview gives a glimpse of the variety of properties to consider whi Here the comparison against 2 similar and popular libraries: -| | Dimmable Light for Arduino | [RobotDynOfficial/RDBDimmer](https://github.com/RobotDynOfficial/RBDDimmer) | [circuitar/Dimmer](https://github.com/circuitar/Dimmer) | [AJMansfield/TriacDimmer](https://github.com/AJMansfield/TriacDimmer) | +| | Dimmable Light for Arduino | [RobotDynOfficial/
RDBDimmer](https://github.com/RobotDynOfficial/RBDDimmer) | [circuitar/Dimmer](https://github.com/circuitar/Dimmer) | [AJMansfield/TriacDimmer](https://github.com/AJMansfield/TriacDimmer) | |----------------------------------- |--------------------------------------------- |----------------------------------------------------- |---------------------------------- |---------------------------------- | | Multiple dimmers | yes | yes | yes | 2 | | Supported frequencies | 50/60Hz | 50Hz | 50/60Hz | 50/60Hz | From 7d30683862d34a9e2225d10bcc5bf91bcbb1c45e Mon Sep 17 00:00:00 2001 From: Fabiano Riccardi Date: Sat, 11 Nov 2023 18:45:24 +0100 Subject: [PATCH 6/9] Update readme.md --- readme.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/readme.md b/readme.md index 450109a..a4b30bb 100644 --- a/readme.md +++ b/readme.md @@ -25,7 +25,7 @@ This brief overview gives a glimpse of the variety of properties to consider whi Here the comparison against 2 similar and popular libraries: -| | Dimmable Light for Arduino | [RobotDynOfficial/
RDBDimmer](https://github.com/RobotDynOfficial/RBDDimmer) | [circuitar/Dimmer](https://github.com/circuitar/Dimmer) | [AJMansfield/TriacDimmer](https://github.com/AJMansfield/TriacDimmer) | +| | Dimmable Light for Arduino | [RobotDynOfficial/
RDBDimmer](https://github.com/RobotDynOfficial/RBDDimmer) | [circuitar/Dimmer](https://github.com/circuitar/Dimmer) | [AJMansfield/
TriacDimmer](https://github.com/AJMansfield/TriacDimmer) | |----------------------------------- |--------------------------------------------- |----------------------------------------------------- |---------------------------------- |---------------------------------- | | Multiple dimmers | yes | yes | yes | 2 | | Supported frequencies | 50/60Hz | 50Hz | 50/60Hz | 50/60Hz | From c9a0f65d731e5c2b4f1f5cee5e60aff0df18f616 Mon Sep 17 00:00:00 2001 From: Fabiano Riccardi Date: Sat, 11 Nov 2023 18:47:55 +0100 Subject: [PATCH 7/9] Update readme.md --- readme.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/readme.md b/readme.md index a4b30bb..8e10686 100644 --- a/readme.md +++ b/readme.md @@ -37,7 +37,7 @@ Here the comparison against 2 similar and popular libraries: | Smart interrupt management | yes, automatically activated only if needed | no | no | no | | Number of interrupts per semi-period (1) | number of instantiated dimmers + 1 | 100 | 100 | 3 | -(1) In the worst case, with default settings +(1) In the worst case, with default settings\ (2) If the hardware timer allows it, otherwise it will be lower ## Installation From ae533e0f10650d36c2eac060f27eb5e46fb607b5 Mon Sep 17 00:00:00 2001 From: Fabiano Riccardi Date: Sat, 11 Nov 2023 18:48:53 +0100 Subject: [PATCH 8/9] Update readme.md --- readme.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/readme.md b/readme.md index 8e10686..44e9d5d 100644 --- a/readme.md +++ b/readme.md @@ -33,7 +33,7 @@ Here the comparison against 2 similar and popular libraries: | Control *effective* delivered power | yes, dynamic calculation | no | yes, static lookup table | no | | Predefined effects | no | yes, automatic fade to new value | yes, swipe effect | no | | Optional zero-crossing mode | no | no | yes | no | -| Time resolution | 1us (2) | 1/100 of semi-period energy | 1/100 of semi-period length | 0.5 us | +| Time resolution | 1us (2) | 1/100 of semi-period energy | 1/100 of semi-period length | 0.5us | | Smart interrupt management | yes, automatically activated only if needed | no | no | no | | Number of interrupts per semi-period (1) | number of instantiated dimmers + 1 | 100 | 100 | 3 | From fe37964f56d36003e9ad7d5133a2ad9c7433947f Mon Sep 17 00:00:00 2001 From: Fabiano Riccardi Date: Sat, 11 Nov 2023 18:53:41 +0100 Subject: [PATCH 9/9] Update readme.md --- readme.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/readme.md b/readme.md index 44e9d5d..54ab4c2 100644 --- a/readme.md +++ b/readme.md @@ -23,7 +23,7 @@ This brief overview gives a glimpse of the variety of properties to consider whi 4. Control the load by 2 measurement unit: gate activation time or linearized relative power 5. Documented parameters to finely tune the library on your hardware and requirements -Here the comparison against 2 similar and popular libraries: +Here the comparison against 3 similar and popular libraries: | | Dimmable Light for Arduino | [RobotDynOfficial/
RDBDimmer](https://github.com/RobotDynOfficial/RBDDimmer) | [circuitar/Dimmer](https://github.com/circuitar/Dimmer) | [AJMansfield/
TriacDimmer](https://github.com/AJMansfield/TriacDimmer) | |----------------------------------- |--------------------------------------------- |----------------------------------------------------- |---------------------------------- |---------------------------------- |