A BSME and 40 years of practical experience. Read any beginning text book on Physics or Statics & Dynamics. Friction converts some of the energy to heat which dissipates to the surroundings. Electronics also converts energy to heat via resistance in the circuitry.