Timing of different events independently

oger:
The problem is that I am quite experienced in electronics but know close to nothing about programming.

Then start with the basic examples that come with the IDE.
You soon will get to the "BlinkWithoutDelay" example, that could do what you're asking.
Leo..