Abstract: A converting device arranged to transfer thermodynamic energy of a compressed working fluid into electrical energy. The converting unit is comprised of at least one cylinder which encloses a piston. In an embodiment, said at least one piston is provided with a magnetic portion. A ferromagnetic coil surrounds the piston and is integrated with the cylinder. As the piston moves through the coil, electrical energy is generated.