A new device for pulmonary rehabilitation based on visual feedback — 1 — Principle and methods