An electromechanical machine includes a stator. A rotor is configured to rotate relative to the stator about a rotational axis. A coil extends about the axis and is wound on a bobbin. The bobbin surrounds the axis and has a circumferentially extending pocket in which the coil is located. The bobbin further has a circumferentially-extending overhang section that extends directly over at least a portion of the coil.