Skip to content

Commit

Permalink
Added information on another dimmer library. (#22)
Browse files Browse the repository at this point in the history
* another specialized dimmer control library

* extra pipe

* fixes

---------

Co-authored-by: Fabiano Riccardi <[email protected]>
  • Loading branch information
AJMansfield and fabianoriccardi committed Nov 11, 2023
1 parent b40c7c4 commit 50dadf6
Showing 1 changed file with 15 additions and 15 deletions.
30 changes: 15 additions & 15 deletions readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -23,21 +23,21 @@ 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:

| | 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 architectures | AVR, SAMD, ESP8266, ESP32 | AVR, SAMD, ESP8266, ESP32, STM32F1, STM32F4, SAM | AVR |
| Control *effective* delivered power | yes, dynamic calculation | no | yes, static lookup table |
| Predefined effects | no | yes, automatic fade to new value | yes, swipe effect |
| Optional zero-crossing mode | no | no | yes |
| Time resolution | 1us (2) | 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 | |

(1) In the worst case, with default settings
Here the comparison against 3 similar and popular libraries:

| | Dimmable Light for Arduino | [RobotDynOfficial/<br>RDBDimmer](https://github.com/RobotDynOfficial/RBDDimmer) | [circuitar/Dimmer](https://github.com/circuitar/Dimmer) | [AJMansfield/<br>TriacDimmer](https://github.com/AJMansfield/TriacDimmer) |
|----------------------------------- |--------------------------------------------- |----------------------------------------------------- |---------------------------------- |---------------------------------- |
| Multiple dimmers | yes | yes | yes | 2 |
| 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 |
| 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.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 |

(1) In the worst case, with default settings\
(2) If the hardware timer allows it, otherwise it will be lower

## Installation
Expand Down

0 comments on commit 50dadf6

Please sign in to comment.