We developed a device that rotates neodymium cylindrical magnets at three locations along the midline above the subject 's scalp to impart low-energy , sinusoidal-waveform magnetic brain stimulation over a broad area , and performed this efficacy study .