Brainwave Program for using PWM pins to generate Brainwave frequencies for stimulating the brain with magnets It's basically one Arduino output, pulsing through a transistor, switching the ground leg from the magnets.