@tbowmo Thank you for your effort! Now my turn... the whole schematics of the d-diot board is available for download here!
Of course I have to learn more and do some testing before implementing in the d-diot board the constant current source circuit that you suggested, but this a great option to eliminate the MP1584 (that one day may become unavailable on the market) and to lowering the cost. For the same reasons my plan is to substitute the step up module MT3608 with a boost converter circuit, made from standard passive components (like this).
In any case, if someone else needs to make an universal IR remote with a Raspberry Pi, the configuration of the GPIO pins of the Raspberry is here, while the steps necessary to configure LIRC and lirc_web are here.
The final results is this:
Here the guides to play with the IR gateway (add a remote, clone a remote, Home Assistant integration)