An electrical machinery is a device that can convert either mechanical energy to electrical energy or electrical energy to mechanical energy.When such a device is used to convert mechanical energy to electrical energy , it is called generator and when it converts electrical energy to mechanical energy , it is called a motor. Since any given electrical machine can convert power in either direction , any machine can be used as either generator or a motor.
The transformer is an electrical device that is closely related to electrical machines.It converts ac electrical energy at one level to ac electrical energy at another voltage level.Since transformers operate on the same principles as generators and motors, depending on the action of a magnetic field to accomplish the change in voltage level , they are usually studied together with motors and generators.
These three types of electric devices are ubtiquitous in modern daily life. Electric motors in the home run refrigerators , freezers , vaccume cleaners , blenders, air conditioners, fans and many similar appliance.In the workplace , motors provide the motive power for almost all tools. Of course, generators are necessary to supply the power used by all these motors.