An alternator is a device that converts mechanical energy to alternating current (i.e. an AC generator).