or

The device which converts mechanical energy into electrical energy is called a dynamo.