On Sun, Aug 14, 2016 at 08:16:52AM +0000, Lucas Cordiviola wrote:
Also please be careful and be aware that there is risk of damaging things.
Consider this a risk to the amp, do it with a low power one, probably with one of those inside little usb speakers.
Any inductive load will give a back EMF on the negative going edge of the pulse. Look at stepper motor driver circuits and you will see that protection diodes are used. Push-pull audio amps aren't really designed for this kind of punishment, they are linear, whereas stepper drivers are designed to switch a clean pulse. That said, for small motors you will get limited success, so its a useful hack to know.
Andy