I have a battery operated toothbrush that I want to generate notes with using PWM on the motor. The microcontroller used is an Arduino for testing and am able to get a bare motor to generate tones. I am using 3/4ths of an H-bridge so I can stall the motor, one terminal is positive and the other is both positive and negative.
The problem is when connected to the toothbrush, the brush head does not seem to stop fast enough to generate a tone. I am assuming that there is too much potential energy in the brush head to keep it from stopping through the PWM.
Has any one else tried something like this with any success? Does this seem like an impossible task?