I'm controlling a toy motor with PWM. Every time you press a button it increases the value used in the AnalogueWrite command. However, I've also got a 16 x 2 character display to show what the present value is...
The problem is that as the motor increases speed it appears to cause interference which leads to erratic behaviour on the display, from garbled characters to going blank completely.
I know this has been discussed before and I've searched the forums already with limited success, although I did find a link to an article by Grumpy Mike (http://www.thebox.myzen.co.uk/Workshop/Motors_1.html).
I've followed his suggestions of a 100nF capacitor across the motor terminals and I've put a 470uF electrolytic across the motor supply. The stall current of the motor is in excess of 1 ampere so a 1mH choke would be relatively expensive.
Any ideas anyone?