producing electrical output from mechanical input