I'm out but when back home I'll share some pics and the schema. In reality the code is just a snapshot of a more complex project including PIR and IRDA trasmitter.
Hi
Finally back home.
As promised, here the schema
and the homemade prototype.
I've 4 of them running for almost 2 months now.
I'm designing the PCB but I'm trying to build something pretty flexible (battery or AC-DC, ESP or nRF, etc...) so it will take a while before complete it.