If you would be happy with a fixed total period (on time plus off time) then node-red-contrib-timeprop would do this for you. Set up the total cycle time in the node and then pass it the ratio on/off time you want (between 0 and 1) and it will provide the result you can feed to the LED.
Colin
5
Related topics
| Topic | Replies | Views | Activity | |
|---|---|---|---|---|
| Time loop control of a lamp | 7 | 303 | 7 June 2023 | |
| How to convert to a function | 92 | 5521 | 4 January 2019 | |
| How to flash a LED? | 6 | 5386 | 7 August 2020 | |
| Node always sends a "1" for 5 seconds and then a "0" for 5 seconds | 4 | 440 | 23 December 2019 | |
| How To Send Sync Pulse For Light Timer? | 6 | 1479 | 23 March 2020 |