AC can be produced by using a device is called as an alternator. This device is a special type of electrical generator designed to produce alternating current. A loop of wire is rotated inside of a magnetic field, which induces a current along the wire.