A generator consists of electromagnets (magnets produced by electricity) and a series of insulated coiled copper wire.